| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableNamedType<T>
Immutable implementation of
NamedType. |
| Modifier and Type | Method and Description |
|---|---|
static <T> NamedType<T> |
NamedType.typeOf(Class<T> type) |
static <T> NamedType<T> |
NamedType.typeOf(String name,
Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
static Set<NamedType<?>> |
NamedType.setOf(NamedType<?>... namedTypes) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableNamedType<T> |
ImmutableNamedType.copyOf(NamedType<T> instance)
Creates an immutable copy of a
NamedType value. |
ImmutableNamedType.Builder<T> |
ImmutableNamedType.Builder.from(NamedType<T> instance)
Fill a builder with attribute values from the provided
NamedType instance. |
static Set<NamedType<?>> |
NamedType.setOf(NamedType<?>... namedTypes) |
| Modifier and Type | Method and Description |
|---|---|
NamedType<T> |
ImmutableStateListener.type() |
NamedType<T> |
ImmutableNamedTypeAndValue.type() |
NamedType<T> |
ImmutableNamedTypeAndState.type() |
NamedType<T> |
NamedTypeAndValue.type() |
NamedType<T> |
NamedTypeAndState.type() |
NamedType<T> |
InitListener.StateListener.type() |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<BiConsumer<NamedType<?>,Object>> |
ImmutableSimple.onStateReached() |
protected abstract Optional<BiConsumer<NamedType<?>,Object>> |
InitListener.Simple.onStateReached() |
protected Optional<BiConsumer<NamedType<?>,Object>> |
ImmutableSimple.onTearDown() |
protected abstract Optional<BiConsumer<NamedType<?>,Object>> |
InitListener.Simple.onTearDown() |
Map<NamedType<?>,Consumer<?>> |
ImmutableTypedListener.stateReachedListenerAsMap()
Returns a lazily initialized value of the
stateReachedListenerAsMap attribute. |
protected Map<NamedType<?>,Consumer<?>> |
InitListener.TypedListener.stateReachedListenerAsMap() |
Map<NamedType<?>,Consumer<?>> |
ImmutableTypedListener.stateTearDownListenerAsMap()
Returns a lazily initialized value of the
stateTearDownListenerAsMap attribute. |
protected Map<NamedType<?>,Consumer<?>> |
InitListener.TypedListener.stateTearDownListenerAsMap() |
| Modifier and Type | Method and Description |
|---|---|
<D> InitLike.Init<D> |
InitLike.init(NamedType<D> destination,
InitListener... listener) |
<T> InitLike.Init<T> |
InitLike.Init.init(NamedType<T> destination) |
<D> D |
MapBasedStateOfNamedType.of(NamedType<D> type) |
static <T> ImmutableStateListener<T> |
ImmutableStateListener.of(NamedType<T> type,
Consumer<T> listener)
Construct a new immutable
StateListener instance. |
static <T> InitListener.StateListener<T> |
InitListener.StateListener.of(NamedType<T> type,
Consumer<T> listener) |
static <T> ImmutableNamedTypeAndState<T> |
ImmutableNamedTypeAndState.of(NamedType<T> type,
State<T> state)
Construct a new immutable
NamedTypeAndState instance. |
static <T> NamedTypeAndState<T> |
NamedTypeAndState.of(NamedType<T> type,
State<T> state) |
static <T> ImmutableNamedTypeAndValue<T> |
ImmutableNamedTypeAndValue.of(NamedType<T> type,
T value)
Construct a new immutable
NamedTypeAndValue instance. |
static <T> NamedTypeAndValue<T> |
NamedTypeAndValue.of(NamedType<T> type,
T value) |
ImmutableStateListener.Builder<T> |
ImmutableStateListener.Builder.type(NamedType<T> type)
Initializes the value for the
type attribute. |
ImmutableNamedTypeAndValue.Builder<T> |
ImmutableNamedTypeAndValue.Builder.type(NamedType<T> type)
Initializes the value for the
type attribute. |
ImmutableNamedTypeAndState.Builder<T> |
ImmutableNamedTypeAndState.Builder.type(NamedType<T> type)
Initializes the value for the
type attribute. |
ImmutableStateListener<T> |
ImmutableStateListener.withType(NamedType<T> value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableNamedTypeAndValue<T> |
ImmutableNamedTypeAndValue.withType(NamedType<T> value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableNamedTypeAndState<T> |
ImmutableNamedTypeAndState.withType(NamedType<T> value)
Copy the current immutable object by setting a value for the
type attribute. |
| Modifier and Type | Method and Description |
|---|---|
static InitListener |
InitListener.of(BiConsumer<NamedType<?>,Object> onStateReached,
BiConsumer<NamedType<?>,Object> onTearDown) |
static InitListener |
InitListener.of(BiConsumer<NamedType<?>,Object> onStateReached,
BiConsumer<NamedType<?>,Object> onTearDown) |
ImmutableSimple.Builder |
ImmutableSimple.Builder.onStateReached(BiConsumer<NamedType<?>,Object> onStateReached)
Initializes the optional value
onStateReached to onStateReached. |
ImmutableSimple.Builder |
ImmutableSimple.Builder.onStateReached(Optional<BiConsumer<NamedType<?>,Object>> onStateReached)
Initializes the optional value
onStateReached to onStateReached. |
ImmutableSimple.Builder |
ImmutableSimple.Builder.onTearDown(BiConsumer<NamedType<?>,Object> onTearDown)
Initializes the optional value
onTearDown to onTearDown. |
ImmutableSimple.Builder |
ImmutableSimple.Builder.onTearDown(Optional<BiConsumer<NamedType<?>,Object>> onTearDown)
Initializes the optional value
onTearDown to onTearDown. |
ImmutableSimple |
ImmutableSimple.withOnStateReached(BiConsumer<NamedType<?>,Object> value)
Copy the current immutable object by setting a present value for the optional
onStateReached attribute. |
ImmutableSimple |
ImmutableSimple.withOnStateReached(Optional<BiConsumer<NamedType<?>,Object>> optional)
Copy the current immutable object by setting an optional value for the
onStateReached attribute. |
ImmutableSimple |
ImmutableSimple.withOnTearDown(BiConsumer<NamedType<?>,Object> value)
Copy the current immutable object by setting a present value for the optional
onTearDown attribute. |
ImmutableSimple |
ImmutableSimple.withOnTearDown(Optional<BiConsumer<NamedType<?>,Object>> optional)
Copy the current immutable object by setting an optional value for the
onTearDown attribute. |
| Constructor and Description |
|---|
MapBasedStateOfNamedType(Map<NamedType<?>,State<?>> stateMap) |
| Modifier and Type | Method and Description |
|---|---|
<D> D |
StateOfNamedType.of(NamedType<D> type) |
| Modifier and Type | Method and Description |
|---|---|
NamedType<T> |
ImmutableState.type() |
NamedType<T> |
State.type() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableState<T> |
ImmutableState.of(NamedType<T> type,
T value)
Construct a new immutable
State instance. |
static <T> State<T> |
State.of(NamedType<T> type,
T value) |
ImmutableState.Builder<T> |
ImmutableState.Builder.type(NamedType<T> type)
Initializes the value for the
type attribute. |
ImmutableState<T> |
ImmutableState.withType(NamedType<T> value)
Copy the current immutable object by setting a value for the
type attribute. |
| Modifier and Type | Method and Description |
|---|---|
NamedType<D> |
ImmutableMergingJunction.destination() |
NamedType<D> |
ImmutableBridge.destination() |
NamedType<D> |
ImmutableStart.destination() |
NamedType<D> |
ImmutableThreeWayMergingJunction.destination() |
NamedType<D> |
SingleDestination.destination() |
NamedType<?> |
ImmutableRouteAndVertex.end() |
NamedType<?> |
RoutesAsGraph.RouteAndVertex.end() |
NamedType<L> |
ImmutableMergingJunction.left() |
NamedType<L> |
ImmutableThreeWayMergingJunction.left() |
NamedType<L> |
MergingJunction.left() |
NamedType<L> |
ThreeWayMergingJunction.left() |
NamedType<M> |
ImmutableThreeWayMergingJunction.middle() |
NamedType<M> |
ThreeWayMergingJunction.middle() |
NamedType<A> |
ImmutablePartingWay.oneDestination() |
NamedType<A> |
PartingWay.oneDestination() |
NamedType<B> |
ImmutablePartingWay.otherDestination() |
NamedType<B> |
PartingWay.otherDestination() |
NamedType<R> |
ImmutableMergingJunction.right() |
NamedType<R> |
ImmutableThreeWayMergingJunction.right() |
NamedType<R> |
MergingJunction.right() |
NamedType<R> |
ThreeWayMergingJunction.right() |
NamedType<S> |
ImmutableEnd.start() |
NamedType<S> |
ImmutableBridge.start() |
NamedType<?> |
ImmutableRouteAndVertex.start() |
NamedType<S> |
ImmutablePartingWay.start() |
default NamedType<Void> |
Start.start() |
NamedType<?> |
RoutesAsGraph.RouteAndVertex.start() |
NamedType<S> |
PartingWay.start() |
NamedType<S> |
SingleSource.start() |
NamedType<S> |
Bridge.start() |
NamedType<S> |
End.start() |
| Modifier and Type | Method and Description |
|---|---|
static org.jgrapht.graph.UnmodifiableDirectedGraph<NamedType<?>,RoutesAsGraph.RouteAndVertex> |
RoutesAsGraph.asGraph(Set<? extends Route<?>> all) |
static org.jgrapht.graph.UnmodifiableDirectedGraph<NamedType<?>,RoutesAsGraph.RouteAndVertex> |
RoutesAsGraph.asGraphIncludingStartAndEnd(Set<? extends Route<?>> all) |
default Set<NamedType<?>> |
Start.sources() |
default Set<NamedType<?>> |
MergingJunction.sources() |
default Set<NamedType<?>> |
PartingWay.sources() |
default Set<NamedType<?>> |
ThreeWayMergingJunction.sources() |
Set<NamedType<?>> |
Route.sources() |
default Set<NamedType<?>> |
Bridge.sources() |
default Set<NamedType<?>> |
End.sources() |
| Modifier and Type | Method and Description |
|---|---|
static <D> ImmutableStart.Builder<D> |
ImmutableStart.builder(NamedType<D> destination)
Creates a builder for
ImmutableStart. |
static <L,M,R,D> ImmutableThreeWayMergingJunction.Builder<L,M,R,D> |
ImmutableThreeWayMergingJunction.builder(NamedType<D> destination)
Creates a builder for
ImmutableThreeWayMergingJunction. |
static <L,R,D> ImmutableMergingJunction.Builder<L,R,D> |
ImmutableMergingJunction.builder(NamedType<D> destination)
Creates a builder for
ImmutableMergingJunction. |
static <S,D> ImmutableBridge.Builder<S,D> |
ImmutableBridge.builder(NamedType<D> destination)
Creates a builder for
ImmutableBridge. |
ImmutableRouteAndVertex.Builder |
ImmutableRouteAndVertex.Builder.end(NamedType<?> end)
Initializes the value for the
end attribute. |
ImmutableMergingJunction.Builder<L,R,D> |
ImmutableMergingJunction.Builder.left(NamedType<L> left)
Initializes the value for the
left attribute. |
ImmutableThreeWayMergingJunction.Builder<L,M,R,D> |
ImmutableThreeWayMergingJunction.Builder.left(NamedType<L> left)
Initializes the value for the
left attribute. |
ImmutableThreeWayMergingJunction.Builder<L,M,R,D> |
ImmutableThreeWayMergingJunction.Builder.middle(NamedType<M> middle)
Initializes the value for the
middle attribute. |
static ImmutableRouteAndVertex |
ImmutableRouteAndVertex.of(NamedType<?> start,
Route<?> route,
NamedType<?> end)
Construct a new immutable
RouteAndVertex instance. |
static ImmutableRouteAndVertex |
ImmutableRouteAndVertex.of(NamedType<?> start,
Route<?> route,
NamedType<?> end)
Construct a new immutable
RouteAndVertex instance. |
static RoutesAsGraph.RouteAndVertex |
RoutesAsGraph.RouteAndVertex.of(NamedType<?> start,
Route<?> route,
NamedType<?> end) |
static RoutesAsGraph.RouteAndVertex |
RoutesAsGraph.RouteAndVertex.of(NamedType<?> start,
Route<?> route,
NamedType<?> end) |
static <D> Start<D> |
Start.of(NamedType<D> destination) |
static <D> End<D> |
End.of(NamedType<D> start) |
static <L,M,R,D> ThreeWayMergingJunction<L,M,R,D> |
ThreeWayMergingJunction.of(NamedType<L> left,
NamedType<M> middle,
NamedType<R> right,
NamedType<D> destination) |
static <L,M,R,D> ThreeWayMergingJunction<L,M,R,D> |
ThreeWayMergingJunction.of(NamedType<L> left,
NamedType<M> middle,
NamedType<R> right,
NamedType<D> destination) |
static <L,M,R,D> ThreeWayMergingJunction<L,M,R,D> |
ThreeWayMergingJunction.of(NamedType<L> left,
NamedType<M> middle,
NamedType<R> right,
NamedType<D> destination) |
static <L,M,R,D> ThreeWayMergingJunction<L,M,R,D> |
ThreeWayMergingJunction.of(NamedType<L> left,
NamedType<M> middle,
NamedType<R> right,
NamedType<D> destination) |
static <L,R,D> MergingJunction<L,R,D> |
MergingJunction.of(NamedType<L> left,
NamedType<R> right,
NamedType<D> destination) |
static <L,R,D> MergingJunction<L,R,D> |
MergingJunction.of(NamedType<L> left,
NamedType<R> right,
NamedType<D> destination) |
static <L,R,D> MergingJunction<L,R,D> |
MergingJunction.of(NamedType<L> left,
NamedType<R> right,
NamedType<D> destination) |
static <S,A,B> PartingWay<S,A,B> |
PartingWay.of(NamedType<S> start,
NamedType<A> oneDestination,
NamedType<B> otherDestination) |
static <S,A,B> PartingWay<S,A,B> |
PartingWay.of(NamedType<S> start,
NamedType<A> oneDestination,
NamedType<B> otherDestination) |
static <S,A,B> PartingWay<S,A,B> |
PartingWay.of(NamedType<S> start,
NamedType<A> oneDestination,
NamedType<B> otherDestination) |
static <S,D> Bridge<S,D> |
Bridge.of(NamedType<S> start,
NamedType<D> destination) |
static <S,D> Bridge<S,D> |
Bridge.of(NamedType<S> start,
NamedType<D> destination) |
ImmutablePartingWay.Builder<S,A,B> |
ImmutablePartingWay.Builder.oneDestination(NamedType<A> oneDestination)
Initializes the value for the
oneDestination attribute. |
ImmutablePartingWay.Builder<S,A,B> |
ImmutablePartingWay.Builder.otherDestination(NamedType<B> otherDestination)
Initializes the value for the
otherDestination attribute. |
ImmutableMergingJunction.Builder<L,R,D> |
ImmutableMergingJunction.Builder.right(NamedType<R> right)
Initializes the value for the
right attribute. |
ImmutableThreeWayMergingJunction.Builder<L,M,R,D> |
ImmutableThreeWayMergingJunction.Builder.right(NamedType<R> right)
Initializes the value for the
right attribute. |
ImmutableRouteAndVertex.Builder |
ImmutableRouteAndVertex.Builder.start(NamedType<?> start)
Initializes the value for the
start attribute. |
ImmutableEnd.Builder<S> |
ImmutableEnd.Builder.start(NamedType<S> start)
Initializes the value for the
start attribute. |
ImmutableBridge.Builder<S,D> |
ImmutableBridge.Builder.start(NamedType<S> start)
Initializes the value for the
start attribute. |
ImmutablePartingWay.Builder<S,A,B> |
ImmutablePartingWay.Builder.start(NamedType<S> start)
Initializes the value for the
start attribute. |
ImmutableMergingJunction<L,R,D> |
ImmutableMergingJunction.withDestination(NamedType<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableBridge<S,D> |
ImmutableBridge.withDestination(NamedType<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableStart<D> |
ImmutableStart.withDestination(NamedType<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableThreeWayMergingJunction<L,M,R,D> |
ImmutableThreeWayMergingJunction.withDestination(NamedType<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableRouteAndVertex |
ImmutableRouteAndVertex.withEnd(NamedType<?> value)
Copy the current immutable object by setting a value for the
end attribute. |
ImmutableMergingJunction<L,R,D> |
ImmutableMergingJunction.withLeft(NamedType<L> value)
Copy the current immutable object by setting a value for the
left attribute. |
ImmutableThreeWayMergingJunction<L,M,R,D> |
ImmutableThreeWayMergingJunction.withLeft(NamedType<L> value)
Copy the current immutable object by setting a value for the
left attribute. |
ImmutableThreeWayMergingJunction<L,M,R,D> |
ImmutableThreeWayMergingJunction.withMiddle(NamedType<M> value)
Copy the current immutable object by setting a value for the
middle attribute. |
ImmutablePartingWay<S,A,B> |
ImmutablePartingWay.withOneDestination(NamedType<A> value)
Copy the current immutable object by setting a value for the
oneDestination attribute. |
ImmutablePartingWay<S,A,B> |
ImmutablePartingWay.withOtherDestination(NamedType<B> value)
Copy the current immutable object by setting a value for the
otherDestination attribute. |
ImmutableMergingJunction<L,R,D> |
ImmutableMergingJunction.withRight(NamedType<R> value)
Copy the current immutable object by setting a value for the
right attribute. |
ImmutableThreeWayMergingJunction<L,M,R,D> |
ImmutableThreeWayMergingJunction.withRight(NamedType<R> value)
Copy the current immutable object by setting a value for the
right attribute. |
ImmutableRouteAndVertex |
ImmutableRouteAndVertex.withStart(NamedType<?> value)
Copy the current immutable object by setting a value for the
start attribute. |
ImmutableEnd<S> |
ImmutableEnd.withStart(NamedType<S> value)
Copy the current immutable object by setting a value for the
start attribute. |
ImmutableBridge<S,D> |
ImmutableBridge.withStart(NamedType<S> value)
Copy the current immutable object by setting a value for the
start attribute. |
ImmutablePartingWay<S,A,B> |
ImmutablePartingWay.withStart(NamedType<S> value)
Copy the current immutable object by setting a value for the
start attribute. |
| Modifier and Type | Method and Description |
|---|---|
static String |
RoutesAsGraph.routeGraphAsDot(String label,
org.jgrapht.DirectedGraph<NamedType<?>,RoutesAsGraph.RouteAndVertex> graph) |
Copyright © 2017. All rights reserved.