public class RLGlueWrappedDomainGenerator extends java.lang.Object implements DomainGenerator
Modifier and Type | Class and Description |
---|---|
protected class |
RLGlueWrappedDomainGenerator.RLGlueActionWrapper
A BURLAP Action class that has an associated RLGlue action index and will make calls to the BURLAP-RLGlue interface
(
RLGlueAgentShell ). |
Modifier and Type | Field and Description |
---|---|
protected RLGlueAgentShell |
aShell |
static java.lang.String |
DISCATT |
static java.lang.String |
DISCRETECLASS |
protected Domain |
domain |
protected boolean |
hasDiscAtts |
protected boolean |
hasRealAtts |
static java.lang.String |
REALATT |
static java.lang.String |
REALCLASS |
static java.lang.String |
TERMATT |
static java.lang.String |
TERMCLASS |
Constructor and Description |
---|
RLGlueWrappedDomainGenerator(RLGlueAgentShell aShell,
org.rlcommunity.rlglue.codec.taskspec.TaskSpec theTaskSpec)
Constructs the domain.
|
Modifier and Type | Method and Description |
---|---|
Domain |
generateDomain()
Returns a newly instanced Domain object
|
org.rlcommunity.rlglue.codec.types.Action |
getRLGlueAction(int id)
Returns the corresponding RLGlue action for the given action id.
|
State |
getTerminalState()
Returns a terminal state.
|
State |
stateFromObservation(org.rlcommunity.rlglue.codec.types.Observation obsv)
Returns a state object for the domain of this generator that is a result of the RLGlue observation.
|
public static final java.lang.String DISCRETECLASS
public static final java.lang.String REALCLASS
public static final java.lang.String TERMCLASS
public static final java.lang.String DISCATT
public static final java.lang.String REALATT
public static final java.lang.String TERMATT
protected RLGlueAgentShell aShell
protected Domain domain
protected boolean hasDiscAtts
protected boolean hasRealAtts
public RLGlueWrappedDomainGenerator(RLGlueAgentShell aShell, org.rlcommunity.rlglue.codec.taskspec.TaskSpec theTaskSpec)
aShell
- the BURLAP-RLGlue agent interface class which BURLAP actions for this domain should call.theTaskSpec
- the RLGlue task specification.public Domain generateDomain()
DomainGenerator
generateDomain
in interface DomainGenerator
public State stateFromObservation(org.rlcommunity.rlglue.codec.types.Observation obsv)
obsv
- the RLGlue observationpublic State getTerminalState()
public org.rlcommunity.rlglue.codec.types.Action getRLGlueAction(int id)
id
- the action id