jtp.frame.fc
Class TriggerLiteralMatcher
java.lang.Object
|
+--jtp.frame.fc.TriggerLiteralMatcher
- All Implemented Interfaces:
- Serializable
- public class TriggerLiteralMatcher
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TriggerLiteralMatcher
public TriggerLiteralMatcher()
getUndoManager
public UndoManager getUndoManager()
setUndoManager
public void setUndoManager(UndoManager u)
trigger
public Collection trigger(Literal input)
triggerBucket
protected Collection triggerBucket(Literal input,
Object key,
Collection result)
triggerEntry
protected Literal triggerEntry(Literal input,
jtp.frame.fc.TriggerLiteralMatcher.Entry ent)
- Checks if a rule base entry is triggered by a literal (that is, if the entry target literal unifies with the argument).
Returns the unification if successful, null if rule isn't triggered.
- Parameters:
input
- the input literalent
- the entry that might or might not be triggered by input
- Returns:
- the unification of literal with the entry if successful, null if not.
substitute
public void substitute(Map m)
addTrigger
public void addTrigger(Literal trigger,
Literal target,
TriggerValidator validator)
removeTrigger
public boolean removeTrigger(Literal trigger,
Symbol ruleSym)
addEntry
protected void addEntry(jtp.frame.fc.TriggerLiteralMatcher.Entry ent)
removeEntry
protected boolean removeEntry(jtp.frame.fc.TriggerLiteralMatcher.Entry ent)