source: trunk/grails-app/domain/dbnp/studycapturing/Event.groovy @ 84

Last change on this file since 84 was 84, checked in by keesvb, 10 years ago

updated domain classes: added comments, carried out some normalization

File size: 587 bytes
Line 
1package dbnp.studycapturing
2
3/**
4 * The Event class describes an actual event, as it has happened to a certain subject. Often, the same event occurs
5 * to multiple subjects at the same time. That is why the actual description of the event is factored out into a more
6 * general EventDescription class. Events that also lead to sample(s) should be instantiated as SamplingEvents.
7 */
8class Event {
9
10    Subject subject
11    EventDescription eventDescription
12    Date startTime
13    Date endTime
14
15    static constraints = {
16    }
17
18    def getDuration() {
19        endTime - startTime
20    }
21}
Note: See TracBrowser for help on using the repository browser.