sim.portrayal.network
Class SpatialNetwork2D

java.lang.Object
  extended by 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.


Field Summary
 Continuous2D field
           
 SparseGrid2D grid
           
 Network network
           
 
Constructor Summary
SpatialNetwork2D(Continuous2D field, Network network)
           
SpatialNetwork2D(SparseGrid2D grid, Network network)
           
 
Method Summary
 double getHeight()
           
 Double2D getObjectLocation(java.lang.Object node)
           
 double getWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

public Continuous2D field

grid

public SparseGrid2D grid

network

public Network network
Constructor Detail

SpatialNetwork2D

public SpatialNetwork2D(Continuous2D field,
                        Network network)

SpatialNetwork2D

public SpatialNetwork2D(SparseGrid2D grid,
                        Network network)
Method Detail

getObjectLocation

public Double2D getObjectLocation(java.lang.Object node)

getWidth

public double getWidth()

getHeight

public double getHeight()