source: trunk/grails-app/domain/dbnp/studycapturing/ProtocolParameter.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: 667 bytes
Line 
1package dbnp.studycapturing
2
3import dbnp.data.Term
4
5/**
6 * The ProtocolParameter class describes a protocol parameter, and belongs to the Protocol class.
7 * Actual values of this parameter are stored in the corresponding field of the ProtocolInstance class.
8 */
9class ProtocolParameter {
10
11    String name
12    ProtocolParameterType type
13    String unit
14    String description
15    Term reference
16
17    static hasMany = [listEntries : ParameterStringListItem ] // to store the entries to choose from when the type is 'item from predefined list'
18
19    static constraints = {
20            unit(nullable: true)
21            reference(nullable: true)
22            description(nullable: true)
23    }
24}
Note: See TracBrowser for help on using the repository browser.