Class: Rafflesia::SimulationGromacsRunStageData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  command: :command,
  is_executed: :is_executed,
  is_runnable: :is_runnable,
  materialized_input_count: :materialized_input_count,
  materialized_inputs: :materialized_inputs,
  missing_output_count: :missing_output_count,
  output_count: :output_count,
  output_dir: :output_dir,
  outputs: :outputs,
  preflight: :preflight,
  requested_stage_index: :requested_stage_index,
  runtime: :runtime,
  schema_version: :schema_version,
  stage: :stage,
  stderr: :stderr,
  stdout: :stdout,
  unmaterialized_input_count: :unmaterialized_input_count,
  working_dir: :working_dir
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsRunStageData

Returns a new instance of SimulationGromacsRunStageData.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @command = hash[:command] ? Rafflesia::SimulationGromacsStageCommandRun.new(hash[:command]) : nil
  @is_executed = hash[:is_executed]
  @is_runnable = hash[:is_runnable]
  @materialized_input_count = hash[:materialized_input_count]
  @materialized_inputs = (hash[:materialized_inputs] || []).map { |item| item ? Rafflesia::SimulationGromacsStageMaterializedInput.new(item) : nil }
  @missing_output_count = hash[:missing_output_count]
  @output_count = hash[:output_count]
  @output_dir = hash[:output_dir]
  @outputs = (hash[:outputs] || []).map { |item| item ? Rafflesia::SimulationGromacsStageOutputObject.new(item) : nil }
  @preflight = hash[:preflight] ? Rafflesia::SimulationGromacsPreflightData.new(hash[:preflight]) : nil
  @requested_stage_index = hash[:requested_stage_index]
  @runtime = hash[:runtime] ? Rafflesia::SimulationRuntimeGromacsProbe.new(hash[:runtime]) : nil
  @schema_version = hash[:schema_version]
  @stage = hash[:stage] ? Rafflesia::SimulationGromacsPreflightStage.new(hash[:stage]) : nil
  @stderr = hash[:stderr] ? Rafflesia::SimulationGromacsStageLog.new(hash[:stderr]) : nil
  @stdout = hash[:stdout] ? Rafflesia::SimulationGromacsStageLog.new(hash[:stdout]) : nil
  @unmaterialized_input_count = hash[:unmaterialized_input_count]
  @working_dir = hash[:working_dir]
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def command
  @command
end

#is_executedObject

Returns the value of attribute is_executed.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def is_executed
  @is_executed
end

#is_runnableObject

Returns the value of attribute is_runnable.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def is_runnable
  @is_runnable
end

#materialized_input_countObject

Returns the value of attribute materialized_input_count.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def materialized_input_count
  @materialized_input_count
end

#materialized_inputsObject

Returns the value of attribute materialized_inputs.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def materialized_inputs
  @materialized_inputs
end

#missing_output_countObject

Returns the value of attribute missing_output_count.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def missing_output_count
  @missing_output_count
end

#output_countObject

Returns the value of attribute output_count.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def output_count
  @output_count
end

#output_dirObject

Returns the value of attribute output_dir.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def output_dir
  @output_dir
end

#outputsObject

Returns the value of attribute outputs.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def outputs
  @outputs
end

#preflightObject

Returns the value of attribute preflight.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def preflight
  @preflight
end

#requested_stage_indexObject

Returns the value of attribute requested_stage_index.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def requested_stage_index
  @requested_stage_index
end

#runtimeObject

Returns the value of attribute runtime.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def runtime
  @runtime
end

#schema_versionObject

Returns the value of attribute schema_version.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def schema_version
  @schema_version
end

#stageObject

Returns the value of attribute stage.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def stage
  @stage
end

#stderrObject

Returns the value of attribute stderr.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def stdout
  @stdout
end

#unmaterialized_input_countObject

Returns the value of attribute unmaterialized_input_count.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def unmaterialized_input_count
  @unmaterialized_input_count
end

#working_dirObject

Returns the value of attribute working_dir.



29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_data.rb', line 29

def working_dir
  @working_dir
end