Module: ClusterMethods

Included in:
ExtensionCluster, TannealCluster
Defined in:
lib/pcr_batching_representation.rb

Overview

Methods that are useful for both Tanneal clusters or Extension time clusters

Instance Method Summary collapse

Instance Method Details

#membersArray<PcrOperation>

Get all PcrOperations which are in this cluster

Returns:



146
147
148
149
150
151
152
153
# File 'lib/pcr_batching_representation.rb', line 146

def members
    # calculate members when needed
    if @parent_clusters.nil?
        return [@pcr_operation]
    else
        return @parent_clusters[0].members.concat(@parent_clusters[1].members)
    end
end