public class State extends java.lang.Object implements IState
IState
interface in the POJO based IDesignSpace
implementation.IState.TraversalStateType
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getId()
Every
state has a unique id that was generated by an IStateCoder . |
java.util.Collection<? extends ITransition> |
getIncomingTransitions()
Returns the collection of the already discovered incoming
transitions through which this
state can be reached. |
java.util.Collection<? extends ITransition> |
getOutgoingTransitions()
Returns the collection of the outgoing
transitions through which this state can be left. |
IState.TraversalStateType |
getTraversalState()
Getter of
traversal type . |
int |
hashCode() |
boolean |
isProcessed() |
void |
setProcessed()
Mark the
state as fully initialized. |
void |
setTraversalState(IState.TraversalStateType traversalState)
Setter of
traversal type . |
java.lang.String |
toString() |
public IState.TraversalStateType getTraversalState()
IState
traversal type
.getTraversalState
in interface IState
traversal type
of this state.public java.lang.Object getId()
IState
state
has a unique id that was generated by an IStateCoder
. An
attempt to add a different state
to the design space
with the same id will be
ignored. See IDesignSpace.addState(ITransition, Object, java.util.Map)
and
IStateCoder.createStateCode()
for more details.public void setTraversalState(IState.TraversalStateType traversalState)
IState
traversal type
.setTraversalState
in interface IState
traversalState
- the new traversal type
.public java.util.Collection<? extends ITransition> getIncomingTransitions()
IState
transitions
through which this
state can be reached.getIncomingTransitions
in interface IState
Collection
of ITransition
s.public java.util.Collection<? extends ITransition> getOutgoingTransitions()
IState
transitions
through which this state can be left.getOutgoingTransitions
in interface IState
Collection
of ITransition
s.public boolean isProcessed()
isProcessed
in interface IState
state
has been initialized already.public void setProcessed()
IState
state
as fully initialized.setProcessed
in interface IState
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object