Class CipExpression.MathOp
- java.lang.Object
-
- com.automation_pros.odva.cip.path.CipExpression
-
- com.automation_pros.odva.cip.path.CipExpression.BinaryOp
-
- com.automation_pros.odva.cip.path.CipExpression.MathOp
-
- Direct Known Subclasses:
CipExpression.AddOp
,CipExpression.DivideOp
,CipExpression.ModulusOp
,CipExpression.MultiplyOp
,CipExpression.SubtractOp
- Enclosing class:
- CipExpression
public abstract static class CipExpression.MathOp extends CipExpression.BinaryOp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.path.CipExpression
CipExpression.AddOp, CipExpression.AndOp, CipExpression.BinaryOp, CipExpression.BitwiseOp, CipExpression.CompareOp, CipExpression.Constant, CipExpression.DivideOp, CipExpression.InvertOp, CipExpression.LogicalAndOp, CipExpression.LogicalOrOp, CipExpression.MathOp, CipExpression.ModulusOp, CipExpression.MultiplyOp, CipExpression.NotOp, CipExpression.OrOp, CipExpression.SubtractOp, CipExpression.TrinaryOp, CipExpression.UnaryOp, CipExpression.Variable, CipExpression.XorOp
-
-
Field Summary
-
Fields inherited from class com.automation_pros.odva.cip.path.CipExpression.BinaryOp
left, right
-
-
Constructor Summary
Constructors Constructor Description MathOp(java.util.Deque<CipExpression> stack)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.math.BigInteger
computeBigInt(java.math.BigInteger left, java.math.BigInteger right)
protected boolean
computeBoolean(boolean left, boolean right)
protected abstract double
computeReal(double left, double right)
BaseDataType<?>
execute(DataContext ctx)
-
Methods inherited from class com.automation_pros.odva.cip.path.CipExpression.BinaryOp
getVariablePaths, prefixedString, toString, useReal, useSigned
-
-
-
-
Constructor Detail
-
MathOp
public MathOp(java.util.Deque<CipExpression> stack)
-
-
Method Detail
-
computeReal
protected abstract double computeReal(double left, double right)
-
computeBoolean
protected boolean computeBoolean(boolean left, boolean right)
-
computeBigInt
protected abstract java.math.BigInteger computeBigInt(java.math.BigInteger left, java.math.BigInteger right)
-
execute
public BaseDataType<?> execute(DataContext ctx)
- Specified by:
execute
in classCipExpression
-
-