source: trunk/grails-app/domain/dbnp/studycapturing/EventDescription.groovy @ 209

Last change on this file since 209 was 209, checked in by duh, 9 years ago
  • added events, eventDescriptions, etc
  • Property svn:keywords set to Rev Date Author
File size: 802 bytes
Line 
1package dbnp.studycapturing
2
3import dbnp.data.Term
4
5/**
6 * Description of an event. Actual events are described by instances of the Event class.
7 * For the moment, EventDescription is not linked to a specific study or user.
8 * This means that the user can add events of all possible event types as defined by the (global) EventDescription collection.
9 *
10 * Revision information:
11 * $Rev: 209 $
12 * $Author: duh $
13 * $Date: 2010-02-22 17:35:37 +0000 (ma, 22 feb 2010) $
14 */
15class EventDescription implements Serializable {
16        String name
17        String description
18        Term classification
19        Protocol protocol
20        boolean isSamplingEvent
21
22        static constraints = {
23                name(nullable: false, blank: false)
24                description(nullable: false, blank: false)
25                classification(nullable: true, blank: true)
26                protocol(nullable: true, blank: true)
27        }
28
29        def String toString() {
30                return name
31        }
32}
Note: See TracBrowser for help on using the repository browser.