Class: Rafflesia::SimulationTrajectoryGeometryTableData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  end_frame: :end_frame,
  frame_count: :frame_count,
  method: :method,
  relation: :relation,
  row_count: :row_count,
  selected_frame_count: :selected_frame_count,
  selection: :selection,
  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

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationTrajectoryGeometryTableData

Returns a new instance of SimulationTrajectoryGeometryTableData.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 41

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend] ? Rafflesia::SimulationBackendEvidence.new(hash[:backend]) : nil
  @end_frame = hash[:end_frame]
  @frame_count = hash[:frame_count]
  @method = hash[:method]
  @relation = hash[:relation] ? Rafflesia::RelationArtifactData.new(hash[:relation]) : nil
  @row_count = hash[:row_count]
  @selected_frame_count = hash[:selected_frame_count]
  @selection = hash[:selection]
  @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

#backendObject

Returns the value of attribute backend.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def backend
  @backend
end

#end_frameObject

Returns the value of attribute end_frame.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def end_frame
  @end_frame
end

#frame_countObject

Returns the value of attribute frame_count.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def frame_count
  @frame_count
end

#methodObject

Returns the value of attribute method.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def method
  @method
end

#relationObject

Returns the value of attribute relation.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def relation
  @relation
end

#row_countObject

Returns the value of attribute row_count.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def row_count
  @row_count
end

#selected_frame_countObject

Returns the value of attribute selected_frame_count.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def selected_frame_count
  @selected_frame_count
end

#selectionObject

Returns the value of attribute selection.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def selection
  @selection
end

#start_frameObject

Returns the value of attribute start_frame.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def start_frame
  @start_frame
end

#strideObject

Returns the value of attribute stride.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def stride
  @stride
end

#topologyObject

Returns the value of attribute topology.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def topology
  @topology
end

#trajectoryObject

Returns the value of attribute trajectory.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def trajectory
  @trajectory
end

#trajectory_idObject

Returns the value of attribute trajectory_id.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def trajectory_id
  @trajectory_id
end

#trajectory_manifest_objectObject

Returns the value of attribute trajectory_manifest_object.



25
26
27
# File 'lib/rafflesia/simulations/simulation_trajectory_geometry_table_data.rb', line 25

def trajectory_manifest_object
  @trajectory_manifest_object
end