The layered agent pattern language
Elizabeth A. Kendall · 1997
Factory and Factory Method patterns [11] are used together to form the Plan and Intention Factory, as shown in Figure 5. The PlanFactory is abstract; it provides the interface to create the ActionPlan objects. The ConcretePlanFactory provides the implementation to create the ConcretePlans. For this it uses the Library which stores several ActionPlan classes and instantiates the requested one. This plan object is then used by the IntentionThread. Per the Factory Method pattern, ReactionIntention or CollaborationIntention subclasses will be instantiated depending on the ActionPlan type. Both of these define the virtual methods of the IntentionThread class. These methods are used by the IntentionThread class for creating the respective intention thread objects, letting the subclasses determine how an object is to be instantiated. 6.5 THE PRIORITIZER Problem How can priority handling and other forms of behavior be added to an intention dynamically ? Forces . There are two main Intentio...