JTP API Documentation

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

Constructor Summary
TriggerLiteralMatcher()
           
 
Method Summary
protected  void addEntry(jtp.frame.fc.TriggerLiteralMatcher.Entry ent)
           
 void addTrigger(Literal trigger, Literal target, TriggerValidator validator)
           
 UndoManager getUndoManager()
           
protected  boolean removeEntry(jtp.frame.fc.TriggerLiteralMatcher.Entry ent)
           
 boolean removeTrigger(Literal trigger, Symbol ruleSym)
           
 void setUndoManager(UndoManager u)
           
 void substitute(Map m)
           
 Collection trigger(Literal input)
           
protected  Collection triggerBucket(Literal input, Object key, Collection result)
           
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggerLiteralMatcher

public TriggerLiteralMatcher()
Method Detail

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 literal
ent - 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)

JTP API Documentation