public class RLGlueDomain extends java.lang.Object implements DomainGenerator
Domain
for an RLGlue TaskSpec
.
This class also provides a state generator for RLGLue Observation
objects, using the RLGlueState
,
which wraps the observation and provides the relevant key values for it so normal BURLAP code and interact with it.
This code only supports single dimensional discrete actions from RL Glue
Modifier and Type | Class and Description |
---|---|
static class |
RLGlueDomain.RLGlueActionType
A BURLAP
ActionType that corresponds to an RLGlue action that is defined by a single int value. |
Modifier and Type | Field and Description |
---|---|
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(org.rlcommunity.rlglue.codec.types.Observation obsv)
Creates a BURLAP
State from a RLGlue Observation . |
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