StateConfigurationToString Method |
Namespace: StaMa
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)"