Class Misc
java.lang.Object
edu.tufts.hrilab.action.operators.Misc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringBinds local variables in a string to a string.static booleanReturn true if a is null, false otherwise.static booleanisVariable(Symbol symbol) static voidstatic longParses a string to a long.static doublerandomDouble(int lower, int upper) static intrandomInt(int lower, int upper) static ObjectsetNull()Assign null value to an object.static voidsleep(long ms)
-
Constructor Details
-
Misc
public Misc()
-
-
Method Details
-
sleep
- Throws:
OperatorException
-
randomInt
public static int randomInt(int lower, int upper) -
randomDouble
public static double randomDouble(int lower, int upper) -
log
-
isVariable
-
isNull
Return true if a is null, false otherwise.- Parameters:
a-- Returns:
-
setNull
Assign null value to an object.- Returns:
-
bind
Binds local variables in a string to a string.- Parameters:
input- String with variables to bind- Returns:
- Bound string
-
parseLong
Parses a string to a long.- Parameters:
s-- Returns:
-