public class StateReachability
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
debugID
The debugID used for making calls to
DPrint . |
Constructor and Description |
---|
StateReachability() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<HashableState> |
getPolicyReachableHashedStates(Policy p,
State from,
HashableStateFactory usingHashFactory)
Finds the set of states (
HashableState ) that are reachable under a policy from a source state. |
static java.util.Set<HashableState> |
getPolicyReachableHashedStates(Policy p,
State from,
HashableStateFactory usingHashFactory,
TerminalFunction tf)
Finds the set of states (
HashableState ) that are reachable under a policy from a source state. |
static java.util.List<State> |
getPolicyReachableStates(Policy p,
State from,
HashableStateFactory usingHashFactory)
Finds the set of states that are reachable under a policy from a source state.
|
static java.util.List<State> |
getPolicyReachableStates(Policy p,
State from,
HashableStateFactory usingHashFactory,
TerminalFunction tf)
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.Set<HashableState> |
getReachableHashedStates(State from,
SADomain inDomain,
HashableStateFactory usingHashFactory,
TerminalFunction tf)
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. |
static java.util.List<State> |
getReachableStates(State from,
SADomain inDomain,
HashableStateFactory usingHashFactory,
TerminalFunction tf)
Returns the list of
State objects that are reachable from a source state. |
public static 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.List<State> getReachableStates(State from, SADomain inDomain, HashableStateFactory usingHashFactory, TerminalFunction tf)
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.tf
- a terminal function that prevents expansion from terminal states.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.Set<HashableState> getReachableHashedStates(State from, SADomain inDomain, HashableStateFactory usingHashFactory, TerminalFunction tf)
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.tf
- a terminal function that prevents expansion from terminal states.State
objects that are reachable from a source state.public static java.util.List<State> getPolicyReachableStates(Policy p, State from, HashableStateFactory usingHashFactory)
p
- 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.List<State> getPolicyReachableStates(Policy p, State from, HashableStateFactory usingHashFactory, TerminalFunction tf)
p
- 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.tf
- a TerminalFunction
that prevents further state expansion from states that are terminal states.List
of State
objects that could be reached.public static java.util.Set<HashableState> getPolicyReachableHashedStates(Policy 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.p
- 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.public static java.util.Set<HashableState> getPolicyReachableHashedStates(Policy p, State from, HashableStateFactory usingHashFactory, TerminalFunction tf)
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.p
- 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.tf
- a TerminalFunction
that prevents further state expansion from states that are terminal states.Set
of HashableState
objects that could be reached.