|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A
- the type of transition actions.S
- the type of transition states.M
- the class representing transitions.public interface TransitionModel
Represents a transition model. The central part underlying several other formalizations of systems consists of such a transition model.
A transition model is a mathematical model for (formal) systems with states and action-driven state changes. It forms a rewrite system, perhaps with additional probability information. A transition model is characterized by
A non-deterministic transition model is a semi-Thue system with CH3 acception rules (more precise: reductions).
Note that you can as well use this interface in its raw version (i.e. without instantiating
template parameters) for mere non-deterministic transitions without stochastic information
by ignoring the type-restriction of TransitionModel.Transition
to transition(Object,Object,Object)
.
TransitionPath
,
Function
,
BinaryPredicate
Nested Class Summary | |
---|---|
static interface |
TransitionModel.Transition
Represents (information about) a transition option during a transition model. |
Method Summary | |
---|---|
java.util.Iterator |
actions(java.lang.Object state)
Get the applicable actions at a state. |
java.util.Iterator |
states(java.lang.Object action,
java.lang.Object state)
Get all states reachable with any transitions from the state under a given action. |
TransitionModel.Transition |
transition(java.lang.Object action,
java.lang.Object state,
java.lang.Object statep)
Get (information about) the transition from a state to another state under a given action. |
Method Detail |
---|
java.util.Iterator actions(java.lang.Object state)
Intuitively, applicable actions are those that result in a valid transition. So for a state, the applicable actions are the only actions relevant for leaving that state with any transition (including transitions that lead back to the state the transition just started in).
For several reasons (including performance) it is widely recommended that
actions(Object)
.
Since this may result in rather messy implementations, relieving this requirement
should generally be limited to very specific and well documented cases.
state
- the state s∈S whose applicable actions to determine.
GreedyProblem.nextCandidates(java.util.List)
java.util.Iterator states(java.lang.Object action, java.lang.Object state)
Intuitively, those are the only relevant states which can be reached by any transitions (from the given state under the given action) at all.
For performance reasons it is recommended that this method does only return those states sʹ∈S that can truely be reached (i.e. where P(sʹ|s,a) > 0, i.e. sʹ ∈ {s}∘τ(a) = {sʹ∈S ¦ τ(a)(s,sʹ)>0}). Although this is not strictly required if it would be too expensive to determine.
Note that the resulting iterator will never be empty since the transition probabilities sum up 1 (or integrate to 1 in the case of a continuous transition probability distribution), even though the next state may not differ from the previous state.
action
- the action a∈A(s) that must be applicable in state s∈S.state
- the state s∈S.
InapplicableActionException
- if a∉A(s) is not applicable in state s.TransitionModel.Transition transition(java.lang.Object action, java.lang.Object state, java.lang.Object statep)
This central method specifies the central action-dependent (stochastic) transition relation
In usual cases, implementations can assume that action stems from some call to actions(Object)
,
and statep is obtained from states(Object,Object)
.
action
- the action a∈A(s) that must be applicable in state s∈S.state
- the source state s∈S prior to the transition.statep
- the resulting state sʹ∈S after the transition took place.
transition
which may contain additional information.
InapplicableActionException
- if a∉A(s) is not applicable in state s.
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |