Class: ServerScripts::Experiment

Inherits:
Object
  • Object
show all
Defined in:
lib/server_scripts/experiment.rb

Overview

Class that represents an experiment that needs to be conducted. Accepts various parameters that need to be tested and a BatchJob object which it customize depending on the test parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exp_name) ⇒ Experiment

Returns a new instance of Experiment.



11
12
13
# File 'lib/server_scripts/experiment.rb', line 11

def initialize exp_name
  @exp_name = exp_name
end

Instance Attribute Details

#batch_jobObject

Returns the value of attribute batch_job.



6
7
8
# File 'lib/server_scripts/experiment.rb', line 6

def batch_job
  @batch_job
end

#executableObject

Returns the value of attribute executable.



9
10
11
# File 'lib/server_scripts/experiment.rb', line 9

def executable
  @executable
end

#exp_paramsObject

Returns the value of attribute exp_params.



7
8
9
# File 'lib/server_scripts/experiment.rb', line 7

def exp_params
  @exp_params
end

#job_paramsObject

Returns the value of attribute job_params.



8
9
10
# File 'lib/server_scripts/experiment.rb', line 8

def job_params
  @job_params
end