|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorbital.algorithm.template.GeneralSearchProblem.Transition
public static class GeneralSearchProblem.Transition
Represents an option node during a search problem.
An option node is a tuple 〈a,c〉∈A×R of an action performed to reach a state sʹ from a state s, and the immediate action cost.
| Constructor Summary | |
|---|---|
GeneralSearchProblem.Transition(java.lang.Object action,
double cost)
Deprecated. convenience constructor, prefer to use ValueFactory.valueOf(double).. |
|
GeneralSearchProblem.Transition(java.lang.Object action,
Real cost)
Create a new option 〈a,c〉. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compares options according to their cost. |
java.lang.Object |
getAction()
Get the action. |
Real |
getCost()
Get the cost of taking the action leading to this transition. |
Scalar |
getProbability()
1 since deterministic transition. |
protected void |
setAction(java.lang.Object action)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface orbital.algorithm.template.TransitionModel.Transition |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public GeneralSearchProblem.Transition(java.lang.Object action,
Real cost)
action - the applicable action a∈A to reach the state sʹ.cost - the immediate action cost c(s,a) of the action performed to reach the state sʹ.
public GeneralSearchProblem.Transition(java.lang.Object action,
double cost)
ValueFactory.valueOf(double)..
| Method Detail |
|---|
public java.lang.Object getAction()
protected void setAction(java.lang.Object action)
public Real getCost()
MarkovDecisionProblem.TransitionNote: Since c:S×A→R is a function, the cost should only depend on the action a taken, and the state s in which it was taken, not the actual outcome (which is unknown a priori). Otherwise, subset construction would not be applicable, etc.
getCost in interface MarkovDecisionProblem.Transitionpublic final Scalar getProbability()
getProbability in interface TransitionModel.Transitionpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in interface TransitionModel.Transitionpublic java.lang.String toString()
toString in class java.lang.Object
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||