org.rlcommunity.rlglue.codec.taskspec
Class TaskSpecDelegate

java.lang.Object
  extended by org.rlcommunity.rlglue.codec.taskspec.TaskSpecDelegate
Direct Known Subclasses:
TaskSpecVersionOnly, TaskSpecVRLGLUE3

public abstract class TaskSpecDelegate
extends java.lang.Object

TaskSpecDelegate was written to be the abstraction between the Task Spec object agents and environments interact with, and the implementation of each version of the Task Spec. This allows for the addition of functionality to the Task Spec by adding new versions without breaking previous Versions.We'll extend this class over time, adding more stuff to it, but we'll be careful such that we don't need to *ever* change existing subclasses.

TaskSpecDelegate does not implement any of these functions, it acts as an interface. Some of these things will be deprecated over time, and some will be added. If you try and call one that isn't supported on the exact task spec version you have, you'll get a UnsupportedOperationException. I am going to just take out the setter methods though, those should be used only really through the correct specific object.

Author:
Matt Radkie

Constructor Summary
TaskSpecDelegate()
           
 
Method Summary
protected  java.lang.String dump()
           
 int getActionDim()
           
 double[] getActionMaxs()
           
 double[] getActionMins()
           
 char[] getActionTypes()
           
 DoubleRange getContinuousActionRange(int i)
           
 DoubleRange getContinuousObservationRange(int i)
           
 IntRange getDiscreteActionRange(int i)
           
 IntRange getDiscreteObservationRange(int i)
           
 char getEpisodic()
           
 java.lang.String getExtraString()
           
 int getNumContinuousActionDims()
           
 int getNumContinuousObsDims()
           
 int getNumDiscreteActionDims()
           
 int getNumDiscreteObsDims()
           
 int getObsDim()
           
 double[] getObsMaxs()
           
 double[] getObsMins()
           
 char[] getObsTypes()
           
 int getParserVersion()
           
 double getRewardMax()
           
 double getRewardMin()
           
 DoubleRange getRewardRange()
           
protected  java.lang.String getStringRepresentation()
           
 double getVersion()
           
 java.lang.String getVersionString()
           
 boolean isActionMaxPosInfinity(int index)
           
 boolean isActionMaxUnknown(int index)
           
 boolean isActionMinNegInfinity(int index)
           
 boolean isActionMinUnknown(int index)
           
 boolean isMaxRewardInf()
           
 boolean isMaxRewardUnknown()
           
 boolean isMinRewardNegInf()
           
 boolean isMinRewardUnknown()
           
 boolean isObsMaxPosInfinity(int index)
           
 boolean isObsMaxUnknown(int index)
           
 boolean isObsMinNegInfinity(int index)
           
 boolean isObsMinUnknown(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskSpecDelegate

public TaskSpecDelegate()
Method Detail

dump

protected java.lang.String dump()
See Also:
TaskSpec.dump()

getStringRepresentation

protected java.lang.String getStringRepresentation()
See Also:
TaskSpec.getStringRepresentation()

isObsMinNegInfinity

public boolean isObsMinNegInfinity(int index)
See Also:
TaskSpec.isObsMinNegInfinity(int index)

isActionMinNegInfinity

public boolean isActionMinNegInfinity(int index)
See Also:
TaskSpec.isActionMinNegInfinity(int index)

isObsMaxPosInfinity

public boolean isObsMaxPosInfinity(int index)
See Also:
TaskSpec.isObsMaxPosInfinity(int index)

isActionMaxPosInfinity

public boolean isActionMaxPosInfinity(int index)
See Also:
TaskSpec.isActionMaxPosInfinity(int index)

isObsMinUnknown

public boolean isObsMinUnknown(int index)
See Also:
TaskSpec.isObsMinUnknown(int index)

isObsMaxUnknown

public boolean isObsMaxUnknown(int index)
See Also:
TaskSpec.isObsMaxUnknown(int index)

isActionMinUnknown

public boolean isActionMinUnknown(int index)
See Also:
TaskSpec.isActionMinUnknown(int index)

isActionMaxUnknown

public boolean isActionMaxUnknown(int index)
See Also:
TaskSpec.isActionMaxUnknown(int index)

isMinRewardNegInf

public boolean isMinRewardNegInf()
See Also:
TaskSpec.isMinRewardNegInf()

isMaxRewardInf

public boolean isMaxRewardInf()
See Also:
TaskSpec.isMaxRewardInf()

isMinRewardUnknown

public boolean isMinRewardUnknown()
See Also:
TaskSpec.isMinRewardUnknown()

isMaxRewardUnknown

public boolean isMaxRewardUnknown()
See Also:
TaskSpec.isMaxRewardUnknown()

getVersion

public double getVersion()
See Also:
TaskSpec.getVersion()

getEpisodic

public char getEpisodic()
See Also:
TaskSpec.getEpisodic()

getObsDim

public int getObsDim()
See Also:
TaskSpec.getObsDim()

getNumDiscreteObsDims

public int getNumDiscreteObsDims()
See Also:
TaskSpec.getNumDiscreteObsDims()

getNumContinuousObsDims

public int getNumContinuousObsDims()
See Also:
TaskSpec.getNumContinuousObsDims()

getObsTypes

public char[] getObsTypes()
See Also:
TaskSpec.getObsTypes()

getObsMins

public double[] getObsMins()
See Also:
TaskSpec.getObsMins()

getObsMaxs

public double[] getObsMaxs()
See Also:
TaskSpec.getObsMaxs()

getActionDim

public int getActionDim()
See Also:
TaskSpec.getActionDim()

getNumDiscreteActionDims

public int getNumDiscreteActionDims()
See Also:
TaskSpec.getNumDiscreteActionDims()

getNumContinuousActionDims

public int getNumContinuousActionDims()
See Also:
TaskSpec.getNumContinuousActionDims()

getActionTypes

public char[] getActionTypes()
See Also:
TaskSpec.getActionTypes()

getActionMins

public double[] getActionMins()
See Also:
TaskSpec.getActionMins()

getActionMaxs

public double[] getActionMaxs()
See Also:
TaskSpec.getActionMaxs()

getRewardMax

public double getRewardMax()
See Also:
TaskSpec.getRewardMax()

getRewardMin

public double getRewardMin()
See Also:
TaskSpec.getRewardMin()

getExtraString

public java.lang.String getExtraString()
See Also:
TaskSpec.getExtraString()

getParserVersion

public int getParserVersion()
See Also:
TaskSpec.getParserVersion()

getVersionString

public java.lang.String getVersionString()
See Also:
TaskSpec.getVersionString()

getDiscreteObservationRange

public IntRange getDiscreteObservationRange(int i)

getContinuousObservationRange

public DoubleRange getContinuousObservationRange(int i)

getDiscreteActionRange

public IntRange getDiscreteActionRange(int i)

getContinuousActionRange

public DoubleRange getContinuousActionRange(int i)

getRewardRange

public DoubleRange getRewardRange()