public class RLGlueDomain extends java.lang.Object implements DomainGenerator
Domain
for an RLGlue TaskSpec
.
The representation consists of up to two objects. One object contains all RLGlue discrete attributes and the other all
Real (double) attributes. The domain can only support RLGlue problems that have discrete actions. The created BURLAP
Action
objects that correspond to the RLGlue actions cannot be applied to states since
RLGlue does not provide action transition dynamics; as a consequence a runtime exception will be thrown is the action
Action.performAction(burlap.oomdp.core.states.State, burlap.oomdp.singleagent.GroundedAction)
method is called. Instead,
only the Action.performInEnvironment(burlap.oomdp.singleagent.environment.Environment, burlap.oomdp.singleagent.GroundedAction)
method may be used to use an action.Modifier and Type | Class and Description |
---|---|
static class |
RLGlueDomain.RLGlueActionSpecification
A BURLAP
Action that corresponds to an RLGlue action that is defined by a single int value. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISCATT
The base name of a discrete attribute.
|
static java.lang.String |
DISCRETECLASS
The object class name for the object that holds the RLGlue discrete attributes
|
static java.lang.String |
REALATT
The base name of a real (double) attribute.
|
static java.lang.String |
REALCLASS
The object class name for the object that holds the RLGlue real-valued (double) attributes
|
protected org.rlcommunity.rlglue.codec.taskspec.TaskSpec |
theTaskSpec
The
TaskSpec used to generate the BURLAP Domain |
Constructor and Description |
---|
RLGlueDomain(org.rlcommunity.rlglue.codec.taskspec.TaskSpec theTaskSpec) |
Modifier and Type | Method and Description |
---|---|
Domain |
generateDomain()
Returns a newly instanced Domain object
|
org.rlcommunity.rlglue.codec.taskspec.TaskSpec |
getTheTaskSpec() |
void |
setTheTaskSpec(org.rlcommunity.rlglue.codec.taskspec.TaskSpec theTaskSpec) |
static State |
stateFromObservation(Domain domain,
org.rlcommunity.rlglue.codec.types.Observation obsv)
Creates a BURLAP
State from a RLGlue Observation . |
public static final java.lang.String DISCRETECLASS
public static final java.lang.String REALCLASS
public static final java.lang.String DISCATT
public static final java.lang.String REALATT
protected org.rlcommunity.rlglue.codec.taskspec.TaskSpec theTaskSpec
TaskSpec
used to generate the BURLAP Domain
public RLGlueDomain(org.rlcommunity.rlglue.codec.taskspec.TaskSpec theTaskSpec)
public org.rlcommunity.rlglue.codec.taskspec.TaskSpec getTheTaskSpec()
public void setTheTaskSpec(org.rlcommunity.rlglue.codec.taskspec.TaskSpec theTaskSpec)
public Domain generateDomain()
DomainGenerator
generateDomain
in interface DomainGenerator
public static State stateFromObservation(Domain domain, org.rlcommunity.rlglue.codec.types.Observation obsv)
State
from a RLGlue Observation
.domain
- the domain to which the state ObjectClass
instances belong.obsv
- the RLGlue Observation
State
.