Class: Rafflesia::SimulationContactsTableData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationContactsTableData
- Defined in:
- lib/rafflesia/simulations/simulation_contacts_table_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, contact_pair_count: :contact_pair_count, end_frame: :end_frame, frame_count: :frame_count, is_pair_limit_reached: :is_pair_limit_reached, method: :method, radius_angstrom: :radius_angstrom, relation: :relation, row_count: :row_count, selected_frame_count: :selected_frame_count, selection_a: :selection_a, selection_b: :selection_b, start_frame: :start_frame, stride: :stride, topology: :topology, trajectory: :trajectory, trajectory_id: :trajectory_id, trajectory_manifest_object: :trajectory_manifest_object }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#contact_pair_count ⇒ Object
Returns the value of attribute contact_pair_count.
-
#end_frame ⇒ Object
Returns the value of attribute end_frame.
-
#frame_count ⇒ Object
Returns the value of attribute frame_count.
-
#is_pair_limit_reached ⇒ Object
Returns the value of attribute is_pair_limit_reached.
-
#method ⇒ Object
Returns the value of attribute method.
-
#radius_angstrom ⇒ Object
Returns the value of attribute radius_angstrom.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#selected_frame_count ⇒ Object
Returns the value of attribute selected_frame_count.
-
#selection_a ⇒ Object
Returns the value of attribute selection_a.
-
#selection_b ⇒ Object
Returns the value of attribute selection_b.
-
#start_frame ⇒ Object
Returns the value of attribute start_frame.
-
#stride ⇒ Object
Returns the value of attribute stride.
-
#topology ⇒ Object
Returns the value of attribute topology.
-
#trajectory ⇒ Object
Returns the value of attribute trajectory.
-
#trajectory_id ⇒ Object
Returns the value of attribute trajectory_id.
-
#trajectory_manifest_object ⇒ Object
Returns the value of attribute trajectory_manifest_object.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationContactsTableData
constructor
A new instance of SimulationContactsTableData.
Constructor Details
#initialize(json) ⇒ SimulationContactsTableData
Returns a new instance of SimulationContactsTableData.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 49 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] ? Rafflesia::SimulationBackendEvidence.new(hash[:backend]) : nil @contact_pair_count = hash[:contact_pair_count] @end_frame = hash[:end_frame] @frame_count = hash[:frame_count] @is_pair_limit_reached = hash[:is_pair_limit_reached] @method = hash[:method] @radius_angstrom = hash[:radius_angstrom] @relation = hash[:relation] ? Rafflesia::RelationArtifactData.new(hash[:relation]) : nil @row_count = hash[:row_count] @selected_frame_count = hash[:selected_frame_count] @selection_a = hash[:selection_a] @selection_b = hash[:selection_b] @start_frame = hash[:start_frame] @stride = hash[:stride] @topology = hash[:topology] ? Rafflesia::SimulationInputRef.new(hash[:topology]) : nil @trajectory = hash[:trajectory] ? Rafflesia::SimulationInputRef.new(hash[:trajectory]) : nil @trajectory_id = hash[:trajectory_id] @trajectory_manifest_object = hash[:trajectory_manifest_object] ? Rafflesia::ObjectRef.new(hash[:trajectory_manifest_object]) : nil end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def backend @backend end |
#contact_pair_count ⇒ Object
Returns the value of attribute contact_pair_count.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def contact_pair_count @contact_pair_count end |
#end_frame ⇒ Object
Returns the value of attribute end_frame.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def end_frame @end_frame end |
#frame_count ⇒ Object
Returns the value of attribute frame_count.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def frame_count @frame_count end |
#is_pair_limit_reached ⇒ Object
Returns the value of attribute is_pair_limit_reached.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def is_pair_limit_reached @is_pair_limit_reached end |
#method ⇒ Object
Returns the value of attribute method.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def method @method end |
#radius_angstrom ⇒ Object
Returns the value of attribute radius_angstrom.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def radius_angstrom @radius_angstrom end |
#relation ⇒ Object
Returns the value of attribute relation.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def relation @relation end |
#row_count ⇒ Object
Returns the value of attribute row_count.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def row_count @row_count end |
#selected_frame_count ⇒ Object
Returns the value of attribute selected_frame_count.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def selected_frame_count @selected_frame_count end |
#selection_a ⇒ Object
Returns the value of attribute selection_a.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def selection_a @selection_a end |
#selection_b ⇒ Object
Returns the value of attribute selection_b.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def selection_b @selection_b end |
#start_frame ⇒ Object
Returns the value of attribute start_frame.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def start_frame @start_frame end |
#stride ⇒ Object
Returns the value of attribute stride.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def stride @stride end |
#topology ⇒ Object
Returns the value of attribute topology.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def topology @topology end |
#trajectory ⇒ Object
Returns the value of attribute trajectory.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def trajectory @trajectory end |
#trajectory_id ⇒ Object
Returns the value of attribute trajectory_id.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def trajectory_id @trajectory_id end |
#trajectory_manifest_object ⇒ Object
Returns the value of attribute trajectory_manifest_object.
29 30 31 |
# File 'lib/rafflesia/simulations/simulation_contacts_table_data.rb', line 29 def trajectory_manifest_object @trajectory_manifest_object end |