Package cruise.umple.compiler
Class StateTable
java.lang.Object
cruise.umple.compiler.StateTable
public class StateTable
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description StateTable(UmpleClass aUClass, StateMachine aSm)
-
Method Summary
Modifier and Type Method Description boolean
addOrMoveRowAt(StateTableRow aRow, int index)
StateTableRow
addRow(State aUState, java.lang.String aSLabel, int aNestingLevel, StateTableRow aParent, int aTableRowId)
boolean
addRow(StateTableRow aRow)
boolean
addRowAt(StateTableRow aRow, int index)
void
addTransitionsToList(State s)
void
buildAllEvents()
Builds the columns after the rest of the tables are madeint
buildRecursively(StateMachine theSm, int nestingLevel, int currentId, StateTableRow parent)
Walks the state machine adding rows as neededvoid
buildRecursivelyCompositeArray(StateMachine theSm, State parentState, java.util.ArrayList<CompositeStateWrapper> cswList)
void
buildRecursivelyCompositeEntry(StateMachine theSm)
void
buildRecursivelyEntry(StateMachine theSm)
The first call to the recursive state machine walkingjava.lang.StringBuilder
compositeStateEventTableHtml(java.lang.StringBuilder sb)
java.lang.StringBuilder
compositeStateStateTableHtml(java.lang.StringBuilder sb)
void
consolidateTransitions(java.util.ArrayList<Transition> transitionList)
void
delete()
java.util.List<java.lang.String>
getAllEvents()
will be populated by call to buildAllEventsjava.util.HashMap<java.lang.String,CompositeTransitionWrapper>
getCtwMap()
boolean
getIsConcurrent()
java.util.ArrayList<CompositeStateWrapper>
getPrimaryCswList()
will likely have to change this one so it conforms to umple standards.StateTableRow
getRow(int index)
java.util.List<StateTableRow>
getRows()
Rows to be output for each stateStateMachine
getSm()
java.lang.String
getTransitionInfo(Transition transition)
java.util.ArrayList<Transition>
getTransitionList()
UmpleClass
getUClass()
boolean
hasRows()
int
indexOfRow(StateTableRow aRow)
static int
minimumNumberOfRows()
int
numberOfRows()
boolean
removeRow(StateTableRow aRow)
boolean
setAllEvents(java.util.List<java.lang.String> aAllEvents)
boolean
setCtwMap(java.util.HashMap<java.lang.String,CompositeTransitionWrapper> aCtwMap)
boolean
setIsConcurrent(boolean aIsConcurrent)
boolean
setPrimaryCswList(java.util.ArrayList<CompositeStateWrapper> aPrimaryCswList)
boolean
setSm(StateMachine aSm)
boolean
setTransitionList(java.util.ArrayList<Transition> aTransitionList)
boolean
setUClass(UmpleClass aUClass)
java.lang.StringBuilder
stateEventTableHtml(java.lang.StringBuilder sb)
Outputs the Event State table - with states as cellsjava.lang.StringBuilder
stateStateTableHtml(java.lang.StringBuilder sb)
Outputs the State State table - with events as cellsjava.lang.String
toString()
-
Constructor Details
-
Method Details
-
setUClass
-
setSm
-
setAllEvents
public boolean setAllEvents(java.util.List<java.lang.String> aAllEvents) -
setPrimaryCswList
-
setTransitionList
-
setCtwMap
-
setIsConcurrent
public boolean setIsConcurrent(boolean aIsConcurrent) -
getUClass
-
getSm
-
getAllEvents
public java.util.List<java.lang.String> getAllEvents()will be populated by call to buildAllEvents -
getPrimaryCswList
will likely have to change this one so it conforms to umple standards. -
getTransitionList
-
getCtwMap
-
getIsConcurrent
public boolean getIsConcurrent() -
getRow
-
getRows
Rows to be output for each state -
numberOfRows
public int numberOfRows() -
hasRows
public boolean hasRows() -
indexOfRow
-
minimumNumberOfRows
public static int minimumNumberOfRows() -
addRow
public StateTableRow addRow(State aUState, java.lang.String aSLabel, int aNestingLevel, StateTableRow aParent, int aTableRowId) -
addRow
-
removeRow
-
addRowAt
-
addOrMoveRowAt
-
delete
public void delete() -
stateEventTableHtml
public java.lang.StringBuilder stateEventTableHtml(java.lang.StringBuilder sb)Outputs the Event State table - with states as cells -
compositeStateEventTableHtml
public java.lang.StringBuilder compositeStateEventTableHtml(java.lang.StringBuilder sb) -
stateStateTableHtml
public java.lang.StringBuilder stateStateTableHtml(java.lang.StringBuilder sb)Outputs the State State table - with events as cells -
compositeStateStateTableHtml
public java.lang.StringBuilder compositeStateStateTableHtml(java.lang.StringBuilder sb) -
buildAllEvents
public void buildAllEvents()Builds the columns after the rest of the tables are made -
buildRecursivelyEntry
The first call to the recursive state machine walking -
addTransitionsToList
-
buildRecursivelyCompositeEntry
-
buildRecursivelyCompositeArray
public void buildRecursivelyCompositeArray(StateMachine theSm, State parentState, java.util.ArrayList<CompositeStateWrapper> cswList) -
getTransitionInfo
-
consolidateTransitions
-
buildRecursively
public int buildRecursively(StateMachine theSm, int nestingLevel, int currentId, StateTableRow parent)Walks the state machine adding rows as needed -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-