Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Operation '>' and '<' not recognized for type EDate(I can compare date....)
Operation '>' and '<' not recognized for type EDate [message #1791522] Sun, 01 July 2018 21:23 Go to next message
Youcef Choufa is currently offline Youcef ChoufaFriend
Messages: 1
Registered: July 2018
Junior Member
I receive an error while trying to compare two dates...I still don't understand why?

here is the OCL statement and error:
self.dateDebutLocation < self.dateFinLocation
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?
Re: Operation '>' and '<' not recognized for type EDate [message #1792026 is a reply to message #1791522] Tue, 10 July 2018 08:40 Go to previous message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 431
Registered: July 2009
Senior Member
Hi, I'm afraid I can't answer this question and it's not in the right forum, this is an OCL related question, you'll more likely to get a relevant answer using the OCL forum:

Cheers, news and articles on eclipse and eclipse modeling.
Previous Topic:JUnit test cases for ecore models
Next Topic:Default documentation of Ecore diagrams
Goto Forum:

Current Time: Sat Sep 19 05:51:37 GMT 2020

Powered by FUDForum. Page generated in 0.01476 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top