|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents and identifies the OCL 1.5 type Real. It is used by the context checker to reflect operations of and to identify the type within the OCL-context. The names of the operations had to be adapted to java conform method names (therefore they must be remapped to the ocl names to be compareable). Each instance of this interface is handled as an OCL instance of the type Real during the evaluation process. Its methods are used to describe the predefined properties of the type. For a complete description of the type and its properties (to be specific for this class and its methods) refer to the type description of OCL 1.5.
Method Summary | |
OclReal |
abs()
Results in the absolute value of this instance. |
OclReal |
division(OclReal r2)
Represents the operation '/'. |
OclInteger |
floor()
Results in the largest integer which is less than or equal to r. |
OclBoolean |
less(OclReal r2)
Returns True if this instance is less than r2. |
OclBoolean |
lessOrEqual(OclReal r2)
Returns True if this instance is less than or equal than r2. |
OclReal |
max(OclReal r2)
Results in the maximum of this instance and r2. |
OclReal |
min(OclReal r2)
Results in the minimum of this instance and r2. |
OclReal |
minus(OclReal r2)
Represents the operation '-'. |
OclBoolean |
more(OclReal r2)
Returns True if this instance is greater than r2. |
OclBoolean |
moreOrEqual(OclReal r2)
Returns True if this instance is greater or equal than r2. |
OclReal |
multiplication(OclReal r2)
Represents the operation '*'. |
OclReal |
negation()
Represents the prefix operation '-'. |
OclReal |
plus(OclReal r2)
Represents the operation '+'. |
OclInteger |
round()
Results in the integer that is closest to r. |
Methods inherited from interface de.tuberlin.cs.cis.ocl.type.reflect.OclAny |
eq, neq, oclAsType, oclInState, oclIsKindOf, oclIsNew, oclIsTypeOf |
Method Detail |
public OclReal plus(OclReal r2)
r2
- an instance of Real (!= null).
public OclReal minus(OclReal r2)
r2
- an instance of Real (!= null).
public OclReal multiplication(OclReal r2)
r2
- an instance of Real (!= null).
public OclReal negation()
public OclReal division(OclReal r2)
r2
- an instance of Real (!= null).
UndefinedValueException
- can be thrown if r2 is zero.public OclReal abs()
public OclInteger floor()
public OclInteger round()
public OclReal max(OclReal r2)
r2
- an instance of Real (!= null)
public OclReal min(OclReal r2)
r2
- an instance of Real (!= null)
public OclBoolean less(OclReal r2)
r2
- an instance of Real (!= null)
public OclBoolean more(OclReal r2)
r2
- an instance of Real (!= null)
public OclBoolean lessOrEqual(OclReal r2)
r2
- an instance of Real (!= null)
public OclBoolean moreOrEqual(OclReal r2)
r2
- an instance of Real (!= null)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |