|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance | +--de.tuberlin.cs.cis.ocl.eval.instance.OclAnyInstance | +--de.tuberlin.cs.cis.ocl.eval.instance.RealInstance
Represents an instance of the OCL type Real.
Constructor Summary | |
RealInstance(double number)
Constructs an instance of the OCL type Real via a Java double . |
|
RealInstance(java.lang.Double number)
Constructs an instance of the OCL type Real via a Java Double . |
Method Summary | |
OclReal |
abs()
Results in the absolute value of this instance. |
OclReal |
division(OclReal r2)
Represents the operation '/'. |
static double |
doubleValue(OclReal r2)
Determines the Java double representation of an
OclReal value. |
boolean |
equals(java.lang.Object o)
|
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 class de.tuberlin.cs.cis.ocl.eval.instance.OclAnyInstance |
eq, neq, oclAsType, oclInState, oclIsKindOf, oclIsNew, oclIsTypeOf |
Methods inherited from class de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance |
getRepresentation, getRuntimeType, getValue, hashCode, invoke, navigate, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.tuberlin.cs.cis.ocl.type.reflect.OclAny |
eq, neq, oclAsType, oclInState, oclIsKindOf, oclIsNew, oclIsTypeOf |
Constructor Detail |
public RealInstance(java.lang.Double number)
Double
.
public RealInstance(double number)
double
.
Method Detail |
public static double doubleValue(OclReal r2)
double
representation of an
OclReal
value.
r2
- an OclReal
value
double
representation of the
specified OCL Real value.public OclReal plus(OclReal r2)
OclReal
plus
in interface OclReal
r2
- an instance of Real (!= null).
public OclReal minus(OclReal r2)
OclReal
minus
in interface OclReal
r2
- an instance of Real (!= null).
public OclReal multiplication(OclReal r2)
OclReal
multiplication
in interface OclReal
r2
- an instance of Real (!= null).
public OclReal negation()
OclReal
negation
in interface OclReal
public OclReal division(OclReal r2)
OclReal
division
in interface OclReal
r2
- an instance of Real (!= null).
public OclReal abs()
OclReal
abs
in interface OclReal
public OclInteger floor()
OclReal
floor
in interface OclReal
public OclInteger round()
OclReal
round
in interface OclReal
public OclReal max(OclReal r2)
OclReal
max
in interface OclReal
r2
- an instance of Real (!= null)
public OclReal min(OclReal r2)
OclReal
min
in interface OclReal
r2
- an instance of Real (!= null)
public OclBoolean less(OclReal r2)
OclReal
less
in interface OclReal
r2
- an instance of Real (!= null)
public OclBoolean more(OclReal r2)
OclReal
more
in interface OclReal
r2
- an instance of Real (!= null)
public OclBoolean lessOrEqual(OclReal r2)
OclReal
lessOrEqual
in interface OclReal
r2
- an instance of Real (!= null)
public OclBoolean moreOrEqual(OclReal r2)
OclReal
moreOrEqual
in interface OclReal
r2
- an instance of Real (!= null)
public boolean equals(java.lang.Object o)
equals
in class OclAnyInstance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |