|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.network.SquareLatticeNet
public class SquareLatticeNet
Creates a square lattice network. Use NetworkFactory.createSquareLatticeNetwork rather than this class. DOCUMENTATION NOT COMPLETE!
| Constructor Summary | |
|---|---|
SquareLatticeNet()
|
|
SquareLatticeNet(java.lang.Class node,
java.lang.Class edge)
|
|
SquareLatticeNet(java.lang.Class node,
java.lang.Class edge,
int cols,
int rows)
|
|
SquareLatticeNet(java.lang.Class node,
java.lang.Class edge,
int cols,
int rows,
boolean wrapAround,
int connectRadius)
|
|
| Method Summary | |
|---|---|
java.util.ArrayList |
createSquareLatticeNet()
* Use NetworkFactory.createSquareLatticeNetwork rather than this class. !!!!!!! |
java.util.ArrayList |
createSquareLatticeNet(java.lang.Class node,
java.lang.Class edge,
int cols,
int rows,
boolean wrapAround,
int connectRadius)
!!! |
int |
getConnectRadius()
|
java.lang.Class |
getEdgeClass()
Returns the Class of edges to be used in constructing the network. |
java.lang.Class |
getNodeClass()
Returns the Class of nodes to be used in constructing the network. |
int |
getNumCols()
|
int |
getNumRows()
|
int |
getSize()
Returns the int for the size (number of nodes) in the network to be constructed. |
boolean |
isSymmetric()
Returns true if the constructed network will always be symmetric. |
boolean |
isWrapAround()
|
void |
setConnectRadius(int connectRadius)
Sets the "radius" of neighbors along the grid which additional connections will be generated to. |
void |
setDimension(int cols,
int rows)
|
void |
setEdgeClass(java.lang.Class edge)
Sets the Class of edges to be used in constructing the network. |
void |
setNodeClass(java.lang.Class node)
Sets the Class of nodes to be used in constructing the network Must be set beforemakeSquareLatticeNet() is called. |
void |
setWrapAround(boolean wrapAround)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SquareLatticeNet()
public SquareLatticeNet(java.lang.Class node,
java.lang.Class edge)
public SquareLatticeNet(java.lang.Class node,
java.lang.Class edge,
int cols,
int rows)
public SquareLatticeNet(java.lang.Class node,
java.lang.Class edge,
int cols,
int rows,
boolean wrapAround,
int connectRadius)
| Method Detail |
|---|
public java.lang.Class getNodeClass()
public void setNodeClass(java.lang.Class node)
public java.lang.Class getEdgeClass()
public void setEdgeClass(java.lang.Class edge)
public int getNumCols()
public int getNumRows()
public void setDimension(int cols,
int rows)
public int getSize()
public int getConnectRadius()
public void setConnectRadius(int connectRadius)
public boolean isWrapAround()
public void setWrapAround(boolean wrapAround)
public boolean isSymmetric()
public java.util.ArrayList createSquareLatticeNet()
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.InstantiationException
public java.util.ArrayList createSquareLatticeNet(java.lang.Class node,
java.lang.Class edge,
int cols,
int rows,
boolean wrapAround,
int connectRadius)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
USE NetworkFactory.createSquareLatticeNetwork rather than this.
IllegalAccessException, - InstantiationException
java.lang.IllegalAccessException
java.lang.InstantiationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||