public class HashedTransitionProbability
extends java.lang.Object
TransitionProbability, except it stores HashableState objects
instead of State objects.| Modifier and Type | Field and Description |
|---|---|
double |
p |
HashableState |
sh |
| Constructor and Description |
|---|
HashedTransitionProbability(HashableState sh,
double p)
Initializes with a
HashableState and probability for the transition |
HashedTransitionProbability(State s,
double p,
HashableStateFactory hashingFactory)
Takes a
State object, hashes it, and sets the transition probability to the hashed state to p |
HashedTransitionProbability(TransitionProbability tp,
HashableStateFactory hashingFactory)
Takes a
TransitionProbability and hashes its state using the hashingFactory object |
public HashableState sh
public double p
public HashedTransitionProbability(HashableState sh, double p)
HashableState and probability for the transitionsh - the hashed state that the agent transitions top - the probability of the transitionpublic HashedTransitionProbability(State s, double p, HashableStateFactory hashingFactory)
State object, hashes it, and sets the transition probability to the hashed state to ps - the state that the agent transitions top - the probability of the transitionhashingFactory - the hashing factory to use to hash the input statepublic HashedTransitionProbability(TransitionProbability tp, HashableStateFactory hashingFactory)
TransitionProbability and hashes its state using the hashingFactory objecttp - the TransitionProbability to hashhashingFactory - the hashing factory to use.