Operation '>' and '<' not recognized for type EDate [message #1791522] |
Sun, 01 July 2018 17:23  |
Eclipse User |
|
|
|
I receive an error while trying to compare two dates...I still don't understand why?
here is the OCL statement and error:
Evaluating:
self.dateDebutLocation < self.dateFinLocation
Results:
Cannot find operation (<(EDate)) for the type (EDate)
here is the attribute creation:
class Reservation
{
invariant consistanceDate:
self.dateDebutLocation < self.dateFinLocation;
invariant existanceDepot:
self.exige.montant > 0.0 and self.exige->notEmpty();
property reserve : modeleVoiture;
property exige : Depot;
attribute dateDebutLocation : ecore::EDate;
attribute dateFinLocation : ecore::EDate;
attribute dateReservation : ecore::EDate[?];
}
Variable names are in french but regardless it is the same...what is the problem?
|
|
|
|
Powered by
FUDForum. Page generated in 0.29432 seconds