ami.gui
Class AMITableModelRTImpl

java.lang.Object
  |
  +--ami.gui.AMITableModelImpl
        |
        +--ami.gui.AMITableModelRTImpl

class AMITableModelRTImpl
extends AMITableModelImpl

RT implementation of the model


Field Summary
static String CONNECTED
           
static String DISCONNECTED
           
(package private)  HashMap hmStatus
          Stores status for disponibility status icons pu ->status
private  int iConnected
          Number of reachable peers
static String IGNORE
           
private  JLabel jl
          Label used to display connection number
(package private)  Vector vData
          AMI Routing Table storage For new rows, contains a Object array with {pu,al,ip,cm,connected}
 
Fields inherited from class ami.gui.AMITableModelImpl
atm
 
Constructor Summary
(package private) AMITableModelRTImpl(AMITableModel atm)
          Constructor : initialize the AMITableModel to use
 
Method Summary
 void addRow()
          Add a row
 void addRow(Object o)
          Add a row with data Assumes that the row is validated
 void cleanRow(int[] iRows, int[] iColumns)
          Initialize all values of a set of rows
 int getConnectionNumber()
          Return number of connected peers we can reach
 int getRowCount()
           
 HashMap getStatusTable()
          Accessor for status table, used by the control center when refreshing screen
 Object getValueAt(int row, int col)
          put your documentation comment here
 boolean isCellEditable(int row, int col)
          put your documentation comment here
 void refreshStatus()
          Update status for all rows
 void refreshStatus(int row)
          Update status for the given row
 void removeRow(int[] iSelection)
          Remove an interval of rows
 void setConnectionDisplay(JLabel jl)
          Set label used to display connection information
 void setValueAt(Object value, int row, int col)
          put your documentation comment here
 
Methods inherited from class ami.gui.AMITableModelImpl
setATM
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

IGNORE

public static final String IGNORE

CONNECTED

public static final String CONNECTED

DISCONNECTED

public static final String DISCONNECTED

vData

Vector vData
AMI Routing Table storage For new rows, contains a Object array with {pu,al,ip,cm,connected}

hmStatus

HashMap hmStatus
Stores status for disponibility status icons

pu ->status


iConnected

private int iConnected
Number of reachable peers

jl

private JLabel jl
Label used to display connection number
Constructor Detail

AMITableModelRTImpl

AMITableModelRTImpl(AMITableModel atm)
Constructor : initialize the AMITableModel to use
Method Detail

getStatusTable

public HashMap getStatusTable()
Accessor for status table, used by the control center when refreshing screen

getConnectionNumber

public int getConnectionNumber()
Return number of connected peers we can reach

setConnectionDisplay

public void setConnectionDisplay(JLabel jl)
Set label used to display connection information

refreshStatus

public void refreshStatus()
Update status for all rows
Overrides:
refreshStatus in class AMITableModelImpl

refreshStatus

public void refreshStatus(int row)
Update status for the given row

getRowCount

public int getRowCount()
Overrides:
getRowCount in class AMITableModelImpl

getValueAt

public Object getValueAt(int row,
                         int col)
put your documentation comment here
Overrides:
getValueAt in class AMITableModelImpl
Parameters:
row -  
col -  
Returns:
 

setValueAt

public void setValueAt(Object value,
                       int row,
                       int col)
put your documentation comment here
Overrides:
setValueAt in class AMITableModelImpl
Parameters:
value -  
row -  
col -  

removeRow

public void removeRow(int[] iSelection)
Remove an interval of rows
Overrides:
removeRow in class AMITableModelImpl

cleanRow

public void cleanRow(int[] iRows,
                     int[] iColumns)
Description copied from class: AMITableModelImpl
Initialize all values of a set of rows
Overrides:
cleanRow in class AMITableModelImpl

addRow

public void addRow()
Add a row
Overrides:
addRow in class AMITableModelImpl

addRow

public void addRow(Object o)
Add a row with data

Assumes that the row is validated

Overrides:
addRow in class AMITableModelImpl

isCellEditable

public boolean isCellEditable(int row,
                              int col)
put your documentation comment here
Overrides:
isCellEditable in class AMITableModelImpl
Parameters:
row -  
col -  
Returns: