Class: Phenomenal::Feature

Inherits:
Context
  • Object
show all
Includes:
FeatureRelationships
Defined in:
lib/phenomenal/context/feature.rb

Overview

Represents a first class feature from context

Instance Attribute Summary

Attributes included from FeatureRelationships

#relationships

Attributes inherited from Context

#activation_age, #activation_count, #activation_frequency, #adaptations, #forgotten, #manager, #name, #parent, #priority

Instance Method Summary collapse

Methods included from FeatureRelationships

#implications_for, #initialize_relationships, #requirements_for, #suggestions_for

Methods inherited from Context

#activate, #active?, #adapt, #adapt_class, #adaptations_for, #add_adaptation, #add_adaptations, #age, #anonymous?, #context, #deactivate, #feature, #forget, #information, #just_activated?, #parent_feature, #remove_adaptation, #set_priority, #to_s

Methods included from ContextCreation

#create

Methods included from ContextRelationships

#implies, #requires, #suggests

Constructor Details

#initialize(name = nil, manager = nil) ⇒ Feature

Returns a new instance of Feature.



5
6
7
8
# File 'lib/phenomenal/context/feature.rb', line 5

def initialize(name=nil,manager=nil)
  super(name,manager)
  initialize_relationships
end