Class: Rafflesia::SimulationTrajectoryManifest

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

Instance Method Summary collapse

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

#backendObject

Returns the value of attribute backend.



20
21
22
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20

def backend
  @backend
end

#decoded_backendObject

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_kindObject

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_versionObject

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

#topologyObject

Returns the value of attribute topology.



20
21
22
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20

def topology
  @topology
end

#topology_formatObject

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

#trajectoryObject

Returns the value of attribute trajectory.



20
21
22
# File 'lib/rafflesia/simulations/simulation_trajectory_manifest.rb', line 20

def trajectory
  @trajectory
end

#trajectory_formatObject

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_idObject

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