: Public <<dataType>> Class
Created: 19/05/2011 14:51:14
Modified: 16/10/2012 11:13:07
Project:
Advanced:
-- Name --<br/>Date of event<br/><br/>-- Definition --<br/>This data type includes the different possible ways to define the date of an event.<br/><br/>
Attribute
Public DateTime
  anyPoint
Details:
Notes: -- Name --<br/>Any point<br/><br/>-- Definition --<br/>A date and time of any point of the event, between its beginning and its end.<br/><br/>
Constraints:
  atleast one date
::/*At least, one of the attributes beginning, end or anyPoint shall be supllied*/
Public DateTime
  beginning
Details:
Notes: -- Name --<br/>Beginning<br/><br/>-- Definition --<br/>Date and time when the event begun.<br/><br/>
Public DateTime
  end
Details:
Notes: -- Name --<br/>End<br/><br/>-- Definition --<br/>Date and time when the event ended.<br/><br/>
Constraint Type Status
atLeastOneEvent OCL Approved
Details:
/*At least, one of the attributes beginning, end or anyPoint shall be supplied.*/<br/>inv: dateOfEvent-#gt;notEmpty()<br/>
beginning is before anyPoint is before end OCL Approved
Details:
inv: beginning #lt;= anyPoint and anyPoint #lt;= end and beginning #lt;= end<br/>