sim.portrayal.network
Class SpatialNetwork2D
java.lang.Object
sim.portrayal.network.SpatialNetwork2D
- public class SpatialNetwork2D
- extends java.lang.Object
A wrapper used by Network2DPortrayal to hold a NetworkField and EITHER a Continuous2D OR a SparseGrid2D.
The Continuous2D/SparseGrid2D specifies the spatial location of the nodes; the NetworkField 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 NetworkField network
SpatialNetwork2D
public SpatialNetwork2D(Continuous2D field,
NetworkField network)
SpatialNetwork2D
public SpatialNetwork2D(SparseGrid2D grid,
NetworkField network)
getObjectLocation
public Double2D getObjectLocation(java.lang.Object node)
getWidth
public double getWidth()
getHeight
public double getHeight()