public abstract class JointActionModel
extends java.lang.Object
performJointAction(State, JointAction)
method
first makes a copy of a state and passes it to the actionHelper(State, JointAction)
method,
which is what should be overridden by subclasses. The transitionProbsFor(State, JointAction)
method defines the transition probabilities and should also be overridden by subclasses if
this model is to be used with planning algorithms that require it.Constructor and Description |
---|
JointActionModel() |
Modifier and Type | Method and Description |
---|---|
protected abstract State |
actionHelper(State s,
JointAction ja)
This method is what determines the state when
JointAction ja is executed in State s. |
protected java.util.List<TransitionProbability> |
deterministicTransitionProbsFor(State s,
JointAction ja)
A helper method for deterministic transition dynamics.
|
State |
performJointAction(State s,
JointAction ja)
Performs
JointAction ja in State s and returns the result. |
abstract java.util.List<TransitionProbability> |
transitionProbsFor(State s,
JointAction ja)
Returns the transition probabilities for applying the provided
JointAction action in the given state. |
public State performJointAction(State s, JointAction ja)
JointAction
ja in State
s and returns the result.
The input state is not modified by this operation.s
- the state in which the joint action is performed.ja
- the joint action to be performedpublic abstract java.util.List<TransitionProbability> transitionProbsFor(State s, JointAction ja)
JointAction
action in the given state.
Transition probabilities are specified as list of TransitionProbability
objects. The list
is only required to contain transitions with non-zero probability.s
- the state in which the joint action is performedja
- the joint action performedTransitionProbability
objects.protected abstract State actionHelper(State s, JointAction ja)
JointAction
ja is executed in State
s.
The input state should be directly modified.s
- the state in which the joint action is performed.ja
- the joint action to be performed.protected java.util.List<TransitionProbability> deterministicTransitionProbsFor(State s, JointAction ja)
TransitionProbability
object which is assigned probability 1
and whose state is determined by querying the performJointAction(State, JointAction)
method.s
- the state in which the joint action would be executedja
- the joint action to be performed in the state.TransitionProbability
object which is assigned probability 1