Class: Rafflesia::SimulationGromacsRunStageData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsRunStageData
- 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
-
#command ⇒ Object
Returns the value of attribute command.
-
#is_executed ⇒ Object
Returns the value of attribute is_executed.
-
#is_runnable ⇒ Object
Returns the value of attribute is_runnable.
-
#materialized_input_count ⇒ Object
Returns the value of attribute materialized_input_count.
-
#materialized_inputs ⇒ Object
Returns the value of attribute materialized_inputs.
-
#missing_output_count ⇒ Object
Returns the value of attribute missing_output_count.
-
#output_count ⇒ Object
Returns the value of attribute output_count.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#outputs ⇒ Object
Returns the value of attribute outputs.
-
#preflight ⇒ Object
Returns the value of attribute preflight.
-
#requested_stage_index ⇒ Object
Returns the value of attribute requested_stage_index.
-
#runtime ⇒ Object
Returns the value of attribute runtime.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#stage ⇒ Object
Returns the value of attribute stage.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
-
#unmaterialized_input_count ⇒ Object
Returns the value of attribute unmaterialized_input_count.
-
#working_dir ⇒ Object
Returns the value of attribute working_dir.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsRunStageData
constructor
A new instance of SimulationGromacsRunStageData.
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
#command ⇒ Object
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_executed ⇒ Object
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_runnable ⇒ Object
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_count ⇒ Object
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_inputs ⇒ Object
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_count ⇒ Object
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_count ⇒ Object
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_dir ⇒ Object
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 |
#outputs ⇒ Object
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 |
#preflight ⇒ Object
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_index ⇒ Object
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 |
#runtime ⇒ Object
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_version ⇒ Object
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 |
#stage ⇒ Object
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 |
#stderr ⇒ Object
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 |
#stdout ⇒ Object
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_count ⇒ Object
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_dir ⇒ Object
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 |