Class: Rafflesia::SimulationGromacsRunStageRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  gromacs_binary_path: :gromacs_binary_path,
  input_object_ids: :input_object_ids,
  max_bytes: :max_bytes,
  max_log_bytes: :max_log_bytes,
  output_dir: :output_dir,
  preflight_object_id: :preflight_object_id,
  root_object_ids: :root_object_ids,
  script_object_id: :script_object_id,
  stage_index: :stage_index,
  stdin: :stdin,
  timeout_ms: :timeout_ms
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsRunStageRequest

Returns a new instance of SimulationGromacsRunStageRequest.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 35

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @gromacs_binary_path = hash[:gromacs_binary_path]
  @input_object_ids = hash[:input_object_ids] || {}
  @max_bytes = hash[:max_bytes]
  @max_log_bytes = hash[:max_log_bytes]
  @output_dir = hash[:output_dir]
  @preflight_object_id = hash[:preflight_object_id]
  @root_object_ids = (hash[:root_object_ids] || [])
  @script_object_id = hash[:script_object_id]
  @stage_index = hash[:stage_index]
  @stdin = hash[:stdin]
  @timeout_ms = hash[:timeout_ms]
end

Instance Attribute Details

#gromacs_binary_pathObject

Returns the value of attribute gromacs_binary_path.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def gromacs_binary_path
  @gromacs_binary_path
end

#input_object_idsObject

Returns the value of attribute input_object_ids.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def input_object_ids
  @input_object_ids
end

#max_bytesObject

Returns the value of attribute max_bytes.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def max_bytes
  @max_bytes
end

#max_log_bytesObject

Returns the value of attribute max_log_bytes.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def max_log_bytes
  @max_log_bytes
end

#output_dirObject

Returns the value of attribute output_dir.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def output_dir
  @output_dir
end

#preflight_object_idObject

Returns the value of attribute preflight_object_id.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def preflight_object_id
  @preflight_object_id
end

#root_object_idsObject

Returns the value of attribute root_object_ids.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def root_object_ids
  @root_object_ids
end

#script_object_idObject

Returns the value of attribute script_object_id.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def script_object_id
  @script_object_id
end

#stage_indexObject

Returns the value of attribute stage_index.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def stage_index
  @stage_index
end

#stdinObject

Returns the value of attribute stdin.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def stdin
  @stdin
end

#timeout_msObject

Returns the value of attribute timeout_ms.



22
23
24
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22

def timeout_ms
  @timeout_ms
end