source: trunk/grails-app/domain/dbnp/studycapturing/Protocol.groovy @ 247

Last change on this file since 247 was 247, checked in by duh, 9 years ago
  • set keyword expansion
  • Property svn:keywords set to Author Rev Date
File size: 891 bytes
Line 
1package dbnp.studycapturing
2
3import dbnp.data.Term
4
5/**
6 * Class describing the available protocols in the database, and their respective protocol parameters
7 * Concrete instances of protocol application (and parameter values) should be stored as ProtocolInstance
8 * For the moment, there is one global Protocol store. From user experience, it should become clear if this store
9 * has to remain global or should be bound to specific templates, users, user groups or even studies.
10 *
11 * Revision information:
12 * $Rev: 247 $
13 * $Author: duh $
14 * $Date: 2010-03-08 17:29:14 +0000 (ma, 08 mrt 2010) $
15 */
16class Protocol implements Serializable {
17    String name
18    Term   reference
19   
20    static hasMany = [parameters : ProtocolParameter, compounds: Compound]
21    static constraints = {
22        reference(nullable: true, blank: true)
23    }
24
25        /**
26         * overloaded toString method
27         * @return String
28         */
29        def String toString() {
30                return this.name;
31        }
32}
Note: See TracBrowser for help on using the repository browser.