edu.mit.sketch.system
Class BottomUpTemplateCreatorKS
java.lang.Object
|
+--edu.mit.sketch.system.KnowledgeSource
|
+--edu.mit.sketch.system.BottomUpTemplateCreatorKS
- public class BottomUpTemplateCreatorKS
- extends KnowledgeSource
Created: Sun Jan 6 14:55:02 2002
Copyright: Copyright (C) 2001 by MIT. All rights reserved.
BottomUpTemplateCreatorKS
public BottomUpTemplateCreatorKS()
trigger
public Collection trigger(BBItemHandler items,
Blackboard bb)
- Description copied from class:
KnowledgeSource
- A function which takes the new BBItems and the Blackboard itself and
returns (in constant time, relative to the stuff on the BB) a
collection of Scheduler Items which are the triggered knowledge sources.
The triggerent KSs must implement the function "process" which
checks more throuroughly to see if its conditions are met, and if
so makes the appropriate changes to the Blackboard.
- Overrides:
trigger in class KnowledgeSource
getTemplates
protected Set getTemplates(BBItemType type)
- Get the templates that can use the given type. It is careful to
return copies of the templates so that we do not have undesirable
side effects when filling them in.
- Parameters:
type - The type of BBItem that is looking for a new home- Returns:
- a
Set of Templates that have slots of the
given type
addModel
public void addModel(Template template)