Skip navigation links
A B C E G L M R S T 

A

addArbitrarySequence(String, String[], String, String[], String[]) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Creates a network of states and transitions covering all possible permutations of a given list of events.
addFunnel(String[], String, String, String[], String[]) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Adds a new transition from all the origin states to a single target state essentially funnelling the state flow.
addMachineCore(MachineCoreBuilder) - Method in class ch.awae.utils.statemachine.StateMachineBuilder
Adds a MachineCoreBuilder to this builder.
addSequence(String, String[], String, String[], String[]) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Adds a sequence of state transitions with anonymous states for the intermediate steps.
addTransition(String, String, String, String[], String[]) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Adds a new transition between two states.

B

bounce(Supplier<Trampoline.Result<T>>) - Static method in class ch.awae.utils.Trampoline
Bounce to a Supplier for the next step.
bounce(Function<A, Trampoline.Result<T>>, A) - Static method in class ch.awae.utils.Trampoline
Bounce to a Function for the next step.
bounce(BiFunction<A, B, Trampoline.Result<T>>, A, B) - Static method in class ch.awae.utils.Trampoline
Bounce to a BiFunction for the next step.
bounceWrapped(Supplier<T>) - Static method in class ch.awae.utils.Trampoline
Bounces to a generic Supplier.
bounceWrapped(Function<A, T>, A) - Static method in class ch.awae.utils.Trampoline
Bounces to a generic Function.
bounceWrapped(BiFunction<A, B, T>, A, B) - Static method in class ch.awae.utils.Trampoline
Bounces to a generic BiFunction.
build() - Method in class ch.awae.utils.statemachine.StateMachineBuilder
Constructs a StateMachine represented by this builder and all its MachineCoreBuilders

C

ch.awae.utils - package ch.awae.utils
 
ch.awae.utils.statemachine - package ch.awae.utils.statemachine
 
CommandProcessor - Class in ch.awae.utils.statemachine
A command processor that handles commands asynchronously directly from the command queue of a StateMachine.
CommandProcessor(StateMachine, Consumer<String>) - Constructor for class ch.awae.utils.statemachine.CommandProcessor
creates a new command processor from a StateMachine.
copy() - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
creates a copy of this builder instance.
copy() - Method in class ch.awae.utils.statemachine.StateMachineBuilder
creates a copy of this builder

E

event(String) - Method in interface ch.awae.utils.statemachine.StateMachine
Adds a new event to the internal event queue
EventGenerator - Class in ch.awae.utils.statemachine
Asynchronous event generation.
EventGenerator(StateMachine, String, long) - Constructor for class ch.awae.utils.statemachine.EventGenerator
creates a new event generator for a given event
EventGenerator(StateMachine, Supplier<String>, long) - Constructor for class ch.awae.utils.statemachine.EventGenerator
creates a new event generator based off a Supplier function.
extractDiagram() - Method in interface ch.awae.utils.statemachine.StateMachine
Creates a graphviz (dot) compatible graph from the state machine.

G

getCommandQueue() - Method in interface ch.awae.utils.statemachine.StateMachine
Provides the command queue associated with the state machine.
getCurrentState() - Method in interface ch.awae.utils.statemachine.StateMachine
Creates a SavedState instance representing the current state of the state machine.
getTarget(String, String) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Searches the target state for a given transition originating at a given node
getUUID() - Method in interface ch.awae.utils.statemachine.StateMachine
provides the UUID of the state machine
getUUID() - Method in interface ch.awae.utils.statemachine.StateMachine.SavedState
provides the UUID associated with the StateMachine that created this instance.

L

loadState(StateMachine.SavedState, boolean) - Method in interface ch.awae.utils.statemachine.StateMachine
Loads the state represented by a given SavedState instance and sets the state machine to that state.

M

MachineCoreBuilder - Class in ch.awae.utils.statemachine
Builder for constructing state machine cores.
MachineCoreBuilder() - Constructor for class ch.awae.utils.statemachine.MachineCoreBuilder
creates a new empty builder
MachineCoreBuilder(MachineCoreBuilder) - Constructor for class ch.awae.utils.statemachine.MachineCoreBuilder
copy constructor

R

reset() - Method in interface ch.awae.utils.statemachine.StateMachine
Resets the state machine to its initial state and clears the event queue.
result(T) - Static method in class ch.awae.utils.Trampoline
Wraps a value into a Result instance representing that value
run(Trampoline.Result<T>) - Static method in class ch.awae.utils.Trampoline
Starts a new trampoline with a given #Result.

S

setAllowTerminalStates(boolean) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
define if terminal states are allowed.
setCheckForTerminalStates(boolean) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Defines if the core should be checked for terminal states during creation.
setInitialState(String) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Sets the initial state of the state machine core.
setPrioritiseInternalEvents(boolean) - Method in class ch.awae.utils.statemachine.StateMachineBuilder
Set if internal events should get priority over all other events.
start() - Method in class ch.awae.utils.statemachine.CommandProcessor
starts the processor
start() - Method in class ch.awae.utils.statemachine.EventGenerator
starts the event generator
start() - Method in interface ch.awae.utils.statemachine.StateMachine
Starts processing of the state machine event queue.
StateMachine - Interface in ch.awae.utils.statemachine
Base representation of a state machine or a cluster of state machines.
StateMachine.SavedState - Interface in ch.awae.utils.statemachine
root interface for saved state of state machines.
StateMachineBuilder - Class in ch.awae.utils.statemachine
Builder for constructing state machines.
StateMachineBuilder() - Constructor for class ch.awae.utils.statemachine.StateMachineBuilder
creates a new empty builder
StateMachineBuilder(StateMachineBuilder) - Constructor for class ch.awae.utils.statemachine.StateMachineBuilder
copy constructor
stop() - Method in class ch.awae.utils.statemachine.CommandProcessor
stops the processor.
stop() - Method in class ch.awae.utils.statemachine.EventGenerator
stops the event generator.
stop() - Method in interface ch.awae.utils.statemachine.StateMachine
Stops processing of the state machine event queue.

T

Trampoline - Class in ch.awae.utils
Utility class for implementing trampoline based primitive recursion.
Trampoline() - Constructor for class ch.awae.utils.Trampoline
 
Trampoline.Result<T> - Class in ch.awae.utils
Helper class representing the result of a single trampoline step.
A B C E G L M R S T 
Skip navigation links

Copyright © 2017. All Rights Reserved.