Sha256: dea84c4ba15cf25c6b8af051d6ff37251862dcd7dd843a6fd155779e0376df1d

Contents?: true

Size: 809 Bytes

Versions: 1

Compression:

Stored size: 809 Bytes

Contents

require 'singleton'
# This class manage the different contexts in the system and their interactions
class Phenomenal::Manager
  include Singleton
  include Phenomenal::ConflictPolicies
  include Phenomenal::AdaptationsManagement
  include Phenomenal::ContextsManagement
  
  attr_accessor :rmanager
  
  # PRIVATE METHODS
  private
   # Set the default context
  def init_default
    self.default_context= Phenomenal::Feature.new(nil,self)
    self.default_context.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::RelationshipsManager.instance
    init_default()
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phenomenal-1.1.1 lib/phenomenal/manager/manager.rb