|
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
tudresden.ocl.lib.OclInteger
This class represents the basic OCL type Integer. The Integer value is
stored in a long
attribute, thus restricting the possible
values. Please note that OclInteger extends OclReal.
All operations on OclIntegers return undefined values if one or more of the operands is undefined.
Field Summary | |
private long |
lValue
|
Fields inherited from class tudresden.ocl.lib.OclReal |
|
Fields inherited from class tudresden.ocl.lib.OclAny |
|
Constructor Summary | |
OclInteger(int i)
Usually it's preferable to use this constructor but the factory methods of the class Ocl. |
|
OclInteger(int dummy,
String reason)
constructor for undefined OclInteger value |
|
OclInteger(long l)
Usually it's preferable to use this constructor but the factory methods of the class Ocl. |
Method Summary | |
OclReal |
abs()
|
OclAddable |
add(OclAddable a)
This method is only invoked in case of an error: OclInteger's add must be called with an OclInteger parameter. |
OclInteger |
add(OclInteger i)
|
OclReal |
add(OclReal i)
|
OclInteger |
div(OclInteger i)
|
OclReal |
divide(OclInteger oi)
|
OclMultiplyable |
divide(OclMultiplyable m)
This method is only invoked in case of an error: OclInteger's divide must be called with an OclInteger parameter. |
boolean |
equals(Object o)
|
double |
getDouble()
|
int |
getInt()
|
long |
getLong()
|
int |
hashCode()
|
OclInteger |
max(OclInteger i)
|
OclInteger |
min(OclInteger i)
|
OclInteger |
mod(OclInteger i)
|
OclInteger |
multiply(OclInteger oi)
|
OclMultiplyable |
multiply(OclMultiplyable m)
This method is only invoked in case of an error: OclInteger's multiply must be called with an OclInteger parameter. |
OclReal |
multiply(OclReal oi)
|
OclReal |
negative()
|
OclBoolean |
oclIsKindOf(OclType type)
This method returns true if the OclType given as parameter is a type of the object whose method is called or a supertype of such a type. |
OclType |
oclType()
This property is no longer present in OCL 1.3. |
OclInteger |
subtract(OclInteger oi)
|
OclSubtractable |
subtract(OclSubtractable s)
This method is only invoked in case of an error: OclInteger's subtract must be called with an OclInteger parameter. |
private OclInteger |
toOclInteger(Object o,
String methodname)
|
String |
toString()
|
Methods inherited from class tudresden.ocl.lib.OclReal |
compareTo, divide, floor, getFeature, isEqualTo, isGreaterEqual, isGreaterThan, isLessEqual, isLessThan, isNotEqualTo, max, min, round, subtract |
Methods inherited from class tudresden.ocl.lib.OclAny |
getFeatureAsCollection, getUndefinedReason, isUndefined, oclAsType, oclInState, oclIsTypeOf |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface tudresden.ocl.lib.OclRoot |
getFeatureAsCollection, getUndefinedReason, isUndefined |
Field Detail |
private long lValue
Constructor Detail |
public OclInteger(int i)
Ocl.getOclRepresentationFor(int i)
public OclInteger(long l)
Ocl.getOclRepresentationFor(long l)
public OclInteger(int dummy, String reason)
Method Detail |
public OclAddable add(OclAddable a)
add
in interface OclAddable
add
in class OclReal
add(OclInteger or)
,
OclReal.add(OclReal r)
public OclInteger add(OclInteger i)
public OclReal add(OclReal i)
add
in class OclReal
public OclSubtractable subtract(OclSubtractable s)
subtract
in interface OclSubtractable
subtract
in class OclReal
subtract(OclInteger or)
,
OclReal.subtract(OclReal r)
public OclInteger subtract(OclInteger oi)
public OclReal negative()
negative
in class OclReal
public OclMultiplyable multiply(OclMultiplyable m)
multiply
in interface OclMultiplyable
multiply
in class OclReal
multiply(OclInteger or)
,
OclReal.multiply(OclReal r)
public OclInteger multiply(OclInteger oi)
public OclReal multiply(OclReal oi)
multiply
in class OclReal
public OclMultiplyable divide(OclMultiplyable m)
divide
in interface OclMultiplyable
divide
in class OclReal
divide(OclInteger or)
,
OclReal.divide(OclReal r)
public OclReal divide(OclInteger oi)
oi
- must not be zero
public OclInteger mod(OclInteger i)
public OclInteger max(OclInteger i)
public OclInteger min(OclInteger i)
public OclInteger div(OclInteger i)
i
- must not be zero
public OclReal abs()
abs
in class OclReal
public int getInt()
int
OclException
- if this is an undefined OclInteger valuepublic long getLong()
long
OclException
- if this is an undefined OclInteger valuepublic double getDouble()
getDouble
in class OclReal
double
OclException
- if this is an undefined OclInteger valueprivate OclInteger toOclInteger(Object o, String methodname)
public String toString()
public boolean equals(Object o)
public int hashCode()
public OclBoolean oclIsKindOf(OclType type)
OclAny
oclIsKindOf
in class OclAny
OclAny.oclIsKindOf(OclType type)
public OclType oclType()
oclType
in class OclReal
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |