Package | Description |
---|---|
fr.lri.swingstates.applets | |
fr.lri.swingstates.debug |
A package containing listeners for state machine and a graphical widget to visualize state machines while they are running.
|
fr.lri.swingstates.events |
A package containing all the SwingStates events.
|
fr.lri.swingstates.sm |
A package to program state machines.
|
Modifier and Type | Field and Description |
---|---|
State |
GesturalInteraction.draw |
State |
GesturalInteraction.feedback |
State |
GesturalInteraction.start |
Modifier and Type | Method and Description |
---|---|
State |
StateMachineEvent.getCurrentState()
Returns the current state of the state machine that originated this StateMachineEvent.
|
State |
StateMachineEvent.getPreviousState()
Returns the previous state of the state machine that originated this StateMachineEvent.
|
Modifier and Type | Method and Description |
---|---|
void |
Watcher.fireSmReset(State previousState)
Fires a StateMachineEvent to all registered listeners notifying them the state machine has been restarted.
|
void |
Watcher.fireStateChanged(Transition t,
State previousState,
State currentState)
Fires a StateMachineEvent to all registered listeners notifying them the state machine has passed in another state.
|
void |
Watcher.fireStateLooped(Transition t,
State state)
Fires a StateMachineEvent to all registered listeners notifying them the state machine has passed a transition but looped in its current state.
|
Constructor and Description |
---|
StateMachineEvent(StateMachine stateMachine,
Transition t,
State cState)
Builds a StateMachineEvent originated by a state machine that has just fired a transition that makes it loop on the current state.
|
StateMachineEvent(StateMachine stateMachine,
Transition t,
State pState,
State cState)
Builds a StateMachineEvent.
|
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<Transition> |
VirtualEvent.getMatchingTransitions(State state)
Retrieves the transitions that match the name of this event on a given state.
|
Modifier and Type | Field and Description |
---|---|
State |
PressDragReleaseStateMachine.move |
State |
DnDStateMachine.move
The two states (start and move) of this machine.
|
State |
PressDragReleaseStateMachine.start |
State |
DnDStateMachine.start
The two states (start and move) of this machine.
|
Modifier and Type | Method and Description |
---|---|
State |
StateMachine.getCurrentState()
Returns this state machine's current state.
|
State |
StateMachine.getInitialState()
Returns this state machine's initial state.
|
State |
Transition.getInputState() |
State |
Transition.getOutputState() |
State |
StateMachine.getState(java.lang.String s)
Look up a state by its name.
|
Modifier and Type | Method and Description |
---|---|
java.util.Vector<State> |
StateMachine.getAllStates()
Returns the vector containing all this state machine's states.
|