Class Op

java.lang.Object
ise.antelope.tasks.Op

public class Op extends Object
Represents a mathematical operation.

Copyright 2003, Dale Anson, all rights reserved

  • Constructor Details

  • Method Details

    • setOp

      public void setOp(String op)
      Set the operation.
    • addConfiguredNum

      public void addConfiguredNum(Num num)
      Add a number to this operation. An operation can hold any number of numbers to support formulas like 5 + 4 + 3 + 2 + 1.
      Parameters:
      num - a number to use in this operation
    • setDatatype

      public void setDatatype(String p)
      Sets the datatype of this calculation. Allowed values are "int", "long", "float", or "double".
    • addConfiguredOp

      public void addConfiguredOp(Op op)
      Add a nested operation.
      Parameters:
      op - the operation to add.
    • setStrict

      public void setStrict(boolean b)
      Use the StrictMath library.
    • calculate

      public Num calculate()
      Perform this operation.
      Returns:
      the value resulting from the calculation as a Num.