mascoptDev.graphs
Class Tube

java.lang.Object
  |
  +--mascoptLib.util.ObservableObject
        |
        +--mascoptLib.abstractGraph.MascoptObject
              |
              +--mascoptLib.abstractGraph.AbstractGraph
                    |
                    +--mascoptLib.abstractGraph.AbstractPath
                          |
                          +--mascoptLib.graphs.DiPath
                                |
                                +--mascoptDev.graphs.Tube
All Implemented Interfaces:
Cloneable, MascoptObjectInterface, MascoptWritableInterface, Observer

public class Tube
extends DiPath


Field Summary
 
Fields inherited from class mascoptLib.util.ObservableObject
stopNotifyValueMechanism
 
Constructor Summary
Tube(ArcSet arcSet)
          Default Constructor for the Tube must specify the arcSet on which it is based
 
Method Summary
 void addPath(DiPath p)
          Adds the path to the set of paths using this pipe
 int getCost()
          Used to obtain the cost of the tube
 Iterator getPaths()
          Returns an iterator over all the paths using this tube
 void setCost(int cost)
          Used for setting the cost of the tube
 
Methods inherited from class mascoptLib.graphs.DiPath
concat, concat, getArcSet, getDOMTagHierarchy, getDOMTagName, getEnd, getFactory, getStart, getVertexSet, merge, nextArc, nextArcSet, nextVertex, predArcSet, toString
 
Methods inherited from class mascoptLib.abstractGraph.AbstractPath
checkIntegrity, concatAbstractEdge, concatAbstractPath, countAllAbstractPaths, free, getAbstractEnd, getAbstractStart, isClosed, isEnd, isMulti, isStart, mergeAbstractPath, nextAbstractEdge, nextAbstractEdgeSet, nextAbstractVertex, predAbstractEdge, predAbstractEdgeSet, removeLastEdge, toDOMTree, update
 
Methods inherited from class mascoptLib.abstractGraph.AbstractGraph
addMissingVertices, breadthFirstIterator, copyAbstractGraph, countAllAbstractGraphs, depthFirstIterator, getAbstractEdgeSet, getAbstractVertexSet, getSuperGraph, isSubGraph, replace, replace, setSuperGraph
 
Methods inherited from class mascoptLib.abstractGraph.MascoptObject
copyValues, countAllObjects, deleteValue, deleteValue, existValue, existValue, getDoubleValue, getDoubleValue, getDouValue, getDouValue, getId, getIntegerValue, getIntegerValue, getIntValue, getIntValue, getName, getValue, getValue, getValueContexts, getValueDataType, getValueDataType, getValueEntries, notifyOnValueChange, removeAllValues, setDoubleValue, setDoubleValue, setDouValue, setDouValue, setIntegerValue, setIntegerValue, setIntValue, setIntValue, setName, setValue, setValue, setValue, setValue, setValue, setValue, toDOMTreeAsRef
 
Methods inherited from class mascoptLib.util.ObservableObject
addAddObserver, addRemoveObserver, addValueObserver, countAddObservers, countRemoveObservers, countValueObservers, deleteAddObserver, deleteAddObserver, deleteRemoveObserver, deleteRemoveObserver, deleteValueObserver, deleteValueObserver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tube

public Tube(ArcSet arcSet)
Default Constructor for the Tube must specify the arcSet on which it is based

Parameters:
arcSet - the arc set on which this path is based
Method Detail

addPath

public void addPath(DiPath p)
Adds the path to the set of paths using this pipe

Parameters:
p - the path to be added

getPaths

public Iterator getPaths()
Returns an iterator over all the paths using this tube


setCost

public void setCost(int cost)
Used for setting the cost of the tube

Parameters:
cost - the cost of this tube

getCost

public int getCost()
Used to obtain the cost of the tube