org.rlcommunity.rlglue.codec.taskspec
Class TaskSpecVRLGLUE3

java.lang.Object
  extended by org.rlcommunity.rlglue.codec.taskspec.TaskSpecDelegate
      extended by org.rlcommunity.rlglue.codec.taskspec.TaskSpecVRLGLUE3

public class TaskSpecVRLGLUE3
extends TaskSpecDelegate

The newest version of the Task Spec (Nov 1 2008).

Author:
Brian Tanner

Constructor Summary
TaskSpecVRLGLUE3()
           
TaskSpecVRLGLUE3(java.lang.String taskSpecString)
          Parse a task spec string.
 
Method Summary
 void addContinuousAction(DoubleRange newDoubleRange)
           
 void addContinuousObservation(DoubleRange newDoubleRange)
           
 void addDiscreteAction(IntRange newIntRange)
           
 void addDiscreteObservation(IntRange newIntRange)
           
 DoubleRange getContinuousActionRange(int i)
           
 DoubleRange getContinuousObservationRange(int i)
           
 double getDiscountFactor()
           
 IntRange getDiscreteActionRange(int i)
           
 IntRange getDiscreteObservationRange(int i)
           
 char getEpisodic()
          Deprecated. Use getProblemType
 java.lang.String getExtraString()
           
 int getNumContinuousActionDims()
           
 int getNumContinuousObsDims()
           
 int getNumDiscreteActionDims()
           
 int getNumDiscreteObsDims()
           
 java.lang.String getProblemType()
           
 double getRewardMax()
          Deprecated. Just get the range and ask that object this question.
 double getRewardMin()
          Deprecated. Just get the range and ask that object this question.
 DoubleRange getRewardRange()
           
protected  java.lang.String getStringRepresentation()
           
 double getVersion()
           
 java.lang.String getVersionString()
           
 boolean isActionMaxPosInfinity(int index)
          Deprecated. Just get the range and ask that object this question.
 boolean isActionMaxUnknown(int index)
          Deprecated. Just get the range and ask that object this question.
 boolean isActionMinNegInfinity(int index)
          Deprecated. Just get the range and ask that object this question.
 boolean isActionMinUnknown(int index)
          Deprecated. Just get the range and ask that object this question.
 boolean isMaxRewardInf()
          Deprecated. Just get the range and ask that object this question.
 boolean isMaxRewardUnknown()
          Deprecated. Just get the range and ask that object this question.
 boolean isMinRewardNegInf()
          Deprecated. Just get the range and ask that object this question.
 boolean isMinRewardUnknown()
          Deprecated. Just get the range and ask that object this question.
 boolean isObsMaxPosInfinity(int index)
          Deprecated. Just get the range and ask that object this question.
 boolean isObsMaxUnknown(int index)
          Deprecated. Just get the range and ask that object this question.
 boolean isObsMinNegInfinity(int index)
          Deprecated. Just get the range and ask that object this question.
 boolean isObsMinUnknown(int index)
          Deprecated. Just get the range and ask that object this question.
static void main(java.lang.String[] args)
           
 void setActionCharLimit(int charLimit)
           
 void setContinuing()
           
 void setDiscountFactor(double discountFactor)
           
 void setEpisodic()
           
 void setExtra(java.lang.String extra)
           
 void setObservationCharLimit(int charLimit)
           
 void setProblemTypeCustom(java.lang.String customType)
           
 void setRewardRange(DoubleRange newRewardRange)
           
 java.lang.String toString()
          Returns a person-friendly string version of the object.
 java.lang.String toTaskSpec()
          Return a valid RLGLUEV3 task spec for this object.
 
Methods inherited from class org.rlcommunity.rlglue.codec.taskspec.TaskSpecDelegate
dump, getActionDim, getActionMaxs, getActionMins, getActionTypes, getObsDim, getObsMaxs, getObsMins, getObsTypes, getParserVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskSpecVRLGLUE3

public TaskSpecVRLGLUE3()

TaskSpecVRLGLUE3

public TaskSpecVRLGLUE3(java.lang.String taskSpecString)
Parse a task spec string.

Parameters:
taskSpecString -
Method Detail

setEpisodic

public void setEpisodic()

setContinuing

public void setContinuing()

setProblemTypeCustom

public void setProblemTypeCustom(java.lang.String customType)

getProblemType

public java.lang.String getProblemType()

setDiscountFactor

public void setDiscountFactor(double discountFactor)

addDiscreteObservation

public void addDiscreteObservation(IntRange newIntRange)

addContinuousObservation

public void addContinuousObservation(DoubleRange newDoubleRange)

setObservationCharLimit

public void setObservationCharLimit(int charLimit)

addDiscreteAction

public void addDiscreteAction(IntRange newIntRange)

addContinuousAction

public void addContinuousAction(DoubleRange newDoubleRange)

setActionCharLimit

public void setActionCharLimit(int charLimit)

setRewardRange

public void setRewardRange(DoubleRange newRewardRange)

setExtra

public void setExtra(java.lang.String extra)

getDiscountFactor

public double getDiscountFactor()

main

public static void main(java.lang.String[] args)

toString

public java.lang.String toString()
Returns a person-friendly string version of the object.

Overrides:
toString in class java.lang.Object
Returns:
a person friendly, human readable verson of the task spec.

toTaskSpec

public java.lang.String toTaskSpec()
Return a valid RLGLUEV3 task spec for this object.

Returns:
a string representing a valid RLGLUEV3 task spec for this object.

getRewardRange

public DoubleRange getRewardRange()
Overrides:
getRewardRange in class TaskSpecDelegate

getDiscreteObservationRange

public IntRange getDiscreteObservationRange(int i)
Overrides:
getDiscreteObservationRange in class TaskSpecDelegate

getDiscreteActionRange

public IntRange getDiscreteActionRange(int i)
Overrides:
getDiscreteActionRange in class TaskSpecDelegate

getContinuousObservationRange

public DoubleRange getContinuousObservationRange(int i)
Overrides:
getContinuousObservationRange in class TaskSpecDelegate

getContinuousActionRange

public DoubleRange getContinuousActionRange(int i)
Overrides:
getContinuousActionRange in class TaskSpecDelegate

getStringRepresentation

protected java.lang.String getStringRepresentation()
Overrides:
getStringRepresentation in class TaskSpecDelegate
See Also:
TaskSpec.getStringRepresentation()

isObsMinNegInfinity

public boolean isObsMinNegInfinity(int index)
Deprecated. Just get the range and ask that object this question.

Overrides:
isObsMinNegInfinity in class TaskSpecDelegate
See Also:
TaskSpec.isObsMinNegInfinity(int index)

isActionMinNegInfinity

public boolean isActionMinNegInfinity(int index)
Deprecated. Just get the range and ask that object this question.

Overrides:
isActionMinNegInfinity in class TaskSpecDelegate
See Also:
TaskSpec.isActionMinNegInfinity(int index)

isObsMaxPosInfinity

public boolean isObsMaxPosInfinity(int index)
Deprecated. Just get the range and ask that object this question.

Overrides:
isObsMaxPosInfinity in class TaskSpecDelegate
See Also:
TaskSpec.isObsMaxPosInfinity(int index)

isActionMaxPosInfinity

public boolean isActionMaxPosInfinity(int index)
Deprecated. Just get the range and ask that object this question.

Overrides:
isActionMaxPosInfinity in class TaskSpecDelegate
See Also:
TaskSpec.isActionMaxPosInfinity(int index)

isObsMinUnknown

public boolean isObsMinUnknown(int index)
Deprecated. Just get the range and ask that object this question.

Overrides:
isObsMinUnknown in class TaskSpecDelegate
See Also:
TaskSpec.isObsMinUnknown(int index)

isObsMaxUnknown

public boolean isObsMaxUnknown(int index)
Deprecated. Just get the range and ask that object this question.

Overrides:
isObsMaxUnknown in class TaskSpecDelegate
See Also:
TaskSpec.isObsMaxUnknown(int index)

isActionMinUnknown

public boolean isActionMinUnknown(int index)
Deprecated. Just get the range and ask that object this question.

Overrides:
isActionMinUnknown in class TaskSpecDelegate
See Also:
TaskSpec.isActionMinUnknown(int index)

isActionMaxUnknown

public boolean isActionMaxUnknown(int index)
Deprecated. Just get the range and ask that object this question.

Overrides:
isActionMaxUnknown in class TaskSpecDelegate
See Also:
TaskSpec.isActionMaxUnknown(int index)

isMinRewardNegInf

public boolean isMinRewardNegInf()
Deprecated. Just get the range and ask that object this question.

Overrides:
isMinRewardNegInf in class TaskSpecDelegate
See Also:
TaskSpec.isMinRewardNegInf()

isMaxRewardInf

public boolean isMaxRewardInf()
Deprecated. Just get the range and ask that object this question.

Overrides:
isMaxRewardInf in class TaskSpecDelegate
See Also:
TaskSpec.isMaxRewardInf()

isMinRewardUnknown

public boolean isMinRewardUnknown()
Deprecated. Just get the range and ask that object this question.

Overrides:
isMinRewardUnknown in class TaskSpecDelegate
See Also:
TaskSpec.isMinRewardUnknown()

isMaxRewardUnknown

public boolean isMaxRewardUnknown()
Deprecated. Just get the range and ask that object this question.

Overrides:
isMaxRewardUnknown in class TaskSpecDelegate
See Also:
TaskSpec.isMaxRewardUnknown()

getVersion

public double getVersion()
Overrides:
getVersion in class TaskSpecDelegate
See Also:
TaskSpec.getVersion()

getEpisodic

public char getEpisodic()
Deprecated. Use getProblemType

Overrides:
getEpisodic in class TaskSpecDelegate
See Also:
TaskSpec.getEpisodic()

getVersionString

public java.lang.String getVersionString()
Overrides:
getVersionString in class TaskSpecDelegate
See Also:
TaskSpec.getVersionString()

getNumContinuousObsDims

public int getNumContinuousObsDims()
Overrides:
getNumContinuousObsDims in class TaskSpecDelegate
See Also:
TaskSpec.getNumContinuousObsDims()

getNumDiscreteObsDims

public int getNumDiscreteObsDims()
Overrides:
getNumDiscreteObsDims in class TaskSpecDelegate
See Also:
TaskSpec.getNumDiscreteObsDims()

getNumDiscreteActionDims

public int getNumDiscreteActionDims()
Overrides:
getNumDiscreteActionDims in class TaskSpecDelegate
See Also:
TaskSpec.getNumDiscreteActionDims()

getNumContinuousActionDims

public int getNumContinuousActionDims()
Overrides:
getNumContinuousActionDims in class TaskSpecDelegate
See Also:
TaskSpec.getNumContinuousActionDims()

getRewardMax

public double getRewardMax()
Deprecated. Just get the range and ask that object this question.

Overrides:
getRewardMax in class TaskSpecDelegate
See Also:
TaskSpec.getRewardMax()

getRewardMin

public double getRewardMin()
Deprecated. Just get the range and ask that object this question.

Overrides:
getRewardMin in class TaskSpecDelegate
See Also:
TaskSpec.getRewardMin()

getExtraString

public java.lang.String getExtraString()
Overrides:
getExtraString in class TaskSpecDelegate
See Also:
TaskSpec.getExtraString()