public void done() throws IllegalStateException { mustBeInitializing(); // optimize FSM here if desired. For example, we could choose different strategies for implementing the state // transition function based on the distribution of values for states and input labels. initializing = false; }
public void setDefaultAction(Action act) throws IllegalStateException { mustBeInitializing(); defaultAction = act; }
public void done() throws IllegalStateException { mustBeInitializing(); // optimize FSM here if desired. For example, we could choose different strategies for implementing the state // transition function based on the distribution of values for states and input labels. initializing = false; }
public void setDefaultAction(Action act) throws IllegalStateException { mustBeInitializing(); defaultAction = act; }
public StateEngine add(State oldState, Input input, Guard guard, Action action, State newState) throws IllegalArgumentException, IllegalStateException { mustBeInitializing(); StateImpl oldStateImpl = (StateImpl) oldState; GuardedAction ga = new GuardedAction(guard, action, newState); oldStateImpl.addGuardedAction(input, ga); return this; }
public StateEngine setDefault(State oldState, Action action, State newState) throws IllegalArgumentException, IllegalStateException { mustBeInitializing(); StateImpl oldStateImpl = (StateImpl) oldState; oldStateImpl.setDefaultAction(action); oldStateImpl.setDefaultNextState(newState); return this; }
public StateEngine add(State oldState, Input input, Action action, State newState) throws IllegalArgumentException, IllegalStateException { mustBeInitializing(); StateImpl oldStateImpl = (StateImpl) oldState; GuardedAction ta = new GuardedAction(action, newState); oldStateImpl.addGuardedAction(input, ta); return this; }
public StateEngine add(State oldState, Input input, Guard guard, Action action, State newState) throws IllegalArgumentException, IllegalStateException { mustBeInitializing(); StateImpl oldStateImpl = (StateImpl) oldState; GuardedAction ga = new GuardedAction(guard, action, newState); oldStateImpl.addGuardedAction(input, ga); return this; }
public StateEngine add(State oldState, Input input, Action action, State newState) throws IllegalArgumentException, IllegalStateException { mustBeInitializing(); StateImpl oldStateImpl = (StateImpl) oldState; GuardedAction ta = new GuardedAction(action, newState); oldStateImpl.addGuardedAction(input, ta); return this; }
public StateEngine setDefault(State oldState, Action action, State newState) throws IllegalArgumentException, IllegalStateException { mustBeInitializing(); StateImpl oldStateImpl = (StateImpl) oldState; oldStateImpl.setDefaultAction(action); oldStateImpl.setDefaultNextState(newState); return this; }