Dresden OCL Toolkit

tudresden.ocl.lib
Interface OclComparable

All Superinterfaces:
Cloneable, OclRoot
All Known Implementing Classes:
OclReal

public interface OclComparable
extends OclRoot

This interface is implemented by classes whose instances can be compared.

Author:
Frank Finger
See Also:
OclReal

Method Summary
 OclBoolean isGreaterEqual(OclComparable c)
           
 OclBoolean isGreaterThan(OclComparable c)
           
 OclBoolean isLessEqual(OclComparable c)
           
 OclBoolean isLessThan(OclComparable c)
           
 
Methods inherited from interface tudresden.ocl.lib.OclRoot
getFeature, getFeatureAsCollection, getUndefinedReason, isEqualTo, isNotEqualTo, isUndefined
 

Method Detail

isLessThan

public OclBoolean isLessThan(OclComparable c)
Returns:
an OclBoolean representing true if the OclComparable whos method is called is less than the OclComparable given as parameter, an OclBoolean representing false otherwise
Throws:
OclClassCastException - if the type of the parameter prevents it from being compared to this object

isGreaterThan

public OclBoolean isGreaterThan(OclComparable c)
Returns:
an OclBoolean representing true if the OclComparable whos method is called is greater than the OclComparable given as parameter, an OclBoolean representing false otherwise
Throws:
OclClassCastException - if the type of the parameter prevents it from being compared to this object

isLessEqual

public OclBoolean isLessEqual(OclComparable c)
Returns:
an OclBoolean representing true if the OclComparable whos method is called is less than or equal to the OclComparable given as parameter, an OclBoolean representing false otherwise
Throws:
OclClassCastException - if the type of the parameter prevents it from being compared to this object

isGreaterEqual

public OclBoolean isGreaterEqual(OclComparable c)
Returns:
an OclBoolean representing true if the OclComparable whos method is called is greater than or equal to the OclComparable given as parameter, an OclBoolean representing false otherwise
Throws:
OclClassCastException - if the type of the parameter prevents it from being compared to this object

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.