org.eclipse.ocl.examples.library.numeric
Class NumericRoundOperation

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.library.AbstractFeature
      extended by org.eclipse.ocl.examples.domain.library.AbstractOperation
          extended by org.eclipse.ocl.examples.domain.library.AbstractUnaryOperation
              extended by org.eclipse.ocl.examples.library.numeric.AbstractNumericUnaryOperation
                  extended by org.eclipse.ocl.examples.library.numeric.NumericRoundOperation
All Implemented Interfaces:
LibraryFeature, LibraryOperation, LibraryUnaryOperation

public class NumericRoundOperation
extends AbstractNumericUnaryOperation

RoundOperation realises the round() library operation.


Field Summary
static NumericRoundOperation INSTANCE
           
 
Constructor Summary
NumericRoundOperation()
           
 
Method Summary
protected  Value evaluateInteger(IntegerValue left)
           
protected  Value evaluateReal(RealValue left)
           
 
Methods inherited from class org.eclipse.ocl.examples.library.numeric.AbstractNumericUnaryOperation
evaluate, evaluateNumeric, evaluateUnlimited
 
Methods inherited from class org.eclipse.ocl.examples.domain.library.AbstractUnaryOperation
evaluate
 
Methods inherited from class org.eclipse.ocl.examples.domain.library.AbstractOperation
argumentsMayBeInvalid
 
Methods inherited from class org.eclipse.ocl.examples.domain.library.AbstractFeature
getLibraryValidator, getValidator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.domain.library.LibraryOperation
argumentsMayBeInvalid
 
Methods inherited from interface org.eclipse.ocl.examples.domain.library.LibraryFeature
getValidator
 

Field Detail

INSTANCE

public static final NumericRoundOperation INSTANCE
Constructor Detail

NumericRoundOperation

public NumericRoundOperation()
Method Detail

evaluateInteger

protected Value evaluateInteger(IntegerValue left)
Overrides:
evaluateInteger in class AbstractNumericUnaryOperation

evaluateReal

protected Value evaluateReal(RealValue left)
                      throws InvalidValueException
Overrides:
evaluateReal in class AbstractNumericUnaryOperation
Throws:
InvalidValueException