RE: Time in OCL
You could introduce one or more classes to model the concept of time, just
as you introduce classes for other concepts in your problem domain.
For example, a class Time might offer a query time(), which models the idea
of asking the current time. Of course, the query time() won't have an OCL
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
3D: Domain-Driven Development
Consulting, Training, Mentoring
"By itself, logic says nothing about anything ..."
>[mailto:email@example.com] On Behalf Of Irfan Hamid
>Sent: 28 October 2005 13:00
>Subject: Time in OCL
>Is there a way to use time expressions in OCL? Like in the
>can I use an expression such as
>time@pre or time( )@pre
>I need this to be able to express real-time constraints on operations.
>Department of Computer Science and Networks
>Ecole Nationale Superieure des Telecommunications
>46, rue Barrault, Paris 75013
>Phone: +33 (0)1 45 81 75 79
>To remove yourself from this list please mail
>with a message containing the word "unsubscribe".
Received on Fri Oct 28 16:12:13 2005