North State Framework in C#
V3.0.0
An object-oriented framework for implementing UML state machines.
|
Represents a local state transition. More...
Public Member Functions | |
NSFLocalTransition (NSFCompositeState source, NSFState target, NSFEvent trigger, NSFBoolGuard< NSFStateMachineContext > guard, NSFVoidAction< NSFStateMachineContext > action) | |
Creates a local transition. More... | |
NSFLocalTransition (NSFString name, NSFCompositeState source, NSFState target, NSFEvent trigger, NSFBoolGuard< NSFStateMachineContext > guard, NSFVoidAction< NSFStateMachineContext > action) | |
Creates a local transition. More... | |
Public Member Functions inherited from NSFTransition | |
void | addTrigger (NSFEvent trigger) |
Adds a trigger to the list of trigger events. More... | |
Public Member Functions inherited from NSFTaggedObject | |
NSFTaggedObject (NSFString name) | |
Creates an object with a unique id and a name. More... | |
Public Member Functions inherited from NSFUniquelyNumberedObject | |
NSFUniquelyNumberedObject () | |
Creates a uniquely numbered object. More... | |
bool | isSameObject (NSFUniquelyNumberedObject other) |
Checks if this object is the same as another object. More... | |
Protected Member Functions | |
override void | fireTransition (NSFStateMachineContext context) |
Fires the transition. More... | |
Protected Member Functions inherited from NSFTransition | |
NSFTransition (NSFString name, NSFState source, NSFState target, NSFEvent trigger, NSFBoolGuard< NSFStateMachineContext > guard, NSFVoidAction< NSFStateMachineContext > action) | |
Creates a transition. More... | |
Properties | |
override NSFState | Source [set] |
Properties inherited from NSFTransition | |
virtual NSFState | Source [get, set] |
Gets or sets the source of the transition. More... | |
NSFState | Target [get, set] |
Gets or sets the target of the transition. More... | |
List< NSFEvent > | Triggers [get] |
Gets the list of trigger events for the transition. More... | |
Properties inherited from NSFTaggedObject | |
NSFString | Name [get, set] |
Properties inherited from NSFUniquelyNumberedObject | |
NSFId | UniqueId [get] |
Gets or sets the unique id of the object. More... | |
Properties inherited from INSFNamedObject | |
NSFString | Name [get] |
Gets the name of the object. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from NSFUniquelyNumberedObject | |
static NSFId | getNextUniqueId () |
Gets the next unique id. More... | |
Public Attributes inherited from NSFTransition | |
NSFVoidActions < NSFStateMachineContext > | Actions = new NSFVoidActions<NSFStateMachineContext>() |
Actions to be executed whenever the transition is taken. More... | |
NSFBoolGuards < NSFStateMachineContext > | Guards = new NSFBoolGuards<NSFStateMachineContext>() |
Guards to be evaluated to determine if the transition can be taken. More... | |
Represents a local state transition.
Transitions may specify event triggers, guards, and/or actions. Local transitions do not exit their source state.
NSFLocalTransition | ( | NSFCompositeState | source, |
NSFState | target, | ||
NSFEvent | trigger, | ||
NSFBoolGuard< NSFStateMachineContext > | guard, | ||
NSFVoidAction< NSFStateMachineContext > | action | ||
) |
Creates a local transition.
source | Transition source. |
target | Transition target. |
trigger | Transition trigger. |
guard | Transition guard. |
action | Transition action. |
NSFLocalTransition | ( | NSFString | name, |
NSFCompositeState | source, | ||
NSFState | target, | ||
NSFEvent | trigger, | ||
NSFBoolGuard< NSFStateMachineContext > | guard, | ||
NSFVoidAction< NSFStateMachineContext > | action | ||
) |
Creates a local transition.
name | User assigned name for transition. |
source | Transition source. |
target | Transition target. |
trigger | Transition trigger. |
guard | Transition guard. |
action | Transition action. |
|
protectedvirtual |
Fires the transition.
context | The state machine context associated with the transition firing. |
This method is for use only by the North State Framework's internal logic.
Implements NSFTransition.
|
set |