MealyStateMachine
public class State extends java.lang.Object
Constructor and Description |
---|
State(java.lang.String sn)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addTransition(MealyLabel mlbl,
State nst)
add an already built Mealy label + a reached state
|
boolean |
allGuardedTransitions()
Check if all the outgoing transitions are guarded
|
java.lang.Integer |
chekState()
Check the configuration of the state wrt to the nature of the outgoing transitions; return an int
return 1 = there are at least one leading event: evt[guard]/act
return 2 = there are no leading event, but at least one guarded transition: [guard]/...
|
java.util.HashSet<mEvent> |
findEvtLeadingTransitions()
find in the list of outgoing transitions, the leading events
|
java.lang.String |
getName() |
java.util.LinkedList<StateLabelledTransition> |
getTransitions()
collect the current transitions
|
StateLabelledTransition |
getTransitionWithEvent(mEvent cevt)
get a complete transition+reached state, where the given event is matching
|
boolean |
hasTransitions()
does it has transition ?
|
boolean |
nonDeterministicTransitions()
Currently, the outgoing transitions from the state are deterministic
|
void |
setName(java.lang.String nn) |
java.lang.String |
toString() |
public void setName(java.lang.String nn)
public java.lang.String getName()
public void addTransition(MealyLabel mlbl, State nst)
public java.util.LinkedList<StateLabelledTransition> getTransitions()
public boolean hasTransitions()
public StateLabelledTransition getTransitionWithEvent(mEvent cevt)
public boolean nonDeterministicTransitions()
public java.lang.Integer chekState()
public java.util.HashSet<mEvent> findEvtLeadingTransitions()
public boolean allGuardedTransitions()
public java.lang.String toString()
toString
in class java.lang.Object