Skip navigation links
A B C D E F G H I J L M N O P Q R S T U V W X _ 

A

AccessFlag - Class in ch.awae.utils
Access Flags encapsulate the access flag pattern where a flag is used to enable or disable access to certain functions.
AccessFlag() - Constructor for class ch.awae.utils.AccessFlag
 
AccessFlag(String) - Constructor for class ch.awae.utils.AccessFlag
 
AccessFlag(boolean) - Constructor for class ch.awae.utils.AccessFlag
 
AccessFlag(String, boolean) - Constructor for class ch.awae.utils.AccessFlag
 
AccessFlag(boolean, Supplier<RuntimeException>) - Constructor for class ch.awae.utils.AccessFlag
 
add(E) - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
add(E) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
add(E, double) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
Adds a new element with a defined priority
add(Runnable) - Method in class ch.awae.utils.Shutdown
adds a Runnable with default priority (0) to the shutdown system.
add(Runnable, double) - Method in class ch.awae.utils.Shutdown
 
addAll(Collection<? extends E>) - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
addAll(Collection<? extends E>) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
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.
addNode(String) - Method in interface ch.awae.utils.xml.XPath
Adds a node with the given name into each of the current nodes and returns an XPath containing all created nodes
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(C) - Method in class ch.awae.utils.functional.T2
 
and(D) - Method in class ch.awae.utils.functional.T3
 
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.
andThen(FailableFunction1<T, S>) - Method in interface ch.awae.utils.functional.FailableFunction0
 
andThen(FailableFunction1<? super T, ? extends S>) - Method in interface ch.awae.utils.functional.FailableFunction1
 
andThen(Function<? super T, ? extends S>) - Method in interface ch.awae.utils.functional.Function0
 
andThen(Function<? super T, ? extends V>) - Method in interface ch.awae.utils.functional.Function1
 
andThen(Function<? super T, ? extends V>) - Method in interface ch.awae.utils.functional.Function2
 
andThen(Function<? super T, ? extends S>) - Method in interface ch.awae.utils.functional.Function3
 
andThen(Function<? super T, ? extends S>) - Method in interface ch.awae.utils.functional.Function4
 
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...).
any() - Method in interface ch.awae.utils.xml.XPath
Recursively returns an XPath containing all current nodes and all their children
apply() - Method in interface ch.awae.utils.functional.FailableFunction0
 
apply(A) - Method in interface ch.awae.utils.functional.FailableFunction1
 
apply() - Method in interface ch.awae.utils.functional.Function0
 
apply(A, B, C) - Method in interface ch.awae.utils.functional.Function3
 
apply(A, B, C, D) - Method in interface ch.awae.utils.functional.Function4
 
AStarPathfinder<V> - Class in ch.awae.utils.pathfinding
Path Finder based on the A-Star algorithm.
AStarPathfinder(GraphDataProvider<V>) - Constructor for class ch.awae.utils.pathfinding.AStarPathfinder
 
attribute(String) - Method in interface ch.awae.utils.xml.XPath
Returns a stream containing the attribute value for a given attribute name for each element
attributes() - Method in interface ch.awae.utils.xml.XPath
Returns a stream containing a list of attribute tuples for each elements

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
Creates a new sequence builder

C

call() - Method in interface ch.awae.utils.functional.FailableFunction0
 
ch.awae.utils - package ch.awae.utils
awaeUtils contains a collection of utility classes and types.
ch.awae.utils.collection.immutable - package ch.awae.utils.collection.immutable
A collection of immutable collection classes.
ch.awae.utils.collection.mutable - package ch.awae.utils.collection.mutable
A collection of mutable collection classes.
ch.awae.utils.concurrent - package ch.awae.utils.concurrent
 
ch.awae.utils.functional - package ch.awae.utils.functional
A set of functional types and interfaces.
ch.awae.utils.logic - package ch.awae.utils.logic
The Logic system provides an intuitive extension to the BooleanSupplier that supports boolean operators for more expressive solutions.
ch.awae.utils.pathfinding - package ch.awae.utils.pathfinding
General Path-Finding library.
ch.awae.utils.sequence - package ch.awae.utils.sequence
 
ch.awae.utils.serial - package ch.awae.utils.serial
A set of interfaces containing the correct method signatures for serialization.
ch.awae.utils.source - package ch.awae.utils.source
 
ch.awae.utils.statemachine - package ch.awae.utils.statemachine
 
ch.awae.utils.xml - package ch.awae.utils.xml
 
children() - Method in interface ch.awae.utils.xml.XPath
Returns an XPath containing all children of all current nodes
clear() - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
clear() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
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
compile the constructed sequence into a full Sequence instance
compileRaw() - Method in interface ch.awae.utils.sequence.IRootSequenceBuilder
compile the sequence into a raw interruptible runnable
compose(FailableFunction1<? super V, ? extends A>) - Method in interface ch.awae.utils.functional.FailableFunction1
 
compose(FailableFunction0<? extends A>) - Method in interface ch.awae.utils.functional.FailableFunction1
 
compose(Function<? super V, ? extends A>) - Method in interface ch.awae.utils.functional.Function1
 
compose(Supplier<? extends A>) - Method in interface ch.awae.utils.functional.Function1
 
compose(BiFunction<? super V, ? super W, ? extends A>) - Method in interface ch.awae.utils.functional.Function1
 
compose(Function3<? super V, ? super W, ? super X, ? extends A>) - Method in interface ch.awae.utils.functional.Function1
 
compose(Function4<? super V, ? super W, ? super X, ? super Z, ? extends A>) - Method in interface ch.awae.utils.functional.Function1
 
contains(Object) - Method in class ch.awae.utils.collection.immutable.List
Checks if this list contains a given element
contains(Object) - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
contains(Object) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
containsAll(Collection<?>) - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
containsAll(Collection<?>) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
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...).
create(GraphDataProvider<T>) - Static method in class ch.awae.utils.pathfinding.AStarPathfinder
 
create(GraphDataProvider<T>) - Static method in class ch.awae.utils.pathfinding.DijkstraPathfinder
 
curry() - Method in interface ch.awae.utils.functional.Function2
 
curry() - Method in interface ch.awae.utils.functional.Function3
 
curry() - Method in interface ch.awae.utils.functional.Function4
 
curry() - Method in class ch.awae.utils.functional.T3
 
curry() - Method in class ch.awae.utils.functional.T4
 
CustomDeserialization - Interface in ch.awae.utils.serial
Marks a class as serializable with custom deserialization.
CustomSerialization - Interface in ch.awae.utils.serial
Marks a class as serializable with custom serialization and deserialization.

D

DEFAULT - Static variable in class ch.awae.utils.Shutdown
The default priority.
DijkstraPathfinder<V> - Class in ch.awae.utils.pathfinding
Pathfinder based on the Dijkstra algorithm.
DijkstraPathfinder(GraphDataProvider<V>) - Constructor for class ch.awae.utils.pathfinding.DijkstraPathfinder
 
doThrow(Throwable) - Static method in class ch.awae.utils.SneakyThrow
 
dropNode() - Method in interface ch.awae.utils.xml.XPath
Removes all current elements from the XML

E

EARLIER - Static variable in class ch.awae.utils.Shutdown
The default priority for operations that should be performed very early in the sequence.
EARLY - Static variable in class ch.awae.utils.Shutdown
The default priority for operations that should be performed rather early in the sequence.
edge() - Method in interface ch.awae.utils.logic.Logic
Creates an edge-triggering Logic instance.
edge(Logic) - Static method in interface ch.awae.utils.logic.Logic
Creates an edge triggered logic instance.
element() - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
element() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
empty() - Static method in class ch.awae.utils.collection.immutable.List
Provides the empty list for any type argument
empty() - Static method in class ch.awae.utils.functional.Result
Returns an empty result
EMPTY_SPATIAL_ARRAY - Static variable in interface ch.awae.utils.pathfinding.Vertex
An empty double array used as the default 0-dimensional spatial coordinates for any vertex.
end() - Method in interface ch.awae.utils.sequence.ISubSequenceBuilder
end the loop represented by this sub-sequence
equals(Object) - Method in class ch.awae.utils.collection.immutable.List
 
equals(Object) - Method in class ch.awae.utils.functional.T2
 
equals(Object) - Method in class ch.awae.utils.Lazy
 
eval(FailableFunction0<T>) - Static method in class ch.awae.utils.functional.Result
Evaluates a given expression and returns a result according to the expression result.
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
Evaluates the cluster.
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.
exception() - Method in class ch.awae.utils.functional.Result
Returns the exception contained in the result
execute(V, V) - Method in class ch.awae.utils.pathfinding.AStarPathfinder
 
execute(V, V) - Method in class ch.awae.utils.pathfinding.DijkstraPathfinder
 
execute(V, V) - Method in interface ch.awae.utils.pathfinding.Pathfinder
 
execute(T, T) - Method in class ch.awae.utils.pathfinding.VertexPathfinder
 
extractDiagram() - Method in interface ch.awae.utils.statemachine.StateMachine
Creates a graphviz (dot) compatible graph from the state machine.

F

FailableFunction0<T> - Interface in ch.awae.utils.functional
Similar to Supplier but able to throw any arbitrary exception.
FailableFunction1<A,T> - Interface in ch.awae.utils.functional
Similar to Function but able to throw any arbitrary exception.
failure(Throwable) - Static method in interface ch.awae.utils.functional.Try
 
failure(long, long) - Static method in class ch.awae.utils.pathfinding.PathfindingResult
 
FALSE - Static variable in interface ch.awae.utils.logic.Logic
a logic instance that always evaluates to false
filterAttribute(String) - Method in interface ch.awae.utils.xml.XPath
Returns an XPath containing all current elements that contain an argument with the given name
filterAttribute(String, String) - Method in interface ch.awae.utils.xml.XPath
Returns an XPath containing all current elements that have a given attribute with a given value
filterAttribute(String, Predicate<String>) - Method in interface ch.awae.utils.xml.XPath
Returns an XPath containing all current elements that have a given attribute validated by a given predicate
filterName(Predicate<String>) - Method in interface ch.awae.utils.xml.XPath
Returns an XPath containing all current elements that have a name validated by a given predicate
findPath(V, V) - Method in interface ch.awae.utils.pathfinding.Pathfinder
Finds a path for the given starting point and the given destination
FIRST - Static variable in class ch.awae.utils.Shutdown
The highest possible priority.
flatMap(FailableFunction1<T, Result<E>>) - Method in class ch.awae.utils.functional.Result
Applies the mapping function to the value of the result and returns the result returned by the mapping function.
flatMap(Function<T, Try<S>>) - Method in interface ch.awae.utils.functional.Try
 
flatMapException(FailableFunction1<Throwable, Result<T>>) - Method in class ch.awae.utils.functional.Result
Applies the mapping function to the exception and returns the result returned by it.
flip() - Method in class ch.awae.utils.functional.T2
Returns a tuple with the same elements as this one, but in the reverse order
from(Collection<T>) - Static method in class ch.awae.utils.collection.immutable.List
Creates a new list from a given collection
from(BooleanSupplier) - Static method in interface ch.awae.utils.logic.Logic
Creates a new Logic instance from a BooleanSupplier
fromFile(String) - Static method in class ch.awae.utils.source.Source
Returns a Source based of the given file name.
fromStream(InputStream) - Static method in class ch.awae.utils.source.Source
Returns a Source based of the given input stream
This method does not validate the given stream.
fromURL(String) - Static method in class ch.awae.utils.source.Source
Returns a Source based of the given URL.
Function0<T> - Interface in ch.awae.utils.functional
 
Function1<A,T> - Interface in ch.awae.utils.functional
 
Function2<A,B,T> - Interface in ch.awae.utils.functional
 
Function3<A,B,C,T> - Interface in ch.awae.utils.functional
 
Function4<A,B,C,D,T> - Interface in ch.awae.utils.functional
 

G

get(int) - Method in class ch.awae.utils.collection.immutable.List
Retrieves the element at a given index
get() - Method in interface ch.awae.utils.functional.Function0
 
get() - Method in class ch.awae.utils.functional.Result
Returns the value contained in the result
get() - Method in interface ch.awae.utils.functional.Try
 
get() - Method in class ch.awae.utils.Lazy
Retrieves the value and calculates it when required
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.
getDefaultShutdown() - Static method in class ch.awae.utils.Shutdown
Provides a global Shutdown handler.
getDistance(T, T) - Method in interface ch.awae.utils.pathfinding.GraphDataProvider
Provides the distance between two vertices.
getDistance(T) - Method in interface ch.awae.utils.pathfinding.Vertex
returns the distance to the given neighbour
getDocument() - Method in class ch.awae.utils.xml.XML
Gets the backing DOM Document
getFailure() - Method in interface ch.awae.utils.functional.Try
 
getHeuristicDistance(T, T) - Method in interface ch.awae.utils.pathfinding.GraphDataProvider
Provides a heuristic distance between two vertices.
getLocalID() - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Provides the local id that is used to prefix local events
getNeighbours(T) - Method in interface ch.awae.utils.pathfinding.GraphDataProvider
Looks up and provides the vertices directly reachable from the given vertex.
getNeighbours() - Method in interface ch.awae.utils.pathfinding.Vertex
returns a list of all neighbours of the vertex
getSpatialPosition() - Method in interface ch.awae.utils.pathfinding.Vertex
provides spatial information about a vertex if applicable.
getTarget(String, String) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
Searches the target state for a given transition originating at a given node
getTimeout() - Method in class ch.awae.utils.pathfinding.AStarPathfinder
 
getTimeout() - Method in class ch.awae.utils.pathfinding.DijkstraPathfinder
 
getTimeout() - Method in interface ch.awae.utils.pathfinding.Pathfinder
gets the currently set timeout value or 0 if timeouts are disabled.
getTimeout() - Method in class ch.awae.utils.pathfinding.VertexPathfinder
 
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.
GraphDataProvider<T> - Interface in ch.awae.utils.pathfinding
 

H

hashCode() - Method in class ch.awae.utils.collection.immutable.List
 
hashCode() - Method in class ch.awae.utils.functional.T2
 
hashCode() - Method in class ch.awae.utils.Lazy
 
head() - Method in class ch.awae.utils.collection.immutable.List
Returns the head of the list

I

ifEmpty(Runnable) - Method in class ch.awae.utils.functional.Result
Invokes the runnable if the result is empty
ifErroneous(Consumer<Throwable>) - Method in class ch.awae.utils.functional.Result
Evaluates the consumer with the exception if it exists
ifPresent(Consumer<T>) - Method in class ch.awae.utils.functional.Result
Evaluates the consumer with the value if it exists
index(int) - Method in interface ch.awae.utils.xml.XPath
Returns an XPath containing the node with a given index
indexRange(int, int) - Method in interface ch.awae.utils.xml.XPath
Returns an XPath containing a given number of nodes starting at a given index
InterruptibleRunnable - Interface in ch.awae.utils.functional
Similar to Runnable but with the ability to be interrupted.
IRootSequenceBuilder - Interface in ch.awae.utils.sequence
Sequence Builder for the root sequence.
isEmpty() - Method in class ch.awae.utils.collection.immutable.List
Indicates if this is the empty list
isEmpty() - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
isEmpty() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
isEmpty() - Method in class ch.awae.utils.functional.Result
Indicates if the result is an empty result.
ISequenceBuilder<T extends ISequenceBuilder<T>> - Interface in ch.awae.utils.sequence
Base interface for all sequence builders
isErroneous() - Method in class ch.awae.utils.functional.Result
Indicates if the result is an error result.
isFailure() - Method in interface ch.awae.utils.functional.Try
 
isFailure() - Method in class ch.awae.utils.pathfinding.PathfindingResult
 
isInitialised() - Method in class ch.awae.utils.Lazy
Indicates whether or not the value has already been initialised.
isLocked() - Method in class ch.awae.utils.AccessFlag
 
isMaxQueue() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
indicates if the queue has a max-queue configuration
isMinQueue() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
indicates if the queue has a min-queue configuration
isPresent() - Method in class ch.awae.utils.functional.Result
Indicates if a value is present.
isSuccess() - Method in interface ch.awae.utils.functional.Try
 
isSuccess() - Method in class ch.awae.utils.pathfinding.PathfindingResult
 
isTimeout() - Method in class ch.awae.utils.pathfinding.PathfindingResult
 
ISubSequenceBuilder<T extends ISequenceBuilder<T>> - Interface in ch.awae.utils.sequence
sequence builder for sub-sequences.
IterativeRunner - Class in ch.awae.utils.concurrent
This prebuilt Runnable implementation allows for a very simple implementation.
IterativeRunner() - Constructor for class ch.awae.utils.concurrent.IterativeRunner
 
iterator() - Method in class ch.awae.utils.collection.immutable.List
 
iterator() - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
iterator() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 

J

join() - Method in class ch.awae.utils.sequence.Sequence
Waits for the currently running instance of this sequence to terminate.

L

LAST - Static variable in class ch.awae.utils.Shutdown
The lowest possible priority.
LATE - Static variable in class ch.awae.utils.Shutdown
The default priority for operations that should be performed rather late in the sequence.
LATER - Static variable in class ch.awae.utils.Shutdown
The default priority for operations that should be performed very late in the sequence.
Lazy<T> - Class in ch.awae.utils
Wrapper Object for lazy initialisation.
Lazy(Supplier<? extends T>) - Constructor for class ch.awae.utils.Lazy
Creates a new lazy instance based on the provided supplier method
LinkedQueue<E> - Class in ch.awae.utils.collection.mutable
This is a very basic linked queue implementation without any real synchronisation.
LinkedQueue() - Constructor for class ch.awae.utils.collection.mutable.LinkedQueue
 
List<T> - Class in ch.awae.utils.collection.immutable
Immutable Single-Linked List.
List(T, List<? extends T>) - Constructor for class ch.awae.utils.collection.immutable.List
Creates a new list from a head and a tail.
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.
lock() - Method in class ch.awae.utils.AccessFlag
 
lockWhile(Runnable) - Method in class ch.awae.utils.AccessFlag
Tests if the access is locked.
Logic - Interface in ch.awae.utils.logic
Base interface for composeable boolean logic operating on a Model.
LogicCluster - Class in ch.awae.utils.logic
A LogicCluster allows the simultaneous evaluation and handling of up to 32 Logic instances.
LogicCluster(Logic...) - Constructor for class ch.awae.utils.logic.LogicCluster
Creates a new cluster instance from a list of Logic elements.
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
Start an infinite loop
loop(int) - Method in interface ch.awae.utils.sequence.ISequenceBuilder
start a finite loop with a given number of iterations

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
map(FailableFunction1<T, E>) - Method in class ch.awae.utils.functional.Result
Applies the mapping function to the value of the result (if it exists).
map(FailableFunction1<T, S>) - Method in interface ch.awae.utils.functional.Try
 
mapException(FailableFunction1<Throwable, T>) - Method in class ch.awae.utils.functional.Result
Applies the mapping function to the exception.
maxQueue() - Static method in class ch.awae.utils.collection.mutable.PriorityQueue
creates a new max-priority-queue
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.
minQueue() - Static method in class ch.awae.utils.collection.mutable.PriorityQueue
creates a new min-priority-queue
mkStream() - Method in class ch.awae.utils.source.Source
Returns the Source as an input stream
mkString() - Method in class ch.awae.utils.source.Source
reads the source into a string
mkXML() - Method in class ch.awae.utils.source.Source
reads the source into an XML document

N

node(String) - Method in interface ch.awae.utils.xml.XPath
Returns an XPath containing all children of all current nodes that match the given name
node() - Method in interface ch.awae.utils.xml.XPath
Returns a stream containing all DOM nodes of all current elements
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

of(T...) - Static method in class ch.awae.utils.collection.immutable.List
Creates a new list from an array of elements
of(T) - Static method in class ch.awae.utils.functional.Result
Wraps a non-null value into a value result.
of(A, B) - Static method in class ch.awae.utils.functional.T2
 
of(A, B, C) - Static method in class ch.awae.utils.functional.T3
 
of(A, B, C, D) - Static method in class ch.awae.utils.functional.T4
 
of(FailableFunction0<T>) - Static method in interface ch.awae.utils.functional.Try
 
ofException(Throwable) - Static method in class ch.awae.utils.functional.Result
Wraps an exception into an error result.
offer(E) - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
offer(E) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
ofNullable(T) - Static method in class ch.awae.utils.functional.Result
Wraps a value into a value result.
onInterrupt() - Method in class ch.awae.utils.concurrent.IterativeRunner
This method is invoked if an interrupt is detected.
onStart() - Method in class ch.awae.utils.concurrent.IterativeRunner
This method is invoked before the first iteration step.
onTerminate() - Method in class ch.awae.utils.concurrent.IterativeRunner
This method is invoked whenever the iteration is terminated.
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.
orNull() - Method in class ch.awae.utils.functional.Result
Returns the value if it exists or null otherwise

P

partial(A) - Method in interface ch.awae.utils.functional.FailableFunction1
 
partial(A) - Method in interface ch.awae.utils.functional.Function1
 
partial(A) - Method in interface ch.awae.utils.functional.Function2
 
partial(A) - Method in interface ch.awae.utils.functional.Function3
 
partial(A) - Method in interface ch.awae.utils.functional.Function4
 
partialCurry() - Method in interface ch.awae.utils.functional.Function3
 
partialCurry() - Method in interface ch.awae.utils.functional.Function4
 
partialCurry() - Method in class ch.awae.utils.functional.T4
 
Pathfinder<V> - Interface in ch.awae.utils.pathfinding
Base Interface for pathfinding algorithm implementations
PathfindingResult<T> - Class in ch.awae.utils.pathfinding
 
PathfindingResult() - Constructor for class ch.awae.utils.pathfinding.PathfindingResult
 
PathfindingResult.TYPE - Enum in ch.awae.utils.pathfinding
 
pattern(int) - Method in class ch.awae.utils.logic.LogicCluster
provides a Logic instance testing for a specific evaluation pattern.
peek() - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
peek() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
poll() - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
poll() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
prepend(T) - Method in class ch.awae.utils.collection.immutable.List
Creates a new List with the provided element as the head and this list as the tail
PriorityQueue<E> - Class in ch.awae.utils.collection.mutable
a priority queue implementation where each element has a defined priority.
PriorityQueue(boolean) - Constructor for class ch.awae.utils.collection.mutable.PriorityQueue
instantiates a new priority queue

Q

query() - Method in class ch.awae.utils.xml.XML
Provides an XPath with the document root element

R

readObject(ObjectInputStream) - Method in interface ch.awae.utils.serial.CustomDeserialization
 
readResolve() - Method in interface ch.awae.utils.serial.SerializationProxy
 
recover(FailableFunction1<Throwable, Try<T>>) - Method in interface ch.awae.utils.functional.Try
 
remove(Object) - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
remove() - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
remove() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
remove(Object) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
removeAll(Collection<?>) - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
removeAll(Collection<?>) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
reset() - Method in interface ch.awae.utils.statemachine.StateMachine
Resets the state machine to its initial state and clears the event queue.
Result<T> - Class in ch.awae.utils.functional
Result is designed for thorough result handling.
result(T) - Static method in class ch.awae.utils.Trampoline
Wraps a value into a Result instance representing that value
retainAll(Collection<?>) - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
retainAll(Collection<?>) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
run() - Method in class ch.awae.utils.concurrent.IterativeRunner
 
run() - Method in interface ch.awae.utils.functional.InterruptibleRunnable
 
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 allows for sequential construction of a sequence of code blocks.
Sequence(InterruptibleRunnable) - Constructor for class ch.awae.utils.sequence.Sequence
Wrap an InterruptibleRunnable into a sequence instance
SerializationProxy - Interface in ch.awae.utils.serial
Marks a class as being a serialization proxy.
SerializedThroughProxy - Interface in ch.awae.utils.serial
Marks a class as serializable through the use of a proxy object.
setAllowTerminalStates(boolean) - Method in class ch.awae.utils.statemachine.MachineCoreBuilder
define if terminal states are allowed.
setAttribute(String, String) - Method in interface ch.awae.utils.xml.XPath
Inserts the given attribute into all current elements.
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.
setPriority(E, double) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
Sets the priority of an element in the queue
setText(String) - Method in interface ch.awae.utils.xml.XPath
Replaces the text content of all current elements by a given String
setTimeout(long) - Method in class ch.awae.utils.pathfinding.AStarPathfinder
 
setTimeout(long) - Method in class ch.awae.utils.pathfinding.DijkstraPathfinder
 
setTimeout(long) - Method in interface ch.awae.utils.pathfinding.Pathfinder
set a timeout for the pathfinding.
setTimeout(long) - Method in class ch.awae.utils.pathfinding.VertexPathfinder
 
Shutdown - Class in ch.awae.utils
This class serves as a wrapper for the Java-side Shutdown handlers with the added option to define the shutdown order.
Shutdown() - Constructor for class ch.awae.utils.Shutdown
Creates a new Shutdown instance.
size() - Method in class ch.awae.utils.collection.immutable.List
the size of the list
size() - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
size() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
size() - Method in class ch.awae.utils.logic.LogicGroup
 
sleep(long) - Method in interface ch.awae.utils.sequence.ISequenceBuilder
adds a step that sleeps for a given number of milliseconds.
SneakyThrow - Class in ch.awae.utils
 
SneakyThrow() - Constructor for class ch.awae.utils.SneakyThrow
 
Source - Class in ch.awae.utils.source
Source Data interaction Helper Designed to enable interaction with different data sources as simple one-liners
Source() - Constructor for class ch.awae.utils.source.Source
 
start() - Method in class ch.awae.utils.sequence.Sequence
Starts the 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() - Method in class ch.awae.utils.concurrent.IterativeRunner
This method is invoked once each iteration step.
step(InterruptibleRunnable) - Method in interface ch.awae.utils.sequence.ISequenceBuilder
adds a step to the sequence
stop() - Method in class ch.awae.utils.sequence.Sequence
Stops the 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
Strict group evaluation on a restricted domain.
success(T) - Static method in interface ch.awae.utils.functional.Try
 
success(long, long, List<V>) - Static method in class ch.awae.utils.pathfinding.PathfindingResult
 

T

T2<A,B> - Class in ch.awae.utils.functional
Immutable generic 2-Tuple
T2(A, B) - Constructor for class ch.awae.utils.functional.T2
Creates a new tuple instance
T3<A,B,C> - Class in ch.awae.utils.functional
 
T3() - Constructor for class ch.awae.utils.functional.T3
 
T4<A,B,C,D> - Class in ch.awae.utils.functional
 
T4() - Constructor for class ch.awae.utils.functional.T4
 
tail() - Method in class ch.awae.utils.collection.immutable.List
Returns the tail of the list
test() - Method in class ch.awae.utils.AccessFlag
Tests if the access is locked.
test(Runnable) - Method in interface ch.awae.utils.logic.Logic
calls the handler if this instance evaluates to true.
testAndLock() - Method in class ch.awae.utils.AccessFlag
Tests if the access is locked.
text() - Method in interface ch.awae.utils.xml.XPath
Returns a stream containing the text of all current elements
timeout(long, long) - Static method in class ch.awae.utils.pathfinding.PathfindingResult
 
toArray() - Method in class ch.awae.utils.collection.immutable.List
 
toArray(Type[]) - Method in class ch.awae.utils.collection.immutable.List
 
toArray() - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
toArray(T[]) - Method in class ch.awae.utils.collection.mutable.LinkedQueue
 
toArray() - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
toArray(T[]) - Method in class ch.awae.utils.collection.mutable.PriorityQueue
 
toArray() - Method in class ch.awae.utils.logic.LogicGroup
Provides an array containing all group members
toggleLock() - Method in class ch.awae.utils.AccessFlag
 
toString() - Method in class ch.awae.utils.collection.immutable.List
 
toString() - Method in class ch.awae.utils.functional.T2
 
toString() - Method in class ch.awae.utils.functional.T3
 
toString() - Method in class ch.awae.utils.functional.T4
 
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
Try<T> - Interface in ch.awae.utils.functional
Implementation of a Try monad.
tupled() - Method in interface ch.awae.utils.functional.Function2
 
tupled() - Method in interface ch.awae.utils.functional.Function3
 
tupled() - Method in interface ch.awae.utils.functional.Function4
 

U

unlock() - Method in class ch.awae.utils.AccessFlag
 
updateText(UnaryOperator<String>) - Method in interface ch.awae.utils.xml.XPath
Replaces the text of each element by the value returned by the updater method.

V

valueOf(String) - Static method in enum ch.awae.utils.pathfinding.PathfindingResult.TYPE
Returns the enum constant of this type with the specified name.
values() - Static method in enum ch.awae.utils.pathfinding.PathfindingResult.TYPE
Returns an array containing the constants of this enum type, in the order they are declared.
Vertex<T extends Vertex<T>> - Interface in ch.awae.utils.pathfinding
Base interface for pathfinding graph vertices
VertexPathfinder<T extends Vertex<T>> - Class in ch.awae.utils.pathfinding
 
VertexPathfinder(Function1<GraphDataProvider<T>, Pathfinder<T>>) - Constructor for class ch.awae.utils.pathfinding.VertexPathfinder
 

W

withDistance(Function2<T, T, Double>) - Method in interface ch.awae.utils.pathfinding.GraphDataProvider
Replaces the distance function with a custom function.
withHeuristic(Function2<T, T, Double>) - Method in interface ch.awae.utils.pathfinding.GraphDataProvider
Replaces the distance heuristic with a custom function.
writeObject(ObjectOutputStream) - Method in interface ch.awae.utils.serial.CustomSerialization
 
writeReplace() - Method in interface ch.awae.utils.serial.SerializedThroughProxy
 

X

XML - Class in ch.awae.utils.xml
XML Data Wrapper This class wraps a DOM Document for nice interaction with other components.
XML(Document) - Constructor for class ch.awae.utils.xml.XML
Creates a new XML instance based off a given DOM Document
XPath - Interface in ch.awae.utils.xml
Pipeline-Style XML processing utility.

_

_1 - Variable in class ch.awae.utils.functional.T2
The first element
_1 - Variable in class ch.awae.utils.functional.T3
 
_1 - Variable in class ch.awae.utils.functional.T4
 
_2 - Variable in class ch.awae.utils.functional.T2
The second element
_2 - Variable in class ch.awae.utils.functional.T3
 
_2 - Variable in class ch.awae.utils.functional.T4
 
_3 - Variable in class ch.awae.utils.functional.T3
 
_3 - Variable in class ch.awae.utils.functional.T4
 
_4 - Variable in class ch.awae.utils.functional.T4
 
A B C D E F G H I J L M N O P Q R S T U V W X _ 
Skip navigation links

Copyright © 2018. All Rights Reserved.