sim.portrayal.network
Class SpatialNetwork2D
java.lang.Object
sim.portrayal.network.SpatialNetwork2D
- public class SpatialNetwork2D
- extends java.lang.Object
A wrapper used by NetworkPortrayal2D to hold a Network and EITHER a Continuous2D OR a SparseGrid2D.
The Continuous2D/SparseGrid2D specifies the spatial location of the nodes; the Network specifies the
edges connecting those nodes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
field
public Continuous2D field
grid
public SparseGrid2D grid
network
public Network network
SpatialNetwork2D
public SpatialNetwork2D(Continuous2D field,
Network network)
SpatialNetwork2D
public SpatialNetwork2D(SparseGrid2D grid,
Network network)
getObjectLocation
public Double2D getObjectLocation(java.lang.Object node)
getWidth
public double getWidth()
getHeight
public double getHeight()