class Statemachine
Package: swiss.avm.up.core.generic.statemachine.javamodel.Statemachine
Direct Known Subclasses: StateOverride
class Statemachine extends AStatemachine, AStatemachineStart, RootVariableName, ASmDecorator, AJunctionProperty
A Statemachine defines the behaviour of a Controller as a finite state machine: its states, the transitions between them, and the initial entry point. A Controller has at most one statemachine.
Properties
comment
Describes the intent of this Resource.
TextLiteral[0..1]
A Literal that accepts multiple lines of text.
junction
Junction[0..N]
A Junction is a choice pseudostate: a branch node with several guarded outgoing
transitions and no behaviour of its own. Its typical use is dispatching control
to different sub-groups based on the active command.
port
BasePort[0..N]
sharedFunction
SharedFunction[0..0]
---
SharedFunctions should no longer be used. These have only limited possibilities in connection with extended controllers.
Instead of SharedFunctions, only ControllerMethods should be used.
sharedGuard
GuardImpl[0..0]
start
Start[0..1]
A Start is the initial pseudostate of a statemachine or of a SuperState. It
marks which state is entered when the enclosing machine or SuperState becomes
active.
state
StateBase[0..N]
stateDiagram
The state diagram is the graphical representation of the states.
DomainDiagram[0..N]
statemachineRoot
ASmDecorator[0..1]
target
Reference to the decorated Resource.
Resource[1..1]
The base class of any Resource in the system.
Method Summary
controllerVariableNameFieldRef
@VariableName
Parameters:
AFieldRef
MainVariable
documentationSvg
@UML_Documentatation
Parameters:
Build
documentationTable
@UML_Documentatation
getAllStates
@StatemachineTemplateFunctions
returns all (bottom) states of the statemachine
Return:
List<StateBase>
getAwailableStartTargets
@FStatemachine
awailable start TargetStates
Return:
List<TargetState>
getControllerTree
@StatemachineTemplateFunctions
Return:
BaseControllerTree
getEntryState
@FStatemachineSequence
erster Junction oder StartState
Parameters:
Controller
Return:
TargetState
getEntryStateTemp
@FStatemachineSequence
erster Junction oder StartState
Parameters:
Controller
Return:
TargetState
getJunctions
@FStatemachine
Return:
List<Junction>
getName
@FStatemachine
getStart
@FStatemachine
returns the resulting start object
Parameters:
Controller
Return:
Start
getStateBases
@FStatemachine
Return:
List<StateBase>
internal_getMaxHistoryCount
@FStatemachine
Return:
IntegerLiteral
smVariableName
@FVariableName
Parameters:
AMainVariable
PlatformType
smVariableNameFieldRef
@FVariableName
Parameters:
AFieldRef
AMainVariable
PlatformType