public class IntegerCommandParameter extends CommandParameter
| Constructor and Description |
|---|
IntegerCommandParameter(String id,
String des) |
IntegerCommandParameter(String id,
String des,
net.sf.tweety.math.Interval<Integer> interval) |
IntegerCommandParameter(String id,
String des,
String interval) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
net.sf.tweety.math.Interval<Integer> |
getInterval()
returns each possible selection argument
|
Integer |
getValue()
returns the given instantiation argument value for this parameter
|
CommandParameter |
instantiate(String s)
instantiates a new parameter iff the given value is valid for this command parameter
|
boolean |
isValid(String s)
checks whether a cli input parameter argument is valid for the called command parameter
|
void |
setInterval(String interval)
sets new selection parameter
|
void |
setValue(Integer value)
sets the instantiated parameter argument value,
value has to be one of the options contained in selections
|
getDescription, getIdentifierpublic IntegerCommandParameter(String id, String des, net.sf.tweety.math.Interval<Integer> interval)
public void setInterval(String interval)
interval - public net.sf.tweety.math.Interval<Integer> getInterval()
public Integer getValue()
public void setValue(Integer value)
value - the value given as argument valuepublic boolean isValid(String s)
isValid in class CommandParameters - the given input stringpublic CommandParameter instantiate(String s)
instantiate in class CommandParameters - the given argument stringpublic Object clone()
clone in class ObjectCloneNotSupportedExceptionCopyright © 2018. All rights reserved.