Class: GECS::Experiment

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#depVarsObject

Returns the value of attribute depVars

Returns:

  • (Object)

    the current value of depVars



179
180
181
# File 'lib/GECS.rb', line 179

def depVars
  @depVars
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



179
180
181
# File 'lib/GECS.rb', line 179

def description
  @description
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



179
180
181
# File 'lib/GECS.rb', line 179

def id
  @id
end

#indVarsObject

Returns the value of attribute indVars

Returns:

  • (Object)

    the current value of indVars



179
180
181
# File 'lib/GECS.rb', line 179

def indVars
  @indVars
end

Instance Method Details

#to_sObject



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