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
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 |
src
protected AbstractRuleCreator src
pac
protected AbstractRuleCreator pac
nrc
protected NewRuleConsequences nrc
Context
public Context()
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.