JTP API Documentation

jtp.frame.fc
Class Context

java.lang.Object
  |
  +--java.beans.beancontext.BeanContextChildSupport
        |
        +--java.beans.beancontext.BeanContextSupport
              |
              +--jtp.context.BasicReasoningContext
                    |
                    +--jtp.frame.fc.Context
All Implemented Interfaces:
BeanContext, BeanContextChild, BeanContextServiceRevokedListener, BeanContextServicesListener, Collection, DesignMode, EventListener, PropertyChangeListener, Serializable, VetoableChangeListener, Visibility

public class Context
extends BasicReasoningContext

See Also:
Serialized Form

Field Summary
protected  NewRuleConsequences nrc
           
protected  AbstractRuleCreator pac
           
protected  AbstractRuleCreator src
           
 
Fields inherited from class jtp.context.BasicReasoningContext
tracer
 
Fields inherited from class java.beans.beancontext.BeanContextSupport
bcmListeners, children, designTime, locale, okToUseGui
 
Fields inherited from class java.beans.beancontext.BeanContextChildSupport
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport
 
Fields inherited from interface java.beans.beancontext.BeanContext
globalHierarchyLock
 
Fields inherited from interface java.beans.DesignMode
PROPERTYNAME
 
Constructor Summary
Context()
           
 
Method Summary
 void addRule(Clause ruleClause, String ruleName)
          adds a new rule to the system.
protected  void createContentHolders()
          creates holders for content - FrameKB, BackwardChainingStorage and RuleInstantiator.
protected  void createEmptyContentHolders()
           
 List createUnrollingTemplates()
          creates a list of unrolling templates for the RuleUnroller.
protected  void deSerializeContent(ObjectInputStream ois)
          deserializes content from the provided object input stream.
 RuleClauseAndTriggerInstaller getActionInstaller()
           
 BackwardChainingStorage getBackwardStorage()
           
 FrameKB getFrameKB()
           
 RuleInstantiator getRuleInstantiator()
           
protected  void serializeContent(ObjectOutputStream oos)
          serializes content into provided object output stream.
 void setActionInstaller(RuleClauseAndTriggerInstaller installer)
           
 void setBackwardStorage(BackwardChainingStorage bst)
           
 void setFrameKB(FrameKB f)
           
 void setRuleInstantiator(RuleInstantiator ri)
           
 void setUp()
          performs the setup of this context, including the loading of initial content.
protected  void setupDemodulation()
          sets up demodulation.
 
Methods inherited from class jtp.context.BasicReasoningContext
ask, assertString, defaultSetup, getAskingDispatcher, getAskingReasoner, getAssertionResults, getIntermediateResultDispatcher, getMaxDepth, getParser, getStringAssertionResults, getTellingDispatcher, getTellingReasoner, getTracer, getTranslator, getUndoManager, loadClauses, loadKB, loadKB, setAskingDispatcher, setAskingReasoner, setIntermediateResultDispatcher, setMaxDepth, setParser, setTellingDispatcher, setTellingReasoner, setTracer, setUndoManager, tell, tellInternal, tellString, tellString, undo, untell
 
Methods inherited from class java.beans.beancontext.BeanContextSupport
add, addAll, addBeanContextMembershipListener, avoidingGui, bcsChildren, bcsPreDeserializationHook, bcsPreSerializationHook, childDeserializedHook, childJustAddedHook, childJustRemovedHook, classEquals, clear, contains, containsAll, containsKey, copyChildren, createBCSChild, deserialize, dontUseGui, fireChildrenAdded, fireChildrenRemoved, getBeanContextPeer, getChildBeanContextChild, getChildBeanContextMembershipListener, getChildPropertyChangeListener, getChildSerializable, getChildVetoableChangeListener, getChildVisibility, getLocale, getResource, getResourceAsStream, initialize, instantiateChild, isDesignTime, isEmpty, isSerializing, iterator, needsGui, okToUseGui, propertyChange, readChildren, remove, remove, removeAll, removeBeanContextMembershipListener, retainAll, serialize, setDesignTime, setLocale, size, toArray, toArray, validatePendingAdd, validatePendingRemove, vetoableChange, writeChildren
 
Methods inherited from class java.beans.beancontext.BeanContextChildSupport
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, initializeBeanContextResources, isDelegated, releaseBeanContextResources, removePropertyChangeListener, removeVetoableChangeListener, serviceAvailable, serviceRevoked, setBeanContext, validatePendingSetBeanContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.beancontext.BeanContextChild
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

src

protected AbstractRuleCreator src

pac

protected AbstractRuleCreator pac

nrc

protected NewRuleConsequences nrc
Constructor Detail

Context

public Context()
Method Detail

getFrameKB

public FrameKB getFrameKB()

setFrameKB

public void setFrameKB(FrameKB f)

getBackwardStorage

public BackwardChainingStorage getBackwardStorage()

setBackwardStorage

public void setBackwardStorage(BackwardChainingStorage bst)

getRuleInstantiator

public RuleInstantiator getRuleInstantiator()

setRuleInstantiator

public void setRuleInstantiator(RuleInstantiator ri)

setActionInstaller

public void setActionInstaller(RuleClauseAndTriggerInstaller installer)

getActionInstaller

public RuleClauseAndTriggerInstaller getActionInstaller()

setUp

public void setUp()
           throws Exception
performs the setup of this context, including the loading of initial content.

Exception

addRule

public void addRule(Clause ruleClause,
                    String ruleName)
             throws ReasoningException
adds a new rule to the system.

ReasoningException

createContentHolders

protected void createContentHolders()
                             throws IOException,
                                    ReasoningException
creates holders for content - FrameKB, BackwardChainingStorage and RuleInstantiator. This version just creates blank empty holders.

IOException
ReasoningException

createEmptyContentHolders

protected void createEmptyContentHolders()
                                  throws IOException,
                                         ReasoningException
IOException
ReasoningException

deSerializeContent

protected void deSerializeContent(ObjectInputStream ois)
                           throws IOException,
                                  ClassNotFoundException
deserializes content from the provided object input stream.

IOException
ClassNotFoundException

serializeContent

protected void serializeContent(ObjectOutputStream oos)
                         throws IOException
serializes content into provided object output stream.

IOException

createUnrollingTemplates

public List createUnrollingTemplates()
creates a list of unrolling templates for the RuleUnroller.


setupDemodulation

protected void setupDemodulation()
sets up demodulation.


JTP API Documentation