- ABORT - Static variable in class com.github.pnavais.machine.api.Status
-
Abort the operation
- AbstractEnvelope<N extends Node,M extends Message> - Class in com.github.pnavais.machine.api.message
-
- AbstractEnvelope() - Constructor for class com.github.pnavais.machine.api.message.AbstractEnvelope
-
- AbstractFilteredState - Class in com.github.pnavais.machine.model
-
Base class for all Message filter state decorators
- AbstractFilteredState(State) - Constructor for class com.github.pnavais.machine.model.AbstractFilteredState
-
Constructor with the state to wrap
- AbstractNode - Class in com.github.pnavais.machine.api
-
Represents an arbitrary node of a given directed graph
- AbstractNode(String) - Constructor for class com.github.pnavais.machine.api.AbstractNode
-
Constructor with node name
- AbstractStatesExporter<R,S extends State,M extends Message,T extends Transitioner<S,M,? extends Transition<S,M>>> - Class in com.github.pnavais.machine.exporter
-
- AbstractStatesExporter(FileSystem, String, Color, boolean, boolean, Color) - Constructor for class com.github.pnavais.machine.exporter.AbstractStatesExporter
-
All arguments constructor
- AbstractStatesExporter() - Constructor for class com.github.pnavais.machine.exporter.AbstractStatesExporter
-
No arguments constructor.
- AbstractWrappedState - Class in com.github.pnavais.machine.model
-
This class is intended to contain the actual State
instance in order to be stored in a state machine.
- AbstractWrappedState(State) - Constructor for class com.github.pnavais.machine.model.AbstractWrappedState
-
Constructor with the state to wrap
- add(T) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Adds a new transition
- add(T) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Adds a new transition to the index
- add(StateTransition) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder
-
Adds the given transition to the transition map.
- add(StateTransition) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Adds a new Transition to the statemachine.
- add(StateTransition) - Method in class com.github.pnavais.machine.StateMachine
-
Adds a new Transition to the state
machine.
- addAll(Collection<T>) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Adds a collection of Transition to the state
machine.
- addAll(Collection<T>) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Adds all supplied transitions to the index.
- addAll(Collection<StateTransition>) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Adds all supplied transitions to the index.
- addAll(Collection<StateTransition>) - Method in class com.github.pnavais.machine.StateMachine
-
Adds a collection of Transition to the state
machine.
- addProperty(String, String) - Method in class com.github.pnavais.machine.model.State
-
Adds the property with the given key and value.
- ANY - Static variable in class com.github.pnavais.machine.api.message.Messages
-
A void message used as marker representing any kind of message
- ANY_MESSAGE_ID - Static variable in class com.github.pnavais.machine.api.message.Messages
-
The identifier of the ANY void message
- ANY_MESSAGE_PAYLOAD - Static variable in class com.github.pnavais.machine.api.message.Messages
-
The payload string of the ANY void message
- arriving(String) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder
-
Initializes the builder to add a global
filter for arrivals for the state
specified by the given name.
- arriving(State) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder
-
Initializes the builder to add a global
filter for arrivals for the given state.
- arriving(Function<StateContext, Status>) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.OnBuilder
-
Adds a filtering function for incoming messages in target state
of the transition by transforming the current target state into
a
FilteredState.
- arriving(String) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.ToBuilder
-
Initializes the builder to add a global
filter for arrivals for the state
specified by the given name.
- arriving(State) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.ToBuilder
-
Initializes the builder to add a global
filter for arrivals for the given state.
- arriving(Function<StateContext, Status>) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.ToBuilder
-
Adds a filtering function for incoming messages in target state
of the transition by transforming the current target state into
a
FilteredState.
- fail(String) - Static method in class com.github.pnavais.machine.api.validator.ValidationResult
-
Creates an unsuccessful validation result with
the given message.
- FileExportException - Exception in com.github.pnavais.machine.api.exception
-
An exception raised on file export operations
- FileExportException(String, Throwable) - Constructor for exception com.github.pnavais.machine.api.exception.FileExportException
-
Creates the exception using the given message
description and wrapping the actual exception
- FileImportException - Exception in com.github.pnavais.machine.api.exception
-
Exception raised during I/O Processing of a given
State Machine representation.Actually the exception is intended
to wrap an actual underlying exception (e.g
IOException
- FileImportException(String, Throwable) - Constructor for exception com.github.pnavais.machine.api.exception.FileImportException
-
Constructor with a given message and throwable cause.
- fileSystem - Variable in class com.github.pnavais.machine.exporter.AbstractStatesExporter
-
The file system to use when locating paths
- fillDefaults() - Method in class com.github.pnavais.machine.exporter.AbstractStatesExporter
-
Fills default values for all non-primitive types
- FilteredState - Class in com.github.pnavais.machine.model
-
A decorator adding message filtering functionality
to regular states.
- FilteredState(State) - Constructor for class com.github.pnavais.machine.model.FilteredState
-
Constructor with state
- finalStateColor - Variable in class com.github.pnavais.machine.exporter.AbstractStatesExporter
-
The color for final states
- find(String) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Finds the node in the transition
associated with the give name.
- find(String) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Search the given node in the transition index
by its name.
- find(String) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Finds the given state by its name.
- find(String) - Method in class com.github.pnavais.machine.StateMachine
-
Finds the state referenced by the given name
in the state machine
machine.
- forward(Message) - Static method in class com.github.pnavais.machine.api.Status
-
Creates an status to request the emission of a new
message.
- from(RuntimeException) - Static method in class com.github.pnavais.machine.api.validator.ValidationResult
-
Creates an invalid result from a given exception
- from(String) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder
-
Starts the building of a new
transition by specifying the source
state's name
- from(State) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder
-
Starts the building of a new
transition by specifying the source
state.
- from(String) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.OnBuilder
-
Starts a new transition from the given
state name using an empty
message for the current transition.
- from(State) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.OnBuilder
-
Starts a new transition from the given
state using an empty
message for the current transition.
- from(String) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.ToBuilder
-
Starts a new transition from the given
state name using an empty
message for the current transition.
- from(State) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.ToBuilder
-
Starts a new transition from the given
state using an empty
message for the current transition.
- from(State) - Static method in class com.github.pnavais.machine.model.FilteredState
-
Static factory method to decorate the state with
message filtering capabilities
- from(Status, Event) - Static method in class com.github.pnavais.machine.model.InfoStatus
-
Static factory method to create the wrapped
information status instance.
- from(String) - Static method in class com.github.pnavais.machine.model.State
-
Static factory method to create the State
- from(String) - Static method in class com.github.pnavais.machine.model.StringMessage
-
Static factory method to create a message
with a message key.
- from(String, Payload) - Static method in class com.github.pnavais.machine.model.StringMessage
-
Static factory method to create a message
with a message key and payload
- FunctionMessageFilter<T extends AbstractNode,C extends Context<T>> - Class in com.github.pnavais.machine.api.filter
-
Allows fine grained customization of the filtering as it provides a per message
functionality injection.
- FunctionMessageFilter() - Constructor for class com.github.pnavais.machine.api.filter.FunctionMessageFilter
-
- getAllTransitions() - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Retrieves all state transitions currently
defined.
- getAllTransitions() - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Retrieve all transitions stored in the index.
- getAllTransitions() - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Retrieve all the transitions stored in the transition map.
- getAllTransitions() - Method in class com.github.pnavais.machine.StateMachine
-
Retrieves all state transitions currently
defined.
- getCurrent() - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Retrieves the node
of the last transition performed.
- getCurrent() - Method in class com.github.pnavais.machine.StateMachine
-
Retrieves the current state
- getDispatchHandler(Message) - Method in class com.github.pnavais.machine.api.filter.FunctionMessageFilter
-
Retrieves the dispatch handler for the given message
- getFailurePolicy() - Method in interface com.github.pnavais.machine.api.validator.TransitionValidator
-
Retrieves the failure policy.
- getFirst() - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Retrieves the first node in the index
- getFirst() - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Retrieves the first state in the transition map
- getId() - Method in class com.github.pnavais.machine.api.AbstractNode
-
Retrieves the identifier of the node
- getMessage() - Method in interface com.github.pnavais.machine.api.message.Envelope
-
Retrieves the message
- getMessageFilter() - Method in class com.github.pnavais.machine.model.AbstractFilteredState
-
Retrieves the message filter
- getMessageId() - Method in interface com.github.pnavais.machine.api.message.Message
-
Retrieves the Message Identifier
- getMessageId() - Method in class com.github.pnavais.machine.model.StringMessage
-
Retrieves the message identifier
- getName() - Method in class com.github.pnavais.machine.api.AbstractNode
-
Retrieves the name of the node
- getName() - Method in interface com.github.pnavais.machine.api.Node
-
Retrieves the name of the node
- getName() - Method in class com.github.pnavais.machine.model.AbstractWrappedState
-
Retrieves the name of the state
- getNext(M) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Retrieves the next node upon
transitioning from the current node
on message reception.
- getNext(N, M) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Retrieves the next node after applying the
message on the given source node.
- getNext(State, Message) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Retrieves the next state in the transition from
source state upon message m reception
- getNext(Message) - Method in class com.github.pnavais.machine.StateMachine
-
Retrieves the next state upon
message reception.
- getOrigin() - Method in interface com.github.pnavais.machine.api.message.Envelope
-
Retrieves the source originator
of the message.
- getPayload() - Method in interface com.github.pnavais.machine.api.message.Message
-
Retrieves the payload contents
of the message.
- getPayload() - Method in class com.github.pnavais.machine.model.StringMessage
-
- getPrevious(N, M) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Retrieves the previous node upon reception of the
message on the given source node.
- getPrevious(State, Message) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Retrieves the previous node upon reception of the
message on the given source node.
- getProperty(String) - Method in class com.github.pnavais.machine.model.State
-
Retrieves the property identified by the given key
or null if not found
- getReceptionHandler(Message) - Method in class com.github.pnavais.machine.api.filter.FunctionMessageFilter
-
Retrieves the reception handler for the given message
- getSiblings(String) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Retrieves the adjacent nodes i.e.
- getSiblings(String) - Method in class com.github.pnavais.machine.StateMachine
-
Retrieves the adjacent states i.e.
- getTarget() - Method in interface com.github.pnavais.machine.api.message.Envelope
-
Retrieves the target of the message.
- getTransitionMap() - Method in class com.github.pnavais.machine.builder.StateMachineBuilder
-
Retrieves the current transition map.
- getTransitions(String) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Retrieves the transitions currently
defined for the given node.
- getTransitions(N) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Retrieves the transitions stored in the index
for the given node.
- getTransitions(String) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Retrieves the transitions stored in the index
for the given named node.
- getTransitions(String) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Retrieves the transitions from the given state
or throws a
NullStateException
if not found.
- getTransitions(State) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Retrieves the transitions from the given state
or throws a
NullStateException
if not found.
- getTransitions(String) - Method in class com.github.pnavais.machine.StateMachine
-
Retrieves the state transitions for the given
state.
- getTransitionsAsMap() - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Retrieves the transitions as a map
- getTransitionsAsMap() - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Retrieves the transitions as a map
- getTransitionsIndex() - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Retrieves the transition index used
by the transition.
- getTransitionsIndex() - Method in class com.github.pnavais.machine.StateMachine
-
Retrieves the transition map
- graphName - Variable in class com.github.pnavais.machine.exporter.AbstractStatesExporter
-
The name of the graph
- remove(T) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Removes an existing transition
- remove(String) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Removes a node matching the given name
and allits transitions
- remove(N) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Removes an existing node and all
its transitions.
- remove(T) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Removes an existing transition from the index
- remove(N) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Removes an existing node from the index
and all its transitions.
- remove(String) - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Removes an existing node from the index
and all its transitions by its name.
- remove(StateTransition) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Removes an existing Transition from the state machine.
- remove(State) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Removes the current state from the machine
including defined transitions.
- remove(String) - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Removes the current state from the machine
including defined transitions.
- remove(StateTransition) - Method in class com.github.pnavais.machine.StateMachine
-
Removes an existing Transition from the state machine.
- remove(String) - Method in class com.github.pnavais.machine.StateMachine
-
Removes an existing state from the state machine.
- remove(State) - Method in class com.github.pnavais.machine.StateMachine
-
Removes an existing state from the state machine.
- removeAllTransitions() - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Removes all existing Transitions from the state machine.
- removeAllTransitions() - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Removes all transitions from the map
- removeAllTransitions() - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Clear all transitions from the map
- removeAllTransitions() - Method in class com.github.pnavais.machine.StateMachine
-
Removes all existing Transitions from the state machine.
- removeDispatchHandler(Message) - Method in class com.github.pnavais.machine.api.filter.FunctionMessageFilter
-
Removes the dispatch handler for the
given message.
- removeProperty(String) - Method in class com.github.pnavais.machine.model.State
-
Removes the property identified by the given key
or discard the operation silently if not found.
- removeReceptionHandler(Message) - Method in class com.github.pnavais.machine.api.filter.FunctionMessageFilter
-
Removes the reception handler for the
given message.
- selfLoop(String) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.OnBuilder
-
Creates a self loop for the state
specified by the given name.
- selfLoop(State) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.OnBuilder
-
Creates a self loop for the given state.
- selfLoop(String) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder
-
Starts the definition of a loop
for the given state's name
- selfLoop(State) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder
-
Starts a definition of a loop
for the given state
- selfLoop(String) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.ToBuilder
-
Creates a self loop for the state
specified by the given name.
- selfLoop(State) - Method in class com.github.pnavais.machine.builder.StateMachineBuilder.ToBuilder
-
Creates a self loop for the given state.
- send(M) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Sends a message to the transitioner triggering
a potential transition.
- send(String) - Method in class com.github.pnavais.machine.StateMachine
-
Sends a message to the state machine triggering
a potential transition.
- send(Message) - Method in class com.github.pnavais.machine.StateMachine
-
Sends a message to the state machine triggering
a potential transition.
- setCurrent(String) - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Sets the current node to the one
supplied by the the given name.
- setCurrent(String) - Method in class com.github.pnavais.machine.StateMachine
-
Sets the current state to the
given one.
- setCurrent(State) - Method in class com.github.pnavais.machine.StateMachine
-
Sets the current state if present
- setDispatchHandler(Message, Function<C, Status>) - Method in class com.github.pnavais.machine.api.filter.FunctionMessageFilter
-
Sets the given function to handle the message to be
dispatched.
- setDispatchHandler(Function<StateContext, Status>) - Method in class com.github.pnavais.machine.model.AbstractFilteredState
-
Sets the dispatch handler for ANY message
- setDispatchHandler(Message, Function<StateContext, Status>) - Method in class com.github.pnavais.machine.model.AbstractFilteredState
-
Sets the dispatch handler for the given message
- setDispatchHandler(Function<StateContext, Status>) - Method in class com.github.pnavais.machine.model.FilteredState
-
Sets the dispatch handler for ANY message
- setDispatchHandler(Message, Function<StateContext, Status>) - Method in class com.github.pnavais.machine.model.FilteredState
-
Sets the dispatch handler for the given message
- setFinal(boolean) - Method in class com.github.pnavais.machine.api.AbstractNode
-
Sets whether the state is
final or not.
- setFinal(boolean) - Method in class com.github.pnavais.machine.model.AbstractWrappedState
-
Sets whether the state is
final or not.
- setReceptionHandler(Message, Function<C, Status>) - Method in class com.github.pnavais.machine.api.filter.FunctionMessageFilter
-
Sets the given function to handle the message to be
received.
- setReceptionHandler(Function<StateContext, Status>) - Method in class com.github.pnavais.machine.model.AbstractFilteredState
-
Sets the reception handler for ANY message
- setReceptionHandler(Message, Function<StateContext, Status>) - Method in class com.github.pnavais.machine.model.AbstractFilteredState
-
Sets the reception handler for the given message
- setReceptionHandler(Function<StateContext, Status>) - Method in class com.github.pnavais.machine.model.FilteredState
-
Sets the reception handler for ANY message
- setReceptionHandler(Message, Function<StateContext, Status>) - Method in class com.github.pnavais.machine.model.FilteredState
-
Sets the reception handler for the given message
- showCurrent - Variable in class com.github.pnavais.machine.exporter.AbstractStatesExporter
-
Show current status in different color
- SimpleEnvelope - Class in com.github.pnavais.machine.model
-
An implementation of the envelope handling state messaging.
- SimpleEnvelope(State, Message, State, TransitionIndex<State, Message, StateTransition>) - Constructor for class com.github.pnavais.machine.model.SimpleEnvelope
-
- size() - Method in interface com.github.pnavais.machine.api.transition.Transitioner
-
Retrieves the number of nodes currently
handled by the transition.
- size() - Method in interface com.github.pnavais.machine.api.transition.TransitionIndex
-
Retrieves the number of elements in the index
- size() - Method in class com.github.pnavais.machine.impl.StateTransitionMap
-
Retrieves the number of states in the transition map
- size() - Method in class com.github.pnavais.machine.StateMachine
-
Retrieves the number of states currently
present in the state machine.
- state - Variable in class com.github.pnavais.machine.model.AbstractWrappedState
-
The target State.
- State - Class in com.github.pnavais.machine.model
-
The default implementation of the state.
- State(String) - Constructor for class com.github.pnavais.machine.model.State
-
Constructor with node name
- State.StateBuilder - Class in com.github.pnavais.machine.model
-
A basic State builder
- StateBuilder() - Constructor for class com.github.pnavais.machine.model.State.StateBuilder
-
- StateContext - Class in com.github.pnavais.machine.model
-
The context implementation for State nodes
- StateContext(Event, State, State, Message) - Constructor for class com.github.pnavais.machine.model.StateContext
-
Default constructor with all context information.
- StateMachine - Class in com.github.pnavais.machine
-
The State Machine contains a simple map of Transitions between
different nodes (States) triggered by incoming messages.
- StateMachine() - Constructor for class com.github.pnavais.machine.StateMachine
-
Creates the state machine.
- StateMachine(TransitionIndex<State, Message, StateTransition>) - Constructor for class com.github.pnavais.machine.StateMachine
-
Creates the state machine with the given
transition map.
- StateMachine(TransitionChecker<State, Message>) - Constructor for class com.github.pnavais.machine.StateMachine
-
Creates the state machine with the given
transition checker.
- StateMachine(TransitionIndex<State, Message, StateTransition>, TransitionChecker<State, Message>) - Constructor for class com.github.pnavais.machine.StateMachine
-
Creates the state machine with the given
transition map and checker
- StateMachineBuilder - Class in com.github.pnavais.machine.builder
-
- StateMachineBuilder() - Constructor for class com.github.pnavais.machine.builder.StateMachineBuilder
-
The constructor
- StateMachineBuilder.FilterBuilder - Class in com.github.pnavais.machine.builder
-
Internal builder class to begin the definition
of a new filter.
- StateMachineBuilder.FromBuilder - Class in com.github.pnavais.machine.builder
-
Internal builder class to begin the definition
of a new transition.
- StateMachineBuilder.OnBuilder - Class in com.github.pnavais.machine.builder
-
Internal builder class to optionally add
message filtering before ending the definition
of a new transition.
- StateMachineBuilder.ToBuilder - Class in com.github.pnavais.machine.builder
-
Internal builder class to end the definition
of a new transition.
- StateTransition - Class in com.github.pnavais.machine.model
-
Represents a simple transition between states
- StateTransition(State, Message, State) - Constructor for class com.github.pnavais.machine.model.StateTransition
-
Creates a new state transition with the given
origin and destination states after applying the message.
- StateTransition(State, Message, String) - Constructor for class com.github.pnavais.machine.model.StateTransition
-
Creates a new state transition with the given
origin and destination state names after applying the message.
- StateTransition(String, Message, State) - Constructor for class com.github.pnavais.machine.model.StateTransition
-
Creates a new state transition with the given
origin and destination state names after applying the message.
- StateTransition(String, Message, String) - Constructor for class com.github.pnavais.machine.model.StateTransition
-
Creates a new state transition with the given
origin and destination state names after applying the message.
- StateTransition(State, String, State) - Constructor for class com.github.pnavais.machine.model.StateTransition
-
Creates a new state transition with the given
origin and destination state names after applying the message.
- StateTransition(String, String, String) - Constructor for class com.github.pnavais.machine.model.StateTransition
-
Creates a new state transition with the given
origin and destination state names after applying the message.
- StateTransition(String, String, State) - Constructor for class com.github.pnavais.machine.model.StateTransition
-
Creates a new state transition with the given
origin and destination state names after applying the message.
- StateTransition(State, String, String) - Constructor for class com.github.pnavais.machine.model.StateTransition
-
Creates a new state transition with the given
origin and destination state names after applying the message.
- StateTransitionChecker - Class in com.github.pnavais.machine.impl
-
Implements the check between state transitions
- StateTransitionChecker() - Constructor for class com.github.pnavais.machine.impl.StateTransitionChecker
-
- StateTransitionMap - Class in com.github.pnavais.machine.impl
-
The State Machine contains a simple map of Transitions between
different nodes (States) triggered by incoming messages.
- StateTransitionMap() - Constructor for class com.github.pnavais.machine.impl.StateTransitionMap
-
Creates the state machine.
- StateTransitionMap(Map<State, Map<Message, State>>) - Constructor for class com.github.pnavais.machine.impl.StateTransitionMap
-
Creates the state machine with a given transition map.
- StateTransitionMap(TransitionValidator<State, Message, StateTransition>) - Constructor for class com.github.pnavais.machine.impl.StateTransitionMap
-
Creates the state machine with a custom transition validator.
- StateTransitionMap(Map<State, Map<Message, State>>, TransitionValidator<State, Message, StateTransition>) - Constructor for class com.github.pnavais.machine.impl.StateTransitionMap
-
Creates the state machine with a custom transition map
and validator.
- StateTransitionValidator - Class in com.github.pnavais.machine.impl
-
Implementation of the transition validator for state transitions.
- StateTransitionValidator() - Constructor for class com.github.pnavais.machine.impl.StateTransitionValidator
-
- Status - Class in com.github.pnavais.machine.api
-
The status represents the possible outcome of a given movement
between nodes.
- Status(String, Message, boolean) - Constructor for class com.github.pnavais.machine.api.Status
-
Constructor with name, message and validity.
- STATUS_ABORTED - Static variable in class com.github.pnavais.machine.api.Status
-
The aborted status keyword
- STATUS_FORWARD - Static variable in class com.github.pnavais.machine.api.Status
-
The send message status keyword
- STATUS_PROCEED - Static variable in class com.github.pnavais.machine.api.Status
-
The proceed status keyword
- statusName - Variable in class com.github.pnavais.machine.api.Status
-
The Status name.
- StringMessage - Class in com.github.pnavais.machine.model
-
An implementation of the Message interface
with a String payload.
- StringMessage(String) - Constructor for class com.github.pnavais.machine.model.StringMessage
-
Default constructor with a message identifier
- success() - Static method in class com.github.pnavais.machine.api.validator.ValidationResult
-
Creates a successful validation result
- valid - Variable in class com.github.pnavais.machine.api.Status
-
The validity flag
- validate(T, TransitionIndex<N, M, T>, TransitionValidator.Operation) - Method in interface com.github.pnavais.machine.api.validator.TransitionValidator
-
Checks the transition parameter correctness
with respect to current transitions on the given
index.
- validate(StateTransition, TransitionIndex<State, Message, StateTransition>, TransitionValidator.Operation) - Method in class com.github.pnavais.machine.impl.StateTransitionValidator
-
Checks the transition parameter correctness
with respect to current transitions on the given
index before applying the operation.
- validateArrival(Envelope<N, M>) - Method in interface com.github.pnavais.machine.api.transition.TransitionChecker
-
Validates the arrival to a given target state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
- validateArrival(Envelope<State, Message>) - Method in class com.github.pnavais.machine.impl.StateTransitionChecker
-
Validates the arrival to a given target state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
- validateDeparture(Envelope<N, M>) - Method in interface com.github.pnavais.machine.api.transition.TransitionChecker
-
Validates the departure from the current state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
- validateDeparture(Envelope<State, Message>) - Method in class com.github.pnavais.machine.impl.StateTransitionChecker
-
Validates the departure from the current state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
- ValidationException - Exception in com.github.pnavais.machine.api.exception
-
A generic exception raised when dealing with incorrect validation results
- ValidationException(String) - Constructor for exception com.github.pnavais.machine.api.exception.ValidationException
-
Creates the exception using the given message
description.
- ValidationResult - Class in com.github.pnavais.machine.api.validator
-
This class holds the results of a validation
with an optional detailed description message and
companion exception class.
- ValidationResult() - Constructor for class com.github.pnavais.machine.api.validator.ValidationResult
-
- valueOf(String) - Static method in enum com.github.pnavais.machine.api.message.Event
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.pnavais.machine.api.validator.TransitionValidator.FailurePolicy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.pnavais.machine.api.validator.TransitionValidator.Operation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.pnavais.machine.exporter.DOTExporter.RankDir
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.pnavais.machine.exporter.YAMLExporter.MarginSize
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.github.pnavais.machine.api.message.Event
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.github.pnavais.machine.api.validator.TransitionValidator.FailurePolicy
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.github.pnavais.machine.api.validator.TransitionValidator.Operation
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.github.pnavais.machine.exporter.DOTExporter.RankDir
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.github.pnavais.machine.exporter.YAMLExporter.MarginSize
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VoidMessage - Class in com.github.pnavais.machine.api.message
-
Represents an empty/null message