Sha256: d8c5ed73493cf08b1638ce74b36ad2ba52182937af9018cf8a0c64490ff5a981

Contents?: true

Size: 787 Bytes

Versions: 2

Compression:

Stored size: 787 Bytes

Contents

# This class manage the different contexts in the system and their interactions
class Phenomenal::Manager
  include Singleton
  include Phenomenal::ConflictPolicies
  include Phenomenal::AdaptationManagement
  include Phenomenal::ContextManagement
  
  attr_accessor :rmanager
  
  # PRIVATE METHODS
  private
   # Set the default feature
  def init_default
    self.default_feature = Phenomenal::Feature.new(nil,self)
    self.default_feature.activate
  end

  # Private constructor because this is a singleton object
  def initialize
    @contexts = Hash.new
    @deployed_adaptations = Array.new
    @active_adaptations = Array.new
    @combined_contexts = Hash.new
    @shared_contexts = Hash.new
    @rmanager = Phenomenal::RelationshipManager.instance
    init_default()
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phenomenal-1.2.4 lib/phenomenal/manager/manager.rb
phenomenal-1.2.3 lib/phenomenal/manager/manager.rb