Skip to content

class StatemachineExtension

Package: swiss.avm.up.core.generic.statemachine.javamodel.StatemachineExtension

Direct Known Subclasses:


class StatemachineExtension extends AStatemachine, AJunctionProperty

A StatemachineExtension defines a controller's statemachine by building on an inherited base statemachine instead of from scratch. It reuses the base lifecycle and adds or overrides only the parts specific to this controller.

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.

junctionExtension

AJunctionExtension[0..N]

startOverwrite

StartOverwrite[0..1]

A StartOverwrite redirects the initial entry of an inherited statemachine to a
different start state, without modifying the base. It is the extension-side
counterpart of a Start.

state

StateBase[0..N]

stateDiagram

The state diagram is the graphical representation of the states.

DomainDiagram[0..N]

stateExtension

AStateExtension[1..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

getAdditionalJunctionsForDiagram

@FDiagramStatemachineExtension

get all additional junctions to show in merged diagram

Return:

List<Junction>

getAdditionalStatesForDiagram

@FDiagramStatemachineExtension

get all additional states to show in merged diagram

Return:

List<StateBase>

getAllAdditionalJunctions

@FStatemachine

returns all flat junctions and junctions in stateExtensions

Return:

List<Junction>

getAlladditionalStateBases

@FStatemachine

Return:

List<StateBase>

getController

@FStatemachine

Return:

Controller

getJunctionExtensions

@FStatemachine

Return:

List<AJunctionExtension>

getJunctionExtensionsForDiagram

@FDiagramStatemachineExtension

get all junction extensions to show in merged diagram

Return:

List<AStateExtension>

getJunctionExtensionsUnique

@FStatemachine

Return:

List<AJunctionExtension>

getJunctionsForDiagram

@FDiagramStatemachineExtension

get all junctions to show in merged diagram

Return:

List<Junction>

getName

@FStatemachine

getRootStatemachine

@FStatemachine

Return:

Statemachine

getStartForDiagram

@FDiagramStatemachineExtension

Return:

Start

getStateExtensions

@FStatemachine

Return:

List<AStateExtension>

getStateExtensionsForDiagram

@FDiagramStatemachineExtension

get all state extensions to show in merged diagram

Return:

List<AStateExtension>

getStateExtensionsUnique

@FStatemachine

Return:

List<AStateExtension>

getStatemachineExtensionsBottomUp

@FStatemachine

Return:

List<StatemachineExtension>

getStatemachineExtensionsTopDown

@FStatemachine

Return:

List<StatemachineExtension>

getStatesForDiagram

@FDiagramStatemachineExtension

get all states to show in merged diagram

Return:

List<StateBase>

internal_getAllAdditionalJunctions

@FStatemachine

Return:

List<Junction>

internal_getAllAdditionalStates

@FStatemachine

Return:

List<StateBase>