Class: Rafflesia::SimulationTrajectoryImportData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_countObject

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

#backendObject

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_countObject

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_psObject

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_timeObject

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_countObject

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_decodedObject

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_countObject

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_measurementsObject

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_psObject

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_psObject

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

#topologyObject

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_formatObject

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

#trajectoryObject

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_formatObject

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_idObject

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_manifestObject

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_objectObject

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_countObject

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_measurementsObject

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