Package ptolemy.actor.gt
Class GraphAnalyzer.Path
- java.lang.Object
-
- ptolemy.actor.gt.data.FastLinkedList<GraphAnalyzer.IndexedList>
-
- ptolemy.actor.gt.GraphAnalyzer.IndexedLists
-
- ptolemy.actor.gt.GraphAnalyzer.Path
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<GraphAnalyzer.IndexedList>
,java.util.Collection<GraphAnalyzer.IndexedList>
- Enclosing class:
- GraphAnalyzer
public static final class GraphAnalyzer.Path extends GraphAnalyzer.IndexedLists implements java.lang.Cloneable
A path between two ports.- Since:
- Ptolemy II 7.1
- Version:
- $Id$
- Author:
- Thomas Huining Feng
- Pt.AcceptedRating:
- Red (tfeng)
- Pt.ProposedRating:
- Yellow (tfeng)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.actor.gt.data.FastLinkedList
FastLinkedList.Entry
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Clone this path and return a new path containing the same entries between the same pair of ports.boolean
equals(java.lang.Object object)
Test the equivalence between two paths.Port
getEndPort()
Get the end port of this path.Port
getStartPort()
Get the start port of this path.int
hashCode()
Return the hash code of this path, which is a combination of the start port's hash code and a hash code computed with all the entries inside.java.lang.String
toString()
Return a string that describes this path.-
Methods inherited from class ptolemy.actor.gt.data.FastLinkedList
add, addAll, addEntryAfter, addEntryBefore, addEntryToHead, addEntryToTail, clear, contains, containsAll, findEntry, getHead, getTail, isEmpty, iterator, remove, removeAll, removeAllAfter, removeAllBefore, retainAll, size, toArray, toArray
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
Clone this path and return a new path containing the same entries between the same pair of ports.- Overrides:
clone
in classjava.lang.Object
- Returns:
- A new path.
-
equals
public boolean equals(java.lang.Object object)
Test the equivalence between two paths. They are equivalent if they have the same ports and entries.- Specified by:
equals
in interfacejava.util.Collection<GraphAnalyzer.IndexedList>
- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- The object to be tested.- Returns:
- true if the object is a path and it is equivalent to this path; false otherwise.
-
getEndPort
public Port getEndPort()
Get the end port of this path.- Returns:
- The end port.
-
getStartPort
public Port getStartPort()
Get the start port of this path.- Returns:
- The start port.
-
hashCode
public int hashCode()
Return the hash code of this path, which is a combination of the start port's hash code and a hash code computed with all the entries inside.- Specified by:
hashCode
in interfacejava.util.Collection<GraphAnalyzer.IndexedList>
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hash code.
-
toString
public java.lang.String toString()
Return a string that describes this path.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string that describes this path.
-
-