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

Last change on this file since 224 was 209, checked in by duh, 10 years ago
  • added events, eventDescriptions, etc
  • Property svn:keywords set to Rev Date Author
File size: 802 bytes
RevLine 
[81]1package dbnp.studycapturing
2
[106]3import dbnp.data.Term
4
[84]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.
[189]9 *
10 * Revision information:
11 * $Rev: 209 $
12 * $Author: keesvb $
13 * $Date: 2010-02-22 17:35:37 +0000 (ma, 22 feb 2010) $
[84]14 */
[189]15class EventDescription implements Serializable {
[186]16        String name
17        String description
18        Term classification
19        Protocol protocol
20        boolean isSamplingEvent
[81]21
[186]22        static constraints = {
[209]23                name(nullable: false, blank: false)
24                description(nullable: false, blank: false)
[189]25                classification(nullable: true, blank: true)
[209]26                protocol(nullable: true, blank: true)
[186]27        }
[209]28
29        def String toString() {
30                return name
31        }
32}
Note: See TracBrowser for help on using the repository browser.