org.eclipse.ocl.examples.library.numeric
Class NumericPlusOperation
java.lang.Object
org.eclipse.ocl.examples.domain.library.AbstractFeature
org.eclipse.ocl.examples.domain.library.AbstractOperation
org.eclipse.ocl.examples.domain.library.AbstractBinaryOperation
org.eclipse.ocl.examples.library.numeric.AbstractNumericBinaryOperation
org.eclipse.ocl.examples.library.numeric.NumericPlusOperation
- All Implemented Interfaces:
- LibraryBinaryOperation, LibraryFeature, LibraryOperation
Deprecated.
@Deprecated
public class NumericPlusOperation
- extends AbstractNumericBinaryOperation
PlusOperation realises the +() library operation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final NumericPlusOperation INSTANCE
- Deprecated.
NumericPlusOperation
public NumericPlusOperation()
- Deprecated.
evaluateInteger
protected IntegerValue evaluateInteger(DomainEvaluator evaluator,
IntegerValue left,
IntegerValue right)
throws InvalidValueException
- Deprecated.
- Description copied from class:
AbstractNumericBinaryOperation
- Evaluate an operation for which both left and right are Integer.
- Specified by:
evaluateInteger
in class AbstractNumericBinaryOperation
left
- argumentright
- argument
- Returns:
- result
- Throws:
InvalidValueException
evaluateReal
protected RealValue evaluateReal(DomainEvaluator evaluator,
RealValue left,
RealValue right)
throws InvalidValueException
- Deprecated.
- Description copied from class:
AbstractNumericBinaryOperation
- Evaluate an operation for which both left and right are Real.
- Overrides:
evaluateReal
in class AbstractNumericBinaryOperation
left
- argumentright
- argument
- Returns:
- result
- Throws:
InvalidValueException