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



186
187
188
# File 'lib/GECS.rb', line 186

def depVars
  @depVars
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



186
187
188
# File 'lib/GECS.rb', line 186

def description
  @description
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



186
187
188
# File 'lib/GECS.rb', line 186

def id
  @id
end

#indVarsObject

Returns the value of attribute indVars

Returns:

  • (Object)

    the current value of indVars



186
187
188
# File 'lib/GECS.rb', line 186

def indVars
  @indVars
end

Instance Method Details

#to_sObject



192
193
194
195
196
# File 'lib/GECS.rb', line 192

def to_s
  "Experiment id " + id.to_s + ":  " + description.to_s + "\n" +
  "  Independent variables:  " + indVars.to_s + "\n" +
  "  Dependent variables:    " + depVars.to_s
end