|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.domains.modal.kernel.ia.StatePair
public class StatePair
A pair of states. This class is used in the representation of alternating simulation.
InterfaceAutomaton.computeAlternatingSimulation(ptolemy.domains.modal.kernel.ia.InterfaceAutomaton)
Red (yuhong) |
Red (yuhong) |
Field Summary | |
---|---|
private State |
_first
|
private State |
_second
|
Constructor Summary | |
---|---|
StatePair(State first,
State second)
Construct an instance with the specified states. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Override the base class method to return true if the specified object is an instance of StatePair and it contains the same states as this one. |
State |
first()
Return the first state in this pair. |
int |
hashCode()
Override the base class method to ensure that the pairs that are equal (according to the equals() method) have the same hash code. |
State |
second()
Return the second state in this pair. |
java.lang.String |
toString()
Return a string representation of this pair. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private State _first
private State _second
Constructor Detail |
---|
public StatePair(State first, State second)
first
- The first state in the pair.second
- The second state in the pair.Method Detail |
---|
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- An object to compare with this one.
public State first()
public int hashCode()
hashCode
in class java.lang.Object
public State second()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |