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.Objectclone()Clone this path and return a new path containing the same entries between the same pair of ports.booleanequals(java.lang.Object object)Test the equivalence between two paths.PortgetEndPort()Get the end port of this path.PortgetStartPort()Get the start port of this path.inthashCode()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.StringtoString()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:
clonein 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:
equalsin interfacejava.util.Collection<GraphAnalyzer.IndexedList>- Overrides:
equalsin 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:
hashCodein interfacejava.util.Collection<GraphAnalyzer.IndexedList>- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code.
-
toString
public java.lang.String toString()
Return a string that describes this path.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string that describes this path.
-
-