interfaces
Class ConnectivityGrid.GridCell

java.lang.Object
  extended by interfaces.ConnectivityGrid.GridCell
Enclosing class:
ConnectivityGrid

public class ConnectivityGrid.GridCell
extends java.lang.Object

A single cell in the cell grid. Contains the interfaces that are currently in that part of the grid.


Method Summary
 void addInterface(NetworkInterface ni)
          Adds an interface to this cell
 java.util.ArrayList<NetworkInterface> getInterfaces()
          Returns a list of of interfaces in this cell
 void moveInterface(NetworkInterface ni, ConnectivityGrid.GridCell to)
          Moves a interface in a Cell to another Cell
 void removeInterface(NetworkInterface ni)
          Removes an interface from this cell
 java.lang.String toString()
          Returns a string representation of the cell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInterfaces

public java.util.ArrayList<NetworkInterface> getInterfaces()
Returns a list of of interfaces in this cell

Returns:
a list of of interfaces in this cell

addInterface

public void addInterface(NetworkInterface ni)
Adds an interface to this cell

Parameters:
ni - The interface to add

removeInterface

public void removeInterface(NetworkInterface ni)
Removes an interface from this cell

Parameters:
ni - The interface to remove

moveInterface

public void moveInterface(NetworkInterface ni,
                          ConnectivityGrid.GridCell to)
Moves a interface in a Cell to another Cell

Parameters:
ni - The interface to move
to - The cell where the interface should be moved to

toString

public java.lang.String toString()
Returns a string representation of the cell

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the cell