Class: Rafflesia::SimulationTrajectoryManifest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationTrajectoryManifest
- Defined in:
- lib/rafflesia/simulations/simulation_trajectory_manifest.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, decoded_backend: :decoded_backend, manifest_kind: :manifest_kind, manifest_version: :manifest_version, topology: :topology, topology_format: :topology_format, trajectory: :trajectory, trajectory_format: :trajectory_format, trajectory_id: :trajectory_id }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#decoded_backend ⇒ Object
Returns the value of attribute decoded_backend.
-
#manifest_kind ⇒ Object
Returns the value of attribute manifest_kind.
-
#manifest_version ⇒ Object
Returns the value of attribute manifest_version.
-
#topology ⇒ Object
Returns the value of attribute topology.
-
#topology_format ⇒ Object
Returns the value of attribute topology_format.
-
#trajectory ⇒ Object
Returns the value of attribute trajectory.
-
#trajectory_format ⇒ Object
Returns the value of attribute trajectory_format.
-
#trajectory_id ⇒ Object
Returns the value of attribute trajectory_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationTrajectoryManifest
constructor
A new instance of SimulationTrajectoryManifest.
Constructor Details
#initialize(json) ⇒ SimulationTrajectoryManifest
Returns a new instance of SimulationTrajectoryManifest.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @decoded_backend = hash[:decoded_backend] @manifest_kind = hash[:manifest_kind] @manifest_version = hash[:manifest_version] @topology = hash[:topology] ? Rafflesia::SimulationInputRef.new(hash[:topology]) : nil @topology_format = hash[:topology_format] @trajectory = hash[:trajectory] ? Rafflesia::SimulationInputRef.new(hash[:trajectory]) : nil @trajectory_format = hash[:trajectory_format] @trajectory_id = hash[:trajectory_id] end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20 def backend @backend end |
#decoded_backend ⇒ Object
Returns the value of attribute decoded_backend.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20 def decoded_backend @decoded_backend end |
#manifest_kind ⇒ Object
Returns the value of attribute manifest_kind.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20 def manifest_kind @manifest_kind end |
#manifest_version ⇒ Object
Returns the value of attribute manifest_version.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20 def manifest_version @manifest_version end |
#topology ⇒ Object
Returns the value of attribute topology.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20 def topology @topology end |
#topology_format ⇒ Object
Returns the value of attribute topology_format.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20 def topology_format @topology_format end |
#trajectory ⇒ Object
Returns the value of attribute trajectory.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20 def trajectory @trajectory end |
#trajectory_format ⇒ Object
Returns the value of attribute trajectory_format.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20 def trajectory_format @trajectory_format end |
#trajectory_id ⇒ Object
Returns the value of attribute trajectory_id.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20 def trajectory_id @trajectory_id end |