Class: Rafflesia::SimulationRuntimeInspectData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationRuntimeInspectData
- Defined in:
- lib/rafflesia/simulations/simulation_runtime_inspect_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ available_backends: :available_backends, backend_count: :backend_count, backends: :backends, default_backend: :default_backend, environment: :environment, format_hints: :format_hints, gromacs: :gromacs, python: :python, requested_engine: :requested_engine, runtime_id: :runtime_id, schema_version: :schema_version, server_build: :server_build, timeout_ms: :timeout_ms, timeout_policy: :timeout_policy }.freeze
Instance Attribute Summary collapse
-
#available_backends ⇒ Object
Returns the value of attribute available_backends.
-
#backend_count ⇒ Object
Returns the value of attribute backend_count.
-
#backends ⇒ Object
Returns the value of attribute backends.
-
#default_backend ⇒ Object
Returns the value of attribute default_backend.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#format_hints ⇒ Object
Returns the value of attribute format_hints.
-
#gromacs ⇒ Object
Returns the value of attribute gromacs.
-
#python ⇒ Object
Returns the value of attribute python.
-
#requested_engine ⇒ Object
Returns the value of attribute requested_engine.
-
#runtime_id ⇒ Object
Returns the value of attribute runtime_id.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#server_build ⇒ Object
Returns the value of attribute server_build.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
-
#timeout_policy ⇒ Object
Returns the value of attribute timeout_policy.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationRuntimeInspectData
constructor
A new instance of SimulationRuntimeInspectData.
Constructor Details
#initialize(json) ⇒ SimulationRuntimeInspectData
Returns a new instance of SimulationRuntimeInspectData.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 41 def initialize(json) super() hash = self.class.normalize(json) @available_backends = (hash[:available_backends] || []) @backend_count = hash[:backend_count] @backends = (hash[:backends] || []).map { |item| item ? Rafflesia::SimulationRuntimeBackendCapability.new(item) : nil } @default_backend = hash[:default_backend] @environment = (hash[:environment] || []).map { |item| item ? Rafflesia::SimulationRuntimeEnvironmentProbe.new(item) : nil } @format_hints = hash[:format_hints] || {} @gromacs = hash[:gromacs] ? Rafflesia::SimulationRuntimeGromacsProbe.new(hash[:gromacs]) : nil @python = hash[:python] ? Rafflesia::SimulationRuntimePythonProbe.new(hash[:python]) : nil @requested_engine = hash[:requested_engine] @runtime_id = hash[:runtime_id] @schema_version = hash[:schema_version] @server_build = hash[:server_build] ? Rafflesia::BuildInfo.new(hash[:server_build]) : nil @timeout_ms = hash[:timeout_ms] @timeout_policy = hash[:timeout_policy] ? Rafflesia::SimulationRuntimeTimeoutPolicy.new(hash[:timeout_policy]) : nil end |
Instance Attribute Details
#available_backends ⇒ Object
Returns the value of attribute available_backends.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def available_backends @available_backends end |
#backend_count ⇒ Object
Returns the value of attribute backend_count.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def backend_count @backend_count end |
#backends ⇒ Object
Returns the value of attribute backends.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def backends @backends end |
#default_backend ⇒ Object
Returns the value of attribute default_backend.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def default_backend @default_backend end |
#environment ⇒ Object
Returns the value of attribute environment.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def environment @environment end |
#format_hints ⇒ Object
Returns the value of attribute format_hints.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def format_hints @format_hints end |
#gromacs ⇒ Object
Returns the value of attribute gromacs.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def gromacs @gromacs end |
#python ⇒ Object
Returns the value of attribute python.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def python @python end |
#requested_engine ⇒ Object
Returns the value of attribute requested_engine.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def requested_engine @requested_engine end |
#runtime_id ⇒ Object
Returns the value of attribute runtime_id.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def runtime_id @runtime_id end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def schema_version @schema_version end |
#server_build ⇒ Object
Returns the value of attribute server_build.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def server_build @server_build end |
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def timeout_ms @timeout_ms end |
#timeout_policy ⇒ Object
Returns the value of attribute timeout_policy.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_runtime_inspect_data.rb', line 25 def timeout_policy @timeout_policy end |