Class: ViennaRna::Package::Kinwalker::Node
- Inherits:
-
Object
- Object
- ViennaRna::Package::Kinwalker::Node
- Defined in:
- lib/vienna_rna/package/kinwalker.rb
Instance Attribute Summary collapse
-
#barrier ⇒ Object
readonly
Returns the value of attribute barrier.
-
#energy ⇒ Object
readonly
Returns the value of attribute energy.
-
#energy_barrier ⇒ Object
readonly
Returns the value of attribute energy_barrier.
-
#structure ⇒ Object
readonly
Returns the value of attribute structure.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#transcribed ⇒ Object
readonly
Returns the value of attribute transcribed.
Instance Method Summary collapse
-
#initialize(structure, energy, time, barrier, energy_barrier, transcribed) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(structure, energy, time, barrier, energy_barrier, transcribed) ⇒ Node
Returns a new instance of Node.
18 19 20 |
# File 'lib/vienna_rna/package/kinwalker.rb', line 18 def initialize(structure, energy, time, , , transcribed) @structure, @energy, @time, @barrier, @energy_barrier, @transcribed = structure, energy.to_f, time.to_f, .to_f, .to_f, transcribed.to_i end |
Instance Attribute Details
#barrier ⇒ Object (readonly)
Returns the value of attribute barrier.
16 17 18 |
# File 'lib/vienna_rna/package/kinwalker.rb', line 16 def @barrier end |
#energy ⇒ Object (readonly)
Returns the value of attribute energy.
16 17 18 |
# File 'lib/vienna_rna/package/kinwalker.rb', line 16 def energy @energy end |
#energy_barrier ⇒ Object (readonly)
Returns the value of attribute energy_barrier.
16 17 18 |
# File 'lib/vienna_rna/package/kinwalker.rb', line 16 def @energy_barrier end |
#structure ⇒ Object (readonly)
Returns the value of attribute structure.
16 17 18 |
# File 'lib/vienna_rna/package/kinwalker.rb', line 16 def structure @structure end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
16 17 18 |
# File 'lib/vienna_rna/package/kinwalker.rb', line 16 def time @time end |
#transcribed ⇒ Object (readonly)
Returns the value of attribute transcribed.
16 17 18 |
# File 'lib/vienna_rna/package/kinwalker.rb', line 16 def transcribed @transcribed end |