ucl.physiol.neuroconstruct.project
Class SimpleNetworkConnectionsInfo

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by ucl.physiol.neuroconstruct.project.SimpleNetworkConnectionsInfo
All Implemented Interfaces:
Serializable, TableModel

public class SimpleNetworkConnectionsInfo
extends AbstractTableModel

Implementation of AbstractTableModel used for storing the Network Connections Info

Author:
Padraig Gleeson
See Also:
Serialized Form

Field Summary
static int COL_NUM_AP_SPEED
           
static int COL_NUM_CONN_CONDS
           
static int COL_NUM_MAX_MIN
           
static int COL_NUM_NETCONN_NAME
           
static int COL_NUM_SEARCH_PATTERN
           
static int COL_NUM_SOURCE
           
static int COL_NUM_SYNAPSE_LIST
           
static int COL_NUM_TARGET
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SimpleNetworkConnectionsInfo()
           
 
Method Summary
 void addNetConn(String name, String source, String target, Vector<SynapticProperties> synList, SearchPattern searchPattern, MaxMinLength maxMin, ConnectivityConditions connConds, float jumpSpeed)
           
 void addRow(String name, String source, String target, Vector<SynapticProperties> synList, SearchPattern searchPattern, MaxMinLength maxMin, ConnectivityConditions connConds, float jumpSpeed)
           
 void deleteAllNetConns()
           
 boolean deleteNetConn(int index)
           
 boolean deleteNetConn(String netConnName)
           
 Vector<String> getAllSimpleNetConnNames()
           
 float getAPSpeed(String netConnName)
           
 int getColumnCount()
           
 String getColumnName(int col)
           
 ConnectivityConditions getConnectivityConditions(String netConnName)
           
 String getGenerationEndCellGroup(String netConnName)
           
 String getGenerationStartCellGroup(String netConnName)
           
 GrowMode getGrowMode(String netConnName)
           
 Hashtable getInternalData()
          Added to allow storing of data by XMLEncoder
 MaxMinLength getMaxMinLength(String netConnName)
           
 String getNetConnNameAt(int index)
           
 Vector<String> getNetConnsUsingCellGroup(String cellGroupName)
          Gets the netconn names where cellGroupName is source or target.
 int getNumSimpleNetConns()
           
 int getRowCount()
           
 SearchPattern getSearchPattern(String netConnName)
           
 String getSourceCellGroup(String netConnName)
           
 String getSummary(String netConnName)
           
 Vector<SynapticProperties> getSynapseList(String connName)
           
 String getTargetCellGroup(String netConnName)
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int row, int col)
           
 boolean isValidSimpleNetConn(String netConnName)
           
 void setAPSpeed(String netConnName, float aps)
           
 void setConnectivityConditions(String netConnName, ConnectivityConditions cc)
           
 void setGrowMode(String netConnName, GrowMode gm)
           
 void setInternalData(Hashtable allInfo)
          Added to allow storing of data by XMLEncoder
 void setMaxMinLength(String netConnName, MaxMinLength mm)
           
 void setSearchPattern(String netConnName, SearchPattern sp)
           
 void setSourceCellGroup(String netConnName, String source)
           
 void setSynapseList(String connName, Vector<SynapticProperties> synPropList)
           
 void setTargetCellGroup(String netConnName, String target)
           
 void setValueAt(Object value, int row, int col)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COL_NUM_NETCONN_NAME

public static final int COL_NUM_NETCONN_NAME
See Also:
Constant Field Values

COL_NUM_SOURCE

public static final int COL_NUM_SOURCE
See Also:
Constant Field Values

COL_NUM_TARGET

public static final int COL_NUM_TARGET
See Also:
Constant Field Values

COL_NUM_SYNAPSE_LIST

public static final int COL_NUM_SYNAPSE_LIST
See Also:
Constant Field Values

COL_NUM_SEARCH_PATTERN

public static final int COL_NUM_SEARCH_PATTERN
See Also:
Constant Field Values

COL_NUM_MAX_MIN

public static final int COL_NUM_MAX_MIN
See Also:
Constant Field Values

COL_NUM_CONN_CONDS

public static final int COL_NUM_CONN_CONDS
See Also:
Constant Field Values

COL_NUM_AP_SPEED

public static final int COL_NUM_AP_SPEED
See Also:
Constant Field Values
Constructor Detail

SimpleNetworkConnectionsInfo

public SimpleNetworkConnectionsInfo()
Method Detail

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int col)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

setValueAt

public void setValueAt(Object value,
                       int row,
                       int col)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

addNetConn

public void addNetConn(String name,
                       String source,
                       String target,
                       Vector<SynapticProperties> synList,
                       SearchPattern searchPattern,
                       MaxMinLength maxMin,
                       ConnectivityConditions connConds,
                       float jumpSpeed)
                throws NamingException
Throws:
NamingException

addRow

public void addRow(String name,
                   String source,
                   String target,
                   Vector<SynapticProperties> synList,
                   SearchPattern searchPattern,
                   MaxMinLength maxMin,
                   ConnectivityConditions connConds,
                   float jumpSpeed)
            throws NamingException
Throws:
NamingException

deleteNetConn

public boolean deleteNetConn(int index)

deleteAllNetConns

public void deleteAllNetConns()

deleteNetConn

public boolean deleteNetConn(String netConnName)

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

getNumSimpleNetConns

public int getNumSimpleNetConns()

getAllSimpleNetConnNames

public Vector<String> getAllSimpleNetConnNames()

getSummary

public String getSummary(String netConnName)

getSynapseList

public Vector<SynapticProperties> getSynapseList(String connName)

setSynapseList

public void setSynapseList(String connName,
                           Vector<SynapticProperties> synPropList)

getSourceCellGroup

public String getSourceCellGroup(String netConnName)

setSourceCellGroup

public void setSourceCellGroup(String netConnName,
                               String source)

getTargetCellGroup

public String getTargetCellGroup(String netConnName)

getGenerationStartCellGroup

public String getGenerationStartCellGroup(String netConnName)

getGenerationEndCellGroup

public String getGenerationEndCellGroup(String netConnName)

setTargetCellGroup

public void setTargetCellGroup(String netConnName,
                               String target)

getSearchPattern

public SearchPattern getSearchPattern(String netConnName)

setSearchPattern

public void setSearchPattern(String netConnName,
                             SearchPattern sp)

getGrowMode

public GrowMode getGrowMode(String netConnName)

setGrowMode

public void setGrowMode(String netConnName,
                        GrowMode gm)

getMaxMinLength

public MaxMinLength getMaxMinLength(String netConnName)

setMaxMinLength

public void setMaxMinLength(String netConnName,
                            MaxMinLength mm)

getAPSpeed

public float getAPSpeed(String netConnName)

setAPSpeed

public void setAPSpeed(String netConnName,
                       float aps)

getConnectivityConditions

public ConnectivityConditions getConnectivityConditions(String netConnName)

setConnectivityConditions

public void setConnectivityConditions(String netConnName,
                                      ConnectivityConditions cc)

getNetConnNameAt

public String getNetConnNameAt(int index)

getNetConnsUsingCellGroup

public Vector<String> getNetConnsUsingCellGroup(String cellGroupName)
Gets the netconn names where cellGroupName is source or target. Used when deleting a cell group...


isValidSimpleNetConn

public boolean isValidSimpleNetConn(String netConnName)

getInternalData

public Hashtable getInternalData()
Added to allow storing of data by XMLEncoder


setInternalData

public void setInternalData(Hashtable allInfo)
Added to allow storing of data by XMLEncoder