|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorbital.algorithm.template.TransitionPath
public class TransitionPath
A (randomized) path through state space S by transition τ of a TransitionModel.
This iterator will randomly follow a path from the given initial state under the given actions according to the probabilities of the transition τ.
| Constructor Summary | |
|---|---|
TransitionPath(TransitionModel transition,
java.util.Iterator actions,
java.lang.Object initialState)
Create a new (randomized) path through a transition model. |
|
| Method Summary | |
|---|---|
java.util.Random |
getRandom()
Get the random-generator used as probabilistic random source. |
boolean |
hasNext()
|
boolean |
isCorrect()
Whether this algorithm is correct. |
java.lang.Object |
next()
Advance to the next state of the path. |
void |
remove()
|
void |
setRandom(java.util.Random randomGenerator)
Set the random-generator to use as probabilistic random source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransitionPath(TransitionModel transition,
java.util.Iterator actions,
java.lang.Object initialState)
transition - the transition model τ through which to create a path.actions - the iterator of the actions to perform.initialState - the initial state s0 in S from which to start the path.| Method Detail |
|---|
public boolean isCorrect()
ProbabilisticAlgorithm
isCorrect in interface ProbabilisticAlgorithmpublic java.util.Random getRandom()
ProbabilisticAlgorithm
getRandom in interface ProbabilisticAlgorithmpublic void setRandom(java.util.Random randomGenerator)
ProbabilisticAlgorithmEspecially called to change the random source to a previous, more secure, or more realistic generator.
setRandom in interface ProbabilisticAlgorithmpublic java.lang.Object next()
If a in A(s) is the next action of the actions iterator and s in S is the current state, this method will perform the state transition s->as' with probability τ(a)(s,s').
next in interface java.util.Iteratorpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||