Class Arithmetic
java.lang.Object
edu.tufts.hrilab.action.operators.Arithmetic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleThe assign operator as implemented here doesn't work well for uninitialized arguments (null) as there's no way to make sure that the value we return is of the correct type.static intdecrement(int n) static doublestatic intincrement(int n) static doublestatic doublestatic longstatic double
-
Constructor Details
-
Arithmetic
public Arithmetic()
-
-
Method Details
-
add
The assign operator as implemented here doesn't work well for uninitialized arguments (null) as there's no way to make sure that the value we return is of the correct type. Example, this method will assign (string) "3" to an integer ActionBinding this is currently null... -
increment
public static int increment(int n) -
subtract
-
decrement
public static int decrement(int n) -
multiply
-
divide
-
modulus
-
round
-