public class ActionTransitions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
GroundedAction |
ga |
java.util.List<HashedTransitionProbability> |
transitions |
Constructor and Description |
---|
ActionTransitions(GroundedAction ga,
java.util.List<TransitionProbability> transitions,
HashableStateFactory hashingFactory)
Constructs the the ActionTransitions from the
GroundedAction that generated the transitions and the
set of transition probabilities. |
ActionTransitions(State s,
GroundedAction ga,
HashableStateFactory hashingFactory)
Constructs the the ActionTransitions from a source state, and an action to apply in that source state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matchingTransitions(GroundedAction oga)
Returns whether these action transitions are for the specified
GroundedAction |
public GroundedAction ga
public java.util.List<HashedTransitionProbability> transitions
public ActionTransitions(GroundedAction ga, java.util.List<TransitionProbability> transitions, HashableStateFactory hashingFactory)
GroundedAction
that generated the transitions and the
set of transition probabilities.ga
- the GroundedAction that generated the possible transitionstransitions
- the transition probabilitieshashingFactory
- a hashingFactory that can be used to hash the states in the TransitionProbability data structure.public ActionTransitions(State s, GroundedAction ga, HashableStateFactory hashingFactory)
s
- the state from which to generate the hashed transitionsga
- the GroundedAction to be applied in the source statehashingFactory
- a hashingFactory that can be used to hash the states in the TransitionProbability data structures that are returned from applying ga in s.public boolean matchingTransitions(GroundedAction oga)
GroundedAction
oga
- the GroundedAction
to check againstGroundedAction
oga; false otherwise.