Package hec.model

Class LogicNode

java.lang.Object
hec.model.LogicNode
Direct Known Subclasses:
Operand, Operator

public abstract class LogicNode extends Object
  • Constructor Details

    • LogicNode

      public LogicNode()
  • Method Details

    • evaluate

      public abstract boolean evaluate(RunTimeStep rts)
      Abstract Method. Returns a true/false value based upon the type of node. Operator nodes return the logical operator value based on the values of its children. Expression nodes return values based upon the particular expression the represent i.e. (X < 5)
      Returns:
      true or false.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • main

      public static void main(String[] args)
      Testing main arguement
      Parameters:
      args -
    • testOperatorNodes

      public static void testOperatorNodes(Operator opNode)