public class AcsStateUtil
extends java.lang.Object
| Constructor and Description |
|---|
AcsStateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
stateHierarchyNamesToString(java.lang.String[] stateHierarchyNames)
Concatenates the nested state names (path elements) of a substate to a
String. |
static java.lang.String |
stateHierarchyToString(AcsState[] stateHierarchy) |
public static java.lang.String stateHierarchyToString(AcsState[] stateHierarchy)
public static java.lang.String stateHierarchyNamesToString(java.lang.String[] stateHierarchyNames)
String.
For example, if "busy" is a substate of "operational", passing the String[]
{"operational", "busy"} will return "operational/busy".
The main use of this method is to hide the "path separator" for nested states and spare an application the (admittedly not so awful) concatenation.
stateHierarchyNames - outmost state first, nested child (leaf) state last