oracle.cle.util.statemachine
Class TransitionCondition
java.lang.Object
|
+--oracle.cle.util.statemachine.TransitionCondition
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class TransitionCondition
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
Failure if negative, success otherwise.
NOTE: We are NOT implying that the value of value should dictate
the next transition implicitly. That is left up to the
TransitionTable. These success/failure rules are merely
a convenience or convention for the purposes of implementation.
- See Also:
TransitionTable
,
StateMachine
, Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TransitionCondition
public TransitionCondition(java.lang.String aString,
int aValue)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
getValue
public int getValue()
setValue
public void setValue(int anInt)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String aString)
isSameAs
public boolean isSameAs(TransitionCondition aTransitionCondition)
- Use this methid to compare two TransitionConditions
failure
public boolean failure()
success
public boolean success()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003 ORACLE Corp. All Rights Reserved.