: Public <<dataType>> Class
| Created: |
19/05/2011 14:51:14 |
| Modified: |
16/10/2012 11:13:07 |
|
Project: |
|
| Author: |
karjoh |
| Version: |
1.0 |
| Phase: |
1.0 |
| Status: |
Proposed |
| Complexity: |
Easy |
| Difficulty: |
|
| Priority: |
|
| Multiplicity: |
|
Advanced: |
|
| UUID: |
{8B430FD5-A15A-4113-B03F-C9562163AA45} |
| Appears In: |
Buildings - Base: Data Types |
-- 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:
| Alias: |
|
| Initial: |
|
| Stereotype: |
<<voidable>> |
| Ordered: |
|
| Range: |
Range:0 to 1 |
| Transient: |
False |
| Derived: |
False |
| IsID: |
False |
|
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:
| Alias: |
|
| Initial: |
|
| Stereotype: |
<<voidable>> |
| Ordered: |
|
| Range: |
Range:0 to 1 |
| Transient: |
False |
| Derived: |
False |
| IsID: |
False |
|
Notes:
|
-- Name --<br/>Beginning<br/><br/>-- Definition --<br/>Date and time when the event begun.<br/><br/>
|
|
Public DateTime end
|
Details:
| Alias: |
|
| Initial: |
|
| Stereotype: |
<<voidable>> |
| Ordered: |
|
| Range: |
Range:0 to 1 |
| Transient: |
False |
| Derived: |
False |
| IsID: |
False |
|
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/>
|