Class: Rafflesia::SimulationTrajectoryImportData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationTrajectoryImportData
- Defined in:
- lib/rafflesia/simulations/simulation_trajectory_import_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ atom_count: :atom_count, backend: :backend, frame_count: :frame_count, frame_time_step_ps: :frame_time_step_ps, has_time: :has_time, imported_object_count: :imported_object_count, is_decoded: :is_decoded, residue_count: :residue_count, supported_measurements: :supported_measurements, time_end_ps: :time_end_ps, time_start_ps: :time_start_ps, topology: :topology, topology_format: :topology_format, trajectory: :trajectory, trajectory_format: :trajectory_format, trajectory_id: :trajectory_id, trajectory_manifest: :trajectory_manifest, trajectory_manifest_object: :trajectory_manifest_object, unit_cell_frame_count: :unit_cell_frame_count, unsupported_measurements: :unsupported_measurements }.freeze
Instance Attribute Summary collapse
-
#atom_count ⇒ Object
Returns the value of attribute atom_count.
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#frame_count ⇒ Object
Returns the value of attribute frame_count.
-
#frame_time_step_ps ⇒ Object
Returns the value of attribute frame_time_step_ps.
-
#has_time ⇒ Object
Returns the value of attribute has_time.
-
#imported_object_count ⇒ Object
Returns the value of attribute imported_object_count.
-
#is_decoded ⇒ Object
Returns the value of attribute is_decoded.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#supported_measurements ⇒ Object
Returns the value of attribute supported_measurements.
-
#time_end_ps ⇒ Object
Returns the value of attribute time_end_ps.
-
#time_start_ps ⇒ Object
Returns the value of attribute time_start_ps.
-
#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.
-
#trajectory_manifest ⇒ Object
Returns the value of attribute trajectory_manifest.
-
#trajectory_manifest_object ⇒ Object
Returns the value of attribute trajectory_manifest_object.
-
#unit_cell_frame_count ⇒ Object
Returns the value of attribute unit_cell_frame_count.
-
#unsupported_measurements ⇒ Object
Returns the value of attribute unsupported_measurements.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationTrajectoryImportData
constructor
A new instance of SimulationTrajectoryImportData.
Constructor Details
#initialize(json) ⇒ SimulationTrajectoryImportData
Returns a new instance of SimulationTrajectoryImportData.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 53 def initialize(json) super() hash = self.class.normalize(json) @atom_count = hash[:atom_count] @backend = hash[:backend] ? Rafflesia::SimulationBackendEvidence.new(hash[:backend]) : nil @frame_count = hash[:frame_count] @frame_time_step_ps = hash[:frame_time_step_ps] @has_time = hash[:has_time] @imported_object_count = hash[:imported_object_count] @is_decoded = hash[:is_decoded] @residue_count = hash[:residue_count] @supported_measurements = (hash[:supported_measurements] || []) @time_end_ps = hash[:time_end_ps] @time_start_ps = hash[:time_start_ps] @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] @trajectory_manifest = hash[:trajectory_manifest] ? Rafflesia::SimulationTrajectoryManifest.new(hash[:trajectory_manifest]) : nil @trajectory_manifest_object = hash[:trajectory_manifest_object] ? Rafflesia::ObjectRef.new(hash[:trajectory_manifest_object]) : nil @unit_cell_frame_count = hash[:unit_cell_frame_count] @unsupported_measurements = (hash[:unsupported_measurements] || []) end |
Instance Attribute Details
#atom_count ⇒ Object
Returns the value of attribute atom_count.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def atom_count @atom_count end |
#backend ⇒ Object
Returns the value of attribute backend.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def backend @backend end |
#frame_count ⇒ Object
Returns the value of attribute frame_count.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def frame_count @frame_count end |
#frame_time_step_ps ⇒ Object
Returns the value of attribute frame_time_step_ps.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def frame_time_step_ps @frame_time_step_ps end |
#has_time ⇒ Object
Returns the value of attribute has_time.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def has_time @has_time end |
#imported_object_count ⇒ Object
Returns the value of attribute imported_object_count.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def imported_object_count @imported_object_count end |
#is_decoded ⇒ Object
Returns the value of attribute is_decoded.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def is_decoded @is_decoded end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def residue_count @residue_count end |
#supported_measurements ⇒ Object
Returns the value of attribute supported_measurements.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def supported_measurements @supported_measurements end |
#time_end_ps ⇒ Object
Returns the value of attribute time_end_ps.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def time_end_ps @time_end_ps end |
#time_start_ps ⇒ Object
Returns the value of attribute time_start_ps.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def time_start_ps @time_start_ps end |
#topology ⇒ Object
Returns the value of attribute topology.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def topology @topology end |
#topology_format ⇒ Object
Returns the value of attribute topology_format.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def topology_format @topology_format end |
#trajectory ⇒ Object
Returns the value of attribute trajectory.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def trajectory @trajectory end |
#trajectory_format ⇒ Object
Returns the value of attribute trajectory_format.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def trajectory_format @trajectory_format end |
#trajectory_id ⇒ Object
Returns the value of attribute trajectory_id.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def trajectory_id @trajectory_id end |
#trajectory_manifest ⇒ Object
Returns the value of attribute trajectory_manifest.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def trajectory_manifest @trajectory_manifest end |
#trajectory_manifest_object ⇒ Object
Returns the value of attribute trajectory_manifest_object.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def trajectory_manifest_object @trajectory_manifest_object end |
#unit_cell_frame_count ⇒ Object
Returns the value of attribute unit_cell_frame_count.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def unit_cell_frame_count @unit_cell_frame_count end |
#unsupported_measurements ⇒ Object
Returns the value of attribute unsupported_measurements.
31 32 33 |
# File 'lib/rafflesia/simulations/simulation_trajectory_import_data.rb', line 31 def unsupported_measurements @unsupported_measurements end |