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
| 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 |
NetworkPath
public NetworkPath(double distance)
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
Bug reports and feature requests to RePast