public class AtomicTransition extends Transition<AtomicEvent>
| Modifier and Type | Field and Description |
|---|---|
protected AtomicEvent |
m_event
The event this transitions is supposed to match
|
m_action, m_guard, m_target| Constructor and Description |
|---|
AtomicTransition(AtomicEvent e)
Creates a new atomic transition
|
AtomicTransition(AtomicEvent e,
Configuration<AtomicEvent> target) |
AtomicTransition(AtomicEvent e,
Operator<AtomicEvent> guard,
Action<AtomicEvent> action,
Configuration<AtomicEvent> target) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
afterGuard(AtomicEvent event,
Statechart<AtomicEvent> statechart)
Checks whether a transition fires, after the guard on that transition
has been evaluated.
|
AtomicTransition |
clone() |
boolean |
equals(java.lang.Object o) |
AtomicEvent |
getEvent()
Gets the event associated to this transition
|
int |
hashCode() |
void |
setTarget(Configuration<AtomicEvent> target)
Sets the target of this transition
|
java.lang.String |
toString() |
executeAction, getAction, getGuard, getTarget, hasSameParameters, matches, setAction, setGuardprotected AtomicEvent m_event
public AtomicTransition(AtomicEvent e)
e - The event associated to this transitionpublic AtomicTransition(AtomicEvent e, Configuration<AtomicEvent> target)
public AtomicTransition(AtomicEvent e, Operator<AtomicEvent> guard, Action<AtomicEvent> action, Configuration<AtomicEvent> target)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void setTarget(Configuration<AtomicEvent> target)
target - The targetpublic AtomicEvent getEvent()
public java.lang.String toString()
toString in class java.lang.Objectpublic AtomicTransition clone()
clone in class Transition<AtomicEvent>protected boolean afterGuard(AtomicEvent event, Statechart<AtomicEvent> statechart)
Transitiontrue.afterGuard in class Transition<AtomicEvent>event - The eventstatechart - The statechart this transition belongs totrue if the transition fires, false otherwiseCopyright © Sylvain HallĂ©. All Rights Reserved.