|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.japi.pf.FSMTransitionHandlerBuilder<S>
S
- the state type
This is an EXPERIMENTAL feature and is subject to change until it has received more real world testing.public class FSMTransitionHandlerBuilder<S>
Builder used to create a partial function for FSM.onTransition(scala.PartialFunction
.
Constructor Summary | |
---|---|
FSMTransitionHandlerBuilder()
|
Method Summary | |
---|---|
scala.PartialFunction<scala.Tuple2<S,S>,scala.runtime.BoxedUnit> |
build()
Build a PartialFunction from this builder. |
FSMTransitionHandlerBuilder<S> |
state(S fromState,
S toState,
FI.UnitApply2<S,S> apply)
Add a case statement that matches on a from state and a to state. |
FSMTransitionHandlerBuilder<S> |
state(S fromState,
S toState,
FI.UnitApplyVoid apply)
Add a case statement that matches on a from state and a to state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSMTransitionHandlerBuilder()
Method Detail |
---|
public FSMTransitionHandlerBuilder<S> state(S fromState, S toState, FI.UnitApplyVoid apply)
fromState
- the from state to match on, or null for anytoState
- the to state to match on, or null for anyapply
- an action to apply when the states match
public FSMTransitionHandlerBuilder<S> state(S fromState, S toState, FI.UnitApply2<S,S> apply)
fromState
- the from state to match on, or null for anytoState
- the to state to match on, or null for anyapply
- an action to apply when the states match
public scala.PartialFunction<scala.Tuple2<S,S>,scala.runtime.BoxedUnit> build()
PartialFunction
from this builder.
After this call the builder will be reset.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |