Class: Rafflesia::FoldCollectionRoutingPlan
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldCollectionRoutingPlan
- Defined in:
- lib/rafflesia/proteins/fold_collection_routing_plan.rb
Constant Summary collapse
- HASH_ATTRS =
{ calibration_id: :calibration_id, calibration_object_id: :calibration_object_id, decisions: :decisions, directory_id: :directory_id, directory_object_id: :directory_object_id, effective_max_segments: :effective_max_segments, estimated_block_count: :estimated_block_count, estimated_object_bytes: :estimated_object_bytes, estimated_object_read_count: :estimated_object_read_count, is_exhaustive: :is_exhaustive, planned_segment_count: :planned_segment_count, requested_max_segments: :requested_max_segments, routing_mode: :routing_mode, segment_count: :segment_count, segment_reduction_fraction: :segment_reduction_fraction, selected_score: :selected_score, selected_score_coverage: :selected_score_coverage, selected_segment_refs: :selected_segment_refs, skipped_segment_count: :skipped_segment_count, skipped_segment_refs: :skipped_segment_refs, stop_reason: :stop_reason, strategy: :strategy, target_score_coverage: :target_score_coverage, total_score: :total_score, uses_calibration: :uses_calibration, uses_routing_directory: :uses_routing_directory }.freeze
Instance Attribute Summary collapse
-
#calibration_id ⇒ Object
Returns the value of attribute calibration_id.
-
#calibration_object_id ⇒ Object
Returns the value of attribute calibration_object_id.
-
#decisions ⇒ Object
Returns the value of attribute decisions.
-
#directory_id ⇒ Object
Returns the value of attribute directory_id.
-
#directory_object_id ⇒ Object
Returns the value of attribute directory_object_id.
-
#effective_max_segments ⇒ Object
Returns the value of attribute effective_max_segments.
-
#estimated_block_count ⇒ Object
Returns the value of attribute estimated_block_count.
-
#estimated_object_bytes ⇒ Object
Returns the value of attribute estimated_object_bytes.
-
#estimated_object_read_count ⇒ Object
Returns the value of attribute estimated_object_read_count.
-
#is_exhaustive ⇒ Object
Returns the value of attribute is_exhaustive.
-
#planned_segment_count ⇒ Object
Returns the value of attribute planned_segment_count.
-
#requested_max_segments ⇒ Object
Returns the value of attribute requested_max_segments.
-
#routing_mode ⇒ Object
Returns the value of attribute routing_mode.
-
#segment_count ⇒ Object
Returns the value of attribute segment_count.
-
#segment_reduction_fraction ⇒ Object
Returns the value of attribute segment_reduction_fraction.
-
#selected_score ⇒ Object
Returns the value of attribute selected_score.
-
#selected_score_coverage ⇒ Object
Returns the value of attribute selected_score_coverage.
-
#selected_segment_refs ⇒ Object
Returns the value of attribute selected_segment_refs.
-
#skipped_segment_count ⇒ Object
Returns the value of attribute skipped_segment_count.
-
#skipped_segment_refs ⇒ Object
Returns the value of attribute skipped_segment_refs.
-
#stop_reason ⇒ Object
Returns the value of attribute stop_reason.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#target_score_coverage ⇒ Object
Returns the value of attribute target_score_coverage.
-
#total_score ⇒ Object
Returns the value of attribute total_score.
-
#uses_calibration ⇒ Object
Returns the value of attribute uses_calibration.
-
#uses_routing_directory ⇒ Object
Returns the value of attribute uses_routing_directory.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldCollectionRoutingPlan
constructor
A new instance of FoldCollectionRoutingPlan.
Constructor Details
#initialize(json) ⇒ FoldCollectionRoutingPlan
Returns a new instance of FoldCollectionRoutingPlan.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 65 def initialize(json) super() hash = self.class.normalize(json) @calibration_id = hash[:calibration_id] @calibration_object_id = hash[:calibration_object_id] @decisions = (hash[:decisions] || []).map { |item| item ? Rafflesia::FoldCollectionRoutingDecision.new(item) : nil } @directory_id = hash[:directory_id] @directory_object_id = hash[:directory_object_id] @effective_max_segments = hash[:effective_max_segments] @estimated_block_count = hash[:estimated_block_count] @estimated_object_bytes = hash[:estimated_object_bytes] @estimated_object_read_count = hash[:estimated_object_read_count] @is_exhaustive = hash[:is_exhaustive] @planned_segment_count = hash[:planned_segment_count] @requested_max_segments = hash[:requested_max_segments] @routing_mode = hash[:routing_mode] @segment_count = hash[:segment_count] @segment_reduction_fraction = hash[:segment_reduction_fraction] @selected_score = hash[:selected_score] @selected_score_coverage = hash[:selected_score_coverage] @selected_segment_refs = (hash[:selected_segment_refs] || []) @skipped_segment_count = hash[:skipped_segment_count] @skipped_segment_refs = (hash[:skipped_segment_refs] || []) @stop_reason = hash[:stop_reason] @strategy = hash[:strategy] @target_score_coverage = hash[:target_score_coverage] @total_score = hash[:total_score] @uses_calibration = hash[:uses_calibration] @uses_routing_directory = hash[:uses_routing_directory] end |
Instance Attribute Details
#calibration_id ⇒ Object
Returns the value of attribute calibration_id.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def calibration_id @calibration_id end |
#calibration_object_id ⇒ Object
Returns the value of attribute calibration_object_id.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def calibration_object_id @calibration_object_id end |
#decisions ⇒ Object
Returns the value of attribute decisions.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def decisions @decisions end |
#directory_id ⇒ Object
Returns the value of attribute directory_id.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def directory_id @directory_id end |
#directory_object_id ⇒ Object
Returns the value of attribute directory_object_id.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def directory_object_id @directory_object_id end |
#effective_max_segments ⇒ Object
Returns the value of attribute effective_max_segments.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def effective_max_segments @effective_max_segments end |
#estimated_block_count ⇒ Object
Returns the value of attribute estimated_block_count.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def estimated_block_count @estimated_block_count end |
#estimated_object_bytes ⇒ Object
Returns the value of attribute estimated_object_bytes.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def estimated_object_bytes @estimated_object_bytes end |
#estimated_object_read_count ⇒ Object
Returns the value of attribute estimated_object_read_count.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def estimated_object_read_count @estimated_object_read_count end |
#is_exhaustive ⇒ Object
Returns the value of attribute is_exhaustive.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def is_exhaustive @is_exhaustive end |
#planned_segment_count ⇒ Object
Returns the value of attribute planned_segment_count.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def planned_segment_count @planned_segment_count end |
#requested_max_segments ⇒ Object
Returns the value of attribute requested_max_segments.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def requested_max_segments @requested_max_segments end |
#routing_mode ⇒ Object
Returns the value of attribute routing_mode.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def routing_mode @routing_mode end |
#segment_count ⇒ Object
Returns the value of attribute segment_count.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def segment_count @segment_count end |
#segment_reduction_fraction ⇒ Object
Returns the value of attribute segment_reduction_fraction.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def segment_reduction_fraction @segment_reduction_fraction end |
#selected_score ⇒ Object
Returns the value of attribute selected_score.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def selected_score @selected_score end |
#selected_score_coverage ⇒ Object
Returns the value of attribute selected_score_coverage.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def selected_score_coverage @selected_score_coverage end |
#selected_segment_refs ⇒ Object
Returns the value of attribute selected_segment_refs.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def selected_segment_refs @selected_segment_refs end |
#skipped_segment_count ⇒ Object
Returns the value of attribute skipped_segment_count.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def skipped_segment_count @skipped_segment_count end |
#skipped_segment_refs ⇒ Object
Returns the value of attribute skipped_segment_refs.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def skipped_segment_refs @skipped_segment_refs end |
#stop_reason ⇒ Object
Returns the value of attribute stop_reason.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def stop_reason @stop_reason end |
#strategy ⇒ Object
Returns the value of attribute strategy.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def strategy @strategy end |
#target_score_coverage ⇒ Object
Returns the value of attribute target_score_coverage.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def target_score_coverage @target_score_coverage end |
#total_score ⇒ Object
Returns the value of attribute total_score.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def total_score @total_score end |
#uses_calibration ⇒ Object
Returns the value of attribute uses_calibration.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def uses_calibration @uses_calibration end |
#uses_routing_directory ⇒ Object
Returns the value of attribute uses_routing_directory.
37 38 39 |
# File 'lib/rafflesia/proteins/fold_collection_routing_plan.rb', line 37 def uses_routing_directory @uses_routing_directory end |