sim.portrayal.network
Class SpatialNetwork2D

java.lang.Object
  extended bysim.portrayal.network.SpatialNetwork2D

public class SpatialNetwork2D
extends java.lang.Object

A wrapper used by NetworkPortrayal2D 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.


Field Summary
 Continuous2D field
           
 SparseGrid2D grid
           
 NetworkField network
           
 
Constructor Summary
SpatialNetwork2D(Continuous2D field, NetworkField network)
           
SpatialNetwork2D(SparseGrid2D grid, NetworkField 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 NetworkField network
Constructor Detail

SpatialNetwork2D

public SpatialNetwork2D(Continuous2D field,
                        NetworkField network)

SpatialNetwork2D

public SpatialNetwork2D(SparseGrid2D grid,
                        NetworkField network)
Method Detail

getObjectLocation

public Double2D getObjectLocation(java.lang.Object node)

getWidth

public double getWidth()

getHeight

public double getHeight()