|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rlcommunity.rlglue.codec.taskspec.ranges.AbstractRange
org.rlcommunity.rlglue.codec.taskspec.ranges.IntRange
public class IntRange
Field Summary |
---|
Fields inherited from class org.rlcommunity.rlglue.codec.taskspec.ranges.AbstractRange |
---|
specialValues |
Constructor Summary | |
---|---|
IntRange()
Constructs an unknown to unknown IntRange |
|
IntRange(int howMany)
Constructs a set of howMany unknown to unknown IntRange |
|
IntRange(int min,
int max)
Constructs a min to max IntRange |
|
IntRange(int min,
int max,
int howMany)
Constructs a set of howMany min to max IntRange |
|
IntRange(java.lang.String thisRange)
This should be a 2 or 3 tuple range like "1 2" or "5 1 2" |
Method Summary | |
---|---|
int |
getMax()
|
java.lang.String |
getMaxAsString()
Override this is descendant classes and only use super method if max is special. |
int |
getMin()
|
java.lang.String |
getMinAsString()
Override this is descendant classes and only use super method if min is special. |
int |
getRangeSize()
Return the size of the range. |
protected void |
parseMax(java.lang.String highPart)
|
protected void |
parseMin(java.lang.String lowPart)
|
void |
setMax(int newMax)
|
void |
setMin(int newMin)
|
java.lang.String |
toString()
|
Methods inherited from class org.rlcommunity.rlglue.codec.taskspec.ranges.AbstractRange |
---|
getHowMany, getMaxInf, getMaxNegInf, getMaxSpecialStatus, getMaxUnspecified, getMinInf, getMinNegInf, getMinSpecialStatus, getMinUnspecified, hasSpecialMaxStatus, hasSpecialMinStatus, parseSpecialMax, parseSpecialMin, setMaxInf, setMaxSpecified, setMaxUnspecified, setMinNegInf, setMinSpecified, setMinUnspecified, toTaskSpec |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntRange()
public IntRange(int howMany)
public IntRange(java.lang.String thisRange)
thisRange
- public IntRange(int min, int max)
public IntRange(int min, int max, int howMany)
Method Detail |
---|
public int getRangeSize()
public int getMin()
public int getMax()
public void setMax(int newMax)
public void setMin(int newMin)
protected void parseMin(java.lang.String lowPart)
parseMin
in class AbstractRange
protected void parseMax(java.lang.String highPart)
parseMax
in class AbstractRange
public java.lang.String getMinAsString()
AbstractRange
getMinAsString
in class AbstractRange
public java.lang.String getMaxAsString()
AbstractRange
getMaxAsString
in class AbstractRange
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |