public class StateReachability
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
debugID
The debugID used for making calls to
DPrint. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<HashableState> |
getPolicyReachableHashedStates(SADomain domain,
EnumerablePolicy p,
State from,
HashableStateFactory usingHashFactory)
Finds the set of states (
HashableState) that are reachable under a policy from a source state. |
static java.util.List<State> |
getPolicyReachableStates(SADomain domain,
EnumerablePolicy p,
State from,
HashableStateFactory usingHashFactory)
Finds the set of states that are reachable under a policy from a source state.
|
static java.util.Set<HashableState> |
getReachableHashedStates(State from,
SADomain inDomain,
HashableStateFactory usingHashFactory)
Returns the set of
State objects that are reachable from a source state. |
static java.util.List<State> |
getReachableStates(State from,
SADomain inDomain,
HashableStateFactory usingHashFactory)
Returns the list of
State objects that are reachable from a source state. |
public static final int debugID
DPrint.public static java.util.List<State> getReachableStates(State from, SADomain inDomain, HashableStateFactory usingHashFactory)
State objects that are reachable from a source state.from - the source stateinDomain - the domain of the stateusingHashFactory - the state hashing factory to use for indexing states and testing equality.State objects that are reachable from a source state.public static java.util.Set<HashableState> getReachableHashedStates(State from, SADomain inDomain, HashableStateFactory usingHashFactory)
State objects that are reachable from a source state.from - the source stateinDomain - the domain of the stateusingHashFactory - the state hashing factory to use for indexing states and testing equality.State objects that are reachable from a source state.public static java.util.List<State> getPolicyReachableStates(SADomain domain, EnumerablePolicy p, State from, HashableStateFactory usingHashFactory)
domain - the domain containing the model to use for evaluating reachable statesp - the policy that must be followedfrom - the source State from which the policy would be initiated.usingHashFactory - the HashableStateFactory used to hash states and test equality.List of State objects that could be reached.public static java.util.Set<HashableState> getPolicyReachableHashedStates(SADomain domain, EnumerablePolicy p, State from, HashableStateFactory usingHashFactory)
HashableState) that are reachable under a policy from a source state. Reachability under a source policy means
that the space of actions considered are those that have non-zero probability of being selected by the
policy and all possible outcomes of those states are considered.domain - the domain containing the model to use for evaluating reachable statesp - the policy that must be followedfrom - the source State from which the policy would be initiated.usingHashFactory - the HashableStateFactory used to hash states and test equality.Set of HashableState objects that could be reached.