Click or drag to resize
StaMaStateConfigurationToString Method
Returns a human readable representation for the StateConfiguration.

Namespace: StaMa
Assembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax
public override string ToString()

Return Value

Type: String

In case of a flat state machine this method simply returns the single state name that was passed in at the constructor.

In case of a hierarchical state machine the returned String is a hierachically organized concatenation of the state names passed in at the constructor.

In Extended Backus-Naur Form (EBNF) the resulting string rule can be written as

StateConfiguration = StateName | StateName , "(" , ConcurrentStateConfigurations, ")" ;

ConcurrentStateConfigurations = StateConfiguration | StateConfiguration , "," , ConcurrentStateConfigurations ;

Expressed in words, the method returns the top level state name followed by an opening bracket followed by a list of sub state names separated with commas followed by a closing bracket.

Examples: "StateA", "StateA(SubRegionStateB)" or "StateA(NestedRegion1StateB,NestedRegion2StateC)"

See Also