|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.Vector
byucc.jhdl.synth.graph.EdgeVector
A simple class to hold a collection of Edges. This class simply extends Vector and provides methods to add and get Edges without a cast.
Field Summary |
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
EdgeVector()
|
Method Summary | |
void |
addEdge(Edge e)
Adds an edge to the end of this EdgeVector |
Edge |
edgeAt(int index)
Returns the edge at the specified index. |
boolean |
removeEdge(Edge e)
Removes an edge from this EdgeVector This method identifies the edge to be removed by using the equals method in Edge. |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, 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 |
public EdgeVector()
Method Detail |
public void addEdge(Edge e)
e
- the new edge to be added.Vector.addElement(java.lang.Object)
public boolean removeEdge(Edge e)
e
- the edge to be removed.
Vector.removeElement(java.lang.Object)
public Edge edgeAt(int index)
index
- an index into this EdgeVector
Vector.elementAt(int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |