|
Dresden OCL Toolkit | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttudresden.ocl.lib.OclAny
tudresden.ocl.lib.OclReal
This class represents the OCL basic type Real. To implement the the abstract
mathematical definition of the OCL specification, this class uses
double precision values to hold real numbers.
| Field Summary | |
private double |
dValue
|
| Fields inherited from class tudresden.ocl.lib.OclAny |
|
| Constructor Summary | |
OclReal(double d)
Usually it's preferable to use not this constructor but the factory methods of the class Ocl. |
|
OclReal(float f)
Usually it's preferable to use not this constructor but the factory methods of the class Ocl. |
|
OclReal(int dummy,
String reason)
constructor for undefined OclReal value |
|
| Method Summary | |
OclReal |
abs()
|
OclAddable |
add(OclAddable a)
This method is only invoked in case of an error: OclReal's add must be called only with an OclReal parameter. |
OclReal |
add(OclReal or)
|
int |
compareTo(Object o)
|
OclMultiplyable |
divide(OclMultiplyable m)
This method is only invoked in case of an error: OclReal's divide must be called only with an OclReal parameter. |
OclReal |
divide(OclReal or)
|
OclInteger |
floor()
|
double |
getDouble()
|
OclRoot |
getFeature(String name)
This method returns an undefined value. |
OclBoolean |
isEqualTo(Object o)
Two OclReals are equal if their long values are
equal and non of them is undefined. |
OclBoolean |
isGreaterEqual(OclComparable c)
|
OclBoolean |
isGreaterThan(OclComparable c)
|
OclBoolean |
isLessEqual(OclComparable c)
|
OclBoolean |
isLessThan(OclComparable c)
|
OclBoolean |
isNotEqualTo(Object o)
Returns the negated result of isEqualTo. |
OclReal |
max(OclReal r)
|
OclReal |
min(OclReal r)
|
OclMultiplyable |
multiply(OclMultiplyable m)
This method is only invoked in case of an error: OclReal's multiply must be called only with an OclReal parameter. |
OclReal |
multiply(OclReal or)
|
OclReal |
negative()
|
OclType |
oclType()
This property is no longer present in OCL 1.3. |
OclInteger |
round()
|
OclReal |
subtract(OclReal or)
|
OclSubtractable |
subtract(OclSubtractable s)
This method is only invoked in case of an error: OclReal's subtract must be called only with an OclReal parameter. |
private OclReal |
toOclReal(Object o,
String methodname)
|
| Methods inherited from class tudresden.ocl.lib.OclAny |
getFeatureAsCollection, getUndefinedReason, isUndefined, oclAsType, oclInState, oclIsKindOf, oclIsTypeOf |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface tudresden.ocl.lib.OclRoot |
getFeatureAsCollection, getUndefinedReason, isUndefined |
| Field Detail |
private double dValue
| Constructor Detail |
public OclReal(double d)
Ocl.getOclRepresentationFor(double d)public OclReal(float f)
Ocl.getOclRepresentationFor(float f)
public OclReal(int dummy,
String reason)
| Method Detail |
public OclBoolean isEqualTo(Object o)
long values are
equal and non of them is undefined.
isEqualTo in interface OclRootisEqualTo in class OclAnypublic OclBoolean isNotEqualTo(Object o)
OclRootisEqualTo.
isNotEqualTo in interface OclRootisNotEqualTo in class OclAnyisEqualTo(Object o)public OclAddable add(OclAddable a)
add in interface OclAddableadd(OclReal or)public OclReal add(OclReal or)
public OclSubtractable subtract(OclSubtractable s)
subtract in interface OclSubtractablesubtract(OclReal or)public OclReal negative()
public OclReal subtract(OclReal or)
public OclMultiplyable multiply(OclMultiplyable m)
multiply in interface OclMultiplyablemultiply(OclReal or)public OclReal multiply(OclReal or)
public OclMultiplyable divide(OclMultiplyable m)
divide in interface OclMultiplyabledivide(OclReal or)public OclReal divide(OclReal or)
public OclReal abs()
public OclInteger floor()
public OclInteger round()
public OclReal max(OclReal r)
public OclReal min(OclReal r)
public int compareTo(Object o)
compareTo in interface ComparableOclException - if one of the values is undefinedComparablepublic OclBoolean isLessThan(OclComparable c)
isLessThan in interface OclComparablepublic OclBoolean isGreaterThan(OclComparable c)
isGreaterThan in interface OclComparablepublic OclBoolean isLessEqual(OclComparable c)
isLessEqual in interface OclComparablepublic OclBoolean isGreaterEqual(OclComparable c)
isGreaterEqual in interface OclComparablepublic double getDouble()
public OclRoot getFeature(String name)
getFeature in interface OclRootgetFeature in class OclAny
private OclReal toOclReal(Object o,
String methodname)
public OclType oclType()
oclType in class OclAny
|
Dresden OCL Toolkit | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||