Package hec.model
Class LogicNode
java.lang.Object
hec.model.LogicNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanevaluate(RunTimeStep rts) Abstract Method.static voidTesting main arguementstatic voidtestOperatorNodes(Operator opNode) toString()
-
Constructor Details
-
LogicNode
public LogicNode()
-
-
Method Details
-
evaluate
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
-
main
Testing main arguement- Parameters:
args-
-
testOperatorNodes
-