Class: GECS::Experiment
- Inherits:
-
Struct
- Object
- Struct
- GECS::Experiment
- Defined in:
- lib/GECS.rb
Overview
Normative struct definition.
- id
-
Primary key.
- indVars
-
Array of factor identifiers (enum style).
- depVars
-
Array of output variable identifiers (enum style).
- description
-
Everything else as verbose text.
Instance Attribute Summary collapse
-
#depVars ⇒ Object
Returns the value of attribute depVars.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#indVars ⇒ Object
Returns the value of attribute indVars.
Instance Method Summary collapse
Instance Attribute Details
#depVars ⇒ Object
Returns the value of attribute depVars
179 180 181 |
# File 'lib/GECS.rb', line 179 def depVars @depVars end |
#description ⇒ Object
Returns the value of attribute description
179 180 181 |
# File 'lib/GECS.rb', line 179 def description @description end |
#id ⇒ Object
Returns the value of attribute id
179 180 181 |
# File 'lib/GECS.rb', line 179 def id @id end |
#indVars ⇒ Object
Returns the value of attribute indVars
179 180 181 |
# File 'lib/GECS.rb', line 179 def indVars @indVars end |
Instance Method Details
#to_s ⇒ Object
185 186 187 188 189 |
# File 'lib/GECS.rb', line 185 def to_s "Experiment id " + id.to_s + ": " + description.to_s + "\n" + " Independent variables: " + indVars.to_s + "\n" + " Dependent variables: " + depVars.to_s end |