RePast
v. 2.0

uchicago.src.sim.network
Class NetworkPath

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--java.util.Stack
                          |
                          +--uchicago.src.sim.network.NetworkPath
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class NetworkPath
extends Stack

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NetworkPath(double distance)
           
 
Method Summary
 void addNode(Node n)
           
 Object get(int i)
           
 double getDistance()
           
 double getSubpathDistance(DefaultNode n1, DefaultNode n2)
           
 int indexOf(Object o)
           
 boolean nodeInPath(Node n)
           
 int size()
           
 
Methods inherited from class java.util.Stack
empty, peek, pop, push, search
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, hashCode, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

NetworkPath

public NetworkPath(double distance)
Method Detail

addNode

public void addNode(Node n)

getDistance

public double getDistance()

nodeInPath

public boolean nodeInPath(Node n)

size

public int size()
Specified by:
size in interface List
Overrides:
size in class Vector

get

public Object get(int i)
Specified by:
get in interface List
Overrides:
get in class Vector

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List
Overrides:
indexOf in class Vector

getSubpathDistance

public double getSubpathDistance(DefaultNode n1,
                                 DefaultNode n2)
                          throws IllegalArgumentException
IllegalArgumentException

RePast
v. 2.0

Bug reports and feature requests to RePast