Skip navigation links
A B C E F G I J L M N O R S T 

A

addArbitrarySequence(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...) - 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...) - 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...) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Adds a new transition between two states.
all(Logic...) - Static method in interface ch.awae.utils.logic.Logic
Creates a logic instance that evaluates to true iff all base instance evaluate to true.
all() - Method in class ch.awae.utils.logic.LogicGroup
Creates a Logic instance over the group, defined by Logic.all(Logic...).
and(Logic) - Method in interface ch.awae.utils.logic.Logic
Combines this logic instance with another one in an AND operation.
and(Logic, Logic...) - Static method in interface ch.awae.utils.logic.Logic
Creates a Logic instance that combines all given logic instances with an AND operation.
any(Logic...) - Static method in interface ch.awae.utils.logic.Logic
Creates a logic instance that evaluates to true if any base instance evaluates to true.
any() - Method in class ch.awae.utils.logic.LogicGroup
Creates a Logic instance over the group, defined by Logic.any(Logic...).

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
builder() - Static method in class ch.awae.utils.sequence.Sequence
 

C

ch.awae.utils - package ch.awae.utils
 
ch.awae.utils.functional - package ch.awae.utils.functional
 
ch.awae.utils.logic - package ch.awae.utils.logic
 
ch.awae.utils.sequence - package ch.awae.utils.sequence
 
ch.awae.utils.statemachine - package ch.awae.utils.statemachine
 
cluster(Logic...) - Static method in interface ch.awae.utils.logic.Logic
prepares a function evaluating all given elements and returns a summary representing all states as a number.
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.
compile() - Method in interface ch.awae.utils.sequence.IRootSequenceBuilder
 
compileRaw() - Method in interface ch.awae.utils.sequence.IRootSequenceBuilder
 
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
count(int, Logic...) - Static method in interface ch.awae.utils.logic.Logic
Creates a logic instance that counts how many base instances evaluate to true.
count(int) - Method in class ch.awae.utils.logic.LogicGroup
Creates a Logic instance over the group, defined by Logic.count(int, Logic...).

E

edge() - Method in interface ch.awae.utils.logic.Logic
 
edge(Logic) - Static method in interface ch.awae.utils.logic.Logic
 
end() - Method in interface ch.awae.utils.sequence.ISubSequenceBuilder
 
evaluate() - Method in interface ch.awae.utils.logic.Logic
Evaluates the logic object to a boolean value.
evaluate() - Method in class ch.awae.utils.logic.LogicCluster
 
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.

F

FALSE - Static variable in interface ch.awae.utils.logic.Logic
a logic instance that always evaluates to false

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.
getLocalID() - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Provides the local id that is used to prefix local events
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.

I

InterruptableRunnable - Interface in ch.awae.utils.functional
 
IRootSequenceBuilder - Interface in ch.awae.utils.sequence
 
ISequenceBuilder<T extends ISequenceBuilder<T>> - Interface in ch.awae.utils.sequence
 
ISubSequenceBuilder<T extends ISequenceBuilder<T>> - Interface in ch.awae.utils.sequence
 

J

join() - Method in class ch.awae.utils.sequence.Sequence
 

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.
Logic - Interface in ch.awae.utils.logic
Base interface for composeable boolean logic operating on a Model.
LogicCluster - Class in ch.awae.utils.logic
 
LogicCluster(Logic...) - Constructor for class ch.awae.utils.logic.LogicCluster
 
LogicGroup - Class in ch.awae.utils.logic
Groups a list of Logic instances.
LogicGroup(Logic[]) - Constructor for class ch.awae.utils.logic.LogicGroup
Creates a new Logic group
loop() - Method in interface ch.awae.utils.sequence.IRootSequenceBuilder
 
loop(int) - Method in interface ch.awae.utils.sequence.ISequenceBuilder
 

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 with a random local id
MachineCoreBuilder(String) - Constructor for class ch.awae.utils.statemachine.MachineCoreBuilder
creates a new empty builder with the provided local id
MachineCoreBuilder(MachineCoreBuilder) - Constructor for class ch.awae.utils.statemachine.MachineCoreBuilder
copy constructor
merge(LogicGroup) - Method in class ch.awae.utils.logic.LogicGroup
Merges this LogicGroup with another one and returns a new LogicGroup containing the members from both this and the other group.

N

none(Logic...) - Static method in interface ch.awae.utils.logic.Logic
Creates a logic instance that evaluates to true iff all base instances evaluate to false.
none() - Method in class ch.awae.utils.logic.LogicGroup
Creates a Logic instance over the group, defined by Logic.none(Logic...).
not() - Method in interface ch.awae.utils.logic.Logic
Returns an instance with inverted logic.
not(Logic) - Static method in interface ch.awae.utils.logic.Logic
Creates a logic instance with inverted logic.

O

or(Logic) - Method in interface ch.awae.utils.logic.Logic
Combines this logic instance with another one in an OR operation.
or(Logic, Logic...) - Static method in interface ch.awae.utils.logic.Logic
Creates a Logic instance that combines all given logic instances with an OR operation.

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() - Method in interface ch.awae.utils.functional.InterruptableRunnable
 
run(Trampoline.Result<T>) - Static method in class ch.awae.utils.Trampoline
Starts a new trampoline with a given #Result.

S

Sequence - Class in ch.awae.utils.sequence
 
Sequence(InterruptableRunnable) - Constructor for class ch.awae.utils.sequence.Sequence
 
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.
size() - Method in class ch.awae.utils.logic.LogicGroup
 
sleep(long) - Method in interface ch.awae.utils.sequence.ISequenceBuilder
 
start() - Method in class ch.awae.utils.sequence.Sequence
 
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
step(InterruptableRunnable) - Method in interface ch.awae.utils.sequence.ISequenceBuilder
 
stop() - Method in class ch.awae.utils.sequence.Sequence
 
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.
strict(LogicGroup) - Method in class ch.awae.utils.logic.LogicGroup
 

T

toArray() - Method in class ch.awae.utils.logic.LogicGroup
Provides an array containing all group members
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.
TRUE - Static variable in interface ch.awae.utils.logic.Logic
a logic instance that always evaluates to true
A B C E F G I J L M N O R S T 
Skip navigation links

Copyright © 2018. All Rights Reserved.