public class Result extends Object
Double
with value 0.0 to isFalse(java.lang.Object), it will return true).
Most important part of this class are methods compare(java.lang.Object, java.lang.Object) and equal(java.lang.Object, java.lang.Object).| Modifier and Type | Field and Description |
|---|---|
static String |
variableNameRegexp
Regexp for parameter name be same as
|
| Constructor and Description |
|---|
Result() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(Object operand1,
Object operand2)
What is the comparison of operand1 and operand2?
|
static boolean |
equal(Object operand1,
Object operand2)
Are two operands equal?
|
static boolean |
getBoolean(Object value)
Get boolean value from
Boolean class. |
static Number |
getNumber(Object value) |
static double |
getNumerical(Object value)
|
static boolean |
isBoolean(Object value)
Is value instance of
Boolean class? |
static boolean |
isFalse(Object value)
Is the value false?
|
static boolean |
isNumber(Object value) |
static boolean |
isNumerical(Object value)
Is value numerical(either number or boolean)?
|
static boolean |
isTrue(Object value)
Is value true?
|
static boolean |
isVariableName(String possibleVariableName)
Check if passed string is variable name.
|
static Object |
parseValue(String valueString)
Parse string from posh plan and convert it to object.
|
static String |
toLap(Object value)
Get string representation of the value that can be used in the lap plan.
|
public static final String variableNameRegexp
public static boolean isFalse(Object value)
http://docs.python.org/library/stdtypes.html#truth-value-testingpublic static boolean isTrue(Object value)
isFalse(java.lang.Object).value - value for which we want the information.public static boolean isNumber(Object value)
public static boolean isBoolean(Object value)
Boolean class?value - value to be testedBooleanpublic static boolean getBoolean(Object value)
Boolean class.value - (value must be instance of {@link Boolean) class.public static Object parseValue(String valueString) throws ParseException
valueString - string that will be parsed to object NOT NULL.ParseExceptionpublic static double getNumerical(Object value)
Number
and from Boolean (true = 1, false = 0)value - public static boolean isNumerical(Object value)
value - value to check if it is numericalpublic static boolean equal(Object operand1, Object operand2)
operand1 - operand2 - public static int compare(Object operand1, Object operand2)
operand1 - operand2 - public static String toLap(Object value)
parseValue(java.lang.String).value - value to convretpublic static boolean isVariableName(String possibleVariableName)
possibleVariableName - Tested string.Copyright © 2018 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.