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
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
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.