|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx gov.nasa.arc.brahms.common.rt.ConceptCtx gov.nasa.arc.brahms.common.rt.ActiveInstanceCtx gov.nasa.arc.brahms.vm.rt.VMActiveInstanceCtx
public abstract class VMActiveInstanceCtx
The VMActiveInstanceCtx is the runtime class for active instances (agents and object instances) with extensions for it to function in the Brahms virtual machine. It manages the belief set, location, frame contexts with their various states and containment. The virtual machine maintains the active instances states through the active instance contexts.
ActiveInstanceCtx
,
Serialized FormField Summary | |
---|---|
protected boolean |
m_bInitialized
Indicates whether the agent has been initialized, used to see whether the agent accepts incoming messages in a distributed environment. |
protected java.util.LinkedList<gov.nasa.arc.brahms.vm.events.DiscreteEvent> |
m_llCIMessageQueue
The queue used to temporarily store incoming KAoS messages while not initialized |
protected java.util.LinkedList<java.lang.String> |
m_llReceivedMessageConversationIds
The conversation ids of the messages already received |
protected IStatementSet |
m_oBeliefSet
The belief set of the active instance |
protected gov.nasa.arc.brahms.vm.engine.IEngine |
m_oEngine
The active instance's reasoning engine |
protected int[] |
m_oIncomingMessageLock
This lock is used to handle an incoming message from a remote agent and to ensure that no race conditions occur while posting an event on the agent's event queue for processing. |
Fields inherited from interface gov.nasa.arc.brahms.common.rt.IRuntimeConstants |
---|
ABORTED, ACTIVE, ACTIVITY, AVAILABLE, COMPLETED, CONSEQUENCE, DETECTABLE, ENDED, ENGINE, EXTERNAL_AGENT, FROM, IMPASSED, INITIAL, INTERRUPTED, JAVA_PROPERTY, sABORTED, sACTIVE, sAVAILABLE, sCOMPLETED, sENDED, sIMPASSED, sINTERRUPTED, sUNAVAILABLE, TO, TRANSFER, UNAVAILABLE |
Constructor Summary | |
---|---|
VMActiveInstanceCtx(ActiveInstance ai)
Constructor, creates a new context for the specified active instance. |
Method Summary | |
---|---|
void |
activateCompositeActivity(VMCompositeActivityCtx act)
Activates the composite activity, activating its frames. |
void |
addActiveDetectable(IDetectableCtx detectable)
Adds the specified detectable as an active detectable to the list of active detectables. |
void |
addBelief(IBeliefCtx belief,
long time)
Add a new belief to the belief set of the active instance. |
void |
addDeletedListener(gov.nasa.arc.brahms.vm.memory.IDeletedListener listener)
Registers the specified listener to be notified when this element was deleted. |
void |
addEventReference(gov.nasa.arc.brahms.vm.events.DiscreteEvent evt)
Adds the specified DiscreteEvent as an event in which this element is referenced. |
void |
addFrameBindingReference(ActiveInstance refHolder,
gov.nasa.arc.brahms.vm.engine.rsn.RSNFrameNode frame,
gov.nasa.arc.brahms.vm.engine.rsn.RSNFrameNode.FrameBinding binding)
Adds the specified FrameBinding as a binding in which this element was used in a variable in the completed execution of the frame defined by the RSNFrameNode executed by the specified ActiveInstance. |
gov.nasa.arc.brahms.vm.memory.HardReference |
addHardReference(ActiveInstance refHolder,
long time)
Adds the specified refHolder as an ActiveInstance holding a hard reference to this concept. |
protected void |
addKnowsLocationOf(VMActiveInstanceCtx containedInstance)
Adds the specified contained instance as a contained instance we know the location of. |
gov.nasa.arc.brahms.vm.memory.SoftReference |
addSoftReference(ActiveInstance refHolder,
long time)
Adds the specified refHolder as an ActiveInstance holding a soft reference to this concept. |
void |
addStatementReference(ActiveInstance refHolder,
VMStatementCtx statement,
long time)
Adds the specified VMStatementCtx as a statement in which this element is referenced, either on the left or right hand side asserted by the specified ActiveInstance. |
void |
addStatusListener(gov.nasa.arc.brahms.vm.monitoring.IAgentStatusListener listener)
Adds the specified IAgentStatusListener as the listener to be notified of the agent's status and status changes. |
protected void |
clearKnowsLocationOf()
Clears the list of contained instances we know the location of. |
boolean |
containsBelief(Statement statement)
Checks if a belief with the same contents as the specified contents exists in the belief set. |
protected abstract gov.nasa.arc.brahms.vm.engine.IEngine |
createEngine(gov.nasa.arc.brahms.vm.controller.VMController vmc)
Creates a new engine for this active concept for use in a virtual machine |
protected gov.nasa.arc.brahms.vm.engine.IWorkSelector |
createWorkSelector()
Creates a new work selector for this active concept to be used to select the work to be worked on when the engine asks for it. |
void |
deactivateCompositeActivity(VMCompositeActivityCtx act)
Deactivates the composite activity, deactivating its frames. |
void |
deregisterForMonitoring()
Registers this agent to be monitored by the agent monitor. |
void |
deregisterThreadListener()
Deregisters the thread listener to detect when this agent's thread of execution is terminated and under what circumstances. |
void |
detect(long time,
VMFactCtx fact)
Checks the detectables to see if the specified fact can be detected. |
void |
doWork(long currentTime)
Makes the agent select its current work and execute the current work using the current time as the base time. |
void |
finalizeDelete(long time)
Finalizes the deletes of this element from memory, cleaning up any internal structures kept for this element and marking the element as deleted. |
java.util.ListIterator<IDetectableCtx> |
getActiveDetectables()
Returns the list of active detectables. |
IBeliefCtx |
getBelief(Concept lhsConcept,
Relation relation,
java.lang.Object rhsConcept,
int truthValue)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBeliefCtx |
getBelief(java.lang.Object lhsObject,
Attribute lhsAttribute,
int lhsCollectionIndex,
int relation)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBeliefCtx |
getBelief(java.lang.Object lhsObject,
Attribute lhsAttribute,
int lhsCollectionIndex,
int relation,
java.lang.Object value)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBeliefCtx |
getBelief(java.lang.Object lhsObject,
Attribute lhsAttribute,
int relation,
java.lang.Object value)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
VMBeliefCtx |
getBelief(java.lang.Object lhsObject,
Attribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relation)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBeliefCtx |
getBelief(java.lang.Object lhsObject,
Attribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relation,
java.lang.Object value)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
int |
getBeliefChangeSupport(java.lang.Object object)
Returns the current level of belief change support for a given Java object. |
IBeliefCtx |
getBeliefForIndex(java.lang.Object lhsObject,
Attribute lhsAttribute,
int lhsCollectionIndex)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBeliefCtx |
getBeliefForIndex(java.lang.Object lhsObject,
Attribute lhsAttribute,
java.lang.String lhsCollectionIndex)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
gov.nasa.arc.brahms.vm.engine.rsn.ReasoningStateNetwork |
getBeliefRSN()
Returns the active instance's belief based reasoning state network. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs()
Returns the active instance's belief set. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(Attribute lhsAttribute)
Returns a list of all the beliefs that have the specified attribute regardless of their left and right hand side values. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(Concept lhsConcept,
Relation relation)
Returns a list of all the beliefs that have the specified left hand side concept and relation regardless of their right hand side concept. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(Concept lhsConcept,
Relation relation,
int truthvalue)
Returns a list of all the beliefs that have the specified left hand side concept, relation and truth value regardless of their right hand side concept. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(Concept lhsConcept,
Relation relation,
java.lang.Object rhsConcept,
int truthvalue)
Returns a list of all the beliefs that have the specified left hand side concept, relation, right-hand side concept and truth value. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(java.lang.Object object)
Returns a list of all the beliefs that have the specified concept in either their left or right hand side. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(java.lang.Object lhsObject,
Attribute lhsAttribute)
Returns a list of all the beliefs that have the specified concept and attribute on their left hand side regardless of their relational operator or value. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(java.lang.Object lhsObject,
Attribute lhsAttribute,
int relation)
Returns a list of all the beliefs that have the specified concept and attribute on their left hand side and that use the specified relational operator. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(java.lang.Object lhsObject,
Attribute lhsAttribute,
int lhsCollectionIndex,
int relation)
Find and return the beliefs using the specified parameters. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(java.lang.Object lhsObject,
Attribute lhsAttribute,
int lhsCollectionIndex,
int relation,
java.lang.Object value)
Find and return the beliefs using the specified parameters. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(java.lang.Object lhsObject,
Attribute lhsAttribute,
int relation,
java.lang.Object value)
Find the belief(s) using the specified parameters and return the belief(s) if found. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(java.lang.Object lhsObject,
Attribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relation)
Find and return the beliefs using the specified parameters. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(java.lang.Object lhsObject,
Attribute lhsAttribute,
java.lang.String lhsCollectionIndex,
int relation,
java.lang.Object value)
Find and return the beliefs using the specified parameters. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(Relation relation)
Returns a list of all the beliefs that have the specified relation regardless of their left and right hand side concept. |
java.util.Enumeration<IBeliefCtx> |
getBeliefs(Relation relation,
java.lang.Object rhsConcept,
int truthvalue)
Returns a list of all the beliefs that have the specified relation and right hand side concept, and truth value regardless of their left hand side concept. |
java.util.Enumeration<IBeliefCtx> |
getBeliefsForIndex(java.lang.Object lhsObject,
Attribute lhsAttribute,
int lhsCollectionIndex)
Find and return the beliefs using the specified parameters. |
java.util.Enumeration<IBeliefCtx> |
getBeliefsForIndex(java.lang.Object lhsObject,
Attribute lhsAttribute,
java.lang.String lhsCollectionIndex)
Find and return the beliefs using the specified parameters. |
java.util.LinkedList<Concept> |
getContainedInstances()
Returns a list of the active instances contained by this active instance. |
Relation |
getContainsRelation()
Returns the relation used in facts and beliefs to specify the agents/ objects contained by this active instance. |
IConceptCtx |
getContext()
Returns the agent's context used in a virtual machine. |
gov.nasa.arc.brahms.vm.controller.VMController |
getController()
Returns the controller managing the active instance |
ModelElement |
getElement()
Returns the model element for which its memory is being managed. |
int |
getFactChangeSupport(java.lang.Object object)
Returns the current level of fact change support for a given Java object. |
gov.nasa.arc.brahms.vm.engine.rsn.ReasoningStateNetwork |
getFactRSN()
Returns the active instance's fact based reasoning state network. |
protected java.util.ListIterator<VMActiveInstanceCtx> |
getKnowsLocationOf()
Returns a list of contained instances we know the location of. |
Attribute |
getLocationAttribute()
Returns the attribute used to specify the location of the active instance in facts and beliefs about the active instance's location. |
abstract int |
getMatchingStrategy(VMFrameCtx frame)
Determines whether the active instance attempts to match facts or beliefs when evaluating OA operands that occur in expressions in the body of the given frame context. |
IThoughtframeCtx |
getPriorityAvailableThoughtframe()
Returns the highest priority available thoughtframe in the hierarchy of workframe contexts if a hierarchy exists due to the use of composite activities. |
IWorkframeCtx |
getPriorityAvailableWorkframe()
Returns the highest priority available workframe in the hierarchy of workframe contexts if a hierarchy exists due to the use of composite activities. |
IWorkframeCtx |
getPriorityInterruptedFrame()
Returns the highest priority interrupted workframe in the hierarchy of workframe contexts if a hierarchy exists due to the use of composite activities. |
java.util.Enumeration<IBeliefCtx> |
getRemoteBeliefs(ActiveInstance requestor)
Requests from this remote agent the set of beliefs matching the specified pattern. |
java.util.ListIterator<VMBeliefCtx> |
getRemovedBeliefs()
Returns the belief removed from the belief set as a result of an addBelief or removeBelief. |
java.util.List<gov.nasa.arc.brahms.vm.memory.SoftReference> |
getSoftReferences()
Returns a list of all the actors holding a soft reference to this element. |
java.util.List<gov.nasa.arc.brahms.vm.monitoring.IAgentStatusListener> |
getStatusListeners()
Returns a list of all of the registered IAgentStatusListeners. |
boolean |
hasAddedBelief()
Returns whether or not the active instance has added a belief after an addBelief. |
boolean |
hasEventReferences()
Indicates whether any events hold references to this element. |
boolean |
hasFrames()
Indicates whether this actor has any top-level frames (thought or work) indicating behavior. |
boolean |
hasRemovedBelief()
Returns whether or not the active instance has removed a belief after an addBelief or removeBelief. |
boolean |
hasSoftReferences()
Indicates whether there are any actors that hold a soft reference to this element. |
void |
initialize(gov.nasa.arc.brahms.vm.controller.VMController vmc,
long time)
Initializes the concept for use in a virtual machine controller by the specified virtual machine controller. |
protected void |
initializeMemoryManagement(ActiveInstance concept)
Initializes the state used for managing the memory for this element. |
void |
initiateDelete(long time)
Initiates the deletion of this element from memory causing the element to be marked as in the process of being deleted and causing the retraction of the facts referencing the element. |
boolean |
isAcceptingFacts()
Indicates whether this actor is interested in being notified of fact assertions/retractions. |
boolean |
isDeleted()
Indicates whether the element was deleted. |
boolean |
isDeleteInitiated()
Indicates whether the process to start the deletion of the element was started. |
boolean |
isMarkedForGC()
Indicates whether the element is marked for garbage collection. |
boolean |
isSynchronizationRequired()
Tests if the active instance needs to sync with the Scheduler first before performing a work selection. |
protected boolean |
knowsLocationOf(VMActiveInstanceCtx containedInstance)
Checks if the active instance knows the location of the specified contained instance. |
void |
pause()
Pauses the active instance, pausing the processing of new facts, beliefs and the execution of activities. |
void |
postEvent(gov.nasa.arc.brahms.vm.events.DiscreteEvent evt)
Posts the specified event on the active instance's discrete event queue for processing. |
void |
process(long time)
In simulation mode the Scheduler determines when an agent can process events up to what time. |
void |
processMessage(gov.nasa.ci.api.communication.ICommunicativeAct message)
Invoked when a new ICommunicativeAct was received intended for this actor. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
The property change method required of a PropertyChangeListener. |
void |
registerForMonitoring()
Registers this agent to be monitored by the agent monitor. |
void |
registerJavaObject(java.lang.Object object,
int beliefSupport,
int factSupport)
Registers a Java object that may have property change support with given levels of belief support and fact support. |
void |
registerThreadListener()
Registers a thread listener to detect when this agent's thread of execution is terminated and under what circumstances. |
void |
removeActiveDetectable(IDetectableCtx detectable)
Removes the specified detectable as an active detectable from the list of active detectables. |
void |
removeAllBeliefs()
Clears the active instance's belief set. |
void |
removeBelief(IBeliefCtx belief,
long time)
Removes the specified belief from the belief set of the active instance. |
void |
removeEventReference(gov.nasa.arc.brahms.vm.events.DiscreteEvent evt)
Removes the specified DiscreteEvent as an event in which this element is referenced. |
void |
removeFrameBindingReference(ActiveInstance refHolder,
gov.nasa.arc.brahms.vm.engine.rsn.RSNFrameNode frame,
gov.nasa.arc.brahms.vm.engine.rsn.RSNFrameNode.FrameBinding binding)
Removes the specified FrameBinding as a binding in which this element was used in a variable in the completed execution of the frame defined by the RSNFrameNode executed by the specified ActiveInstance. |
void |
removeHardReference(ActiveInstance refHolder,
long time)
Removes the specified refHolder as an ActiveInstance holding a hard reference to this concept. |
protected void |
removeKnowsLocationOf(VMActiveInstanceCtx containedInstance)
Removes the specified contained instance as a contained instance we know the location of. |
void |
removeSoftReference(ActiveInstance refHolder,
long time)
Removes the specified refHolder as an ActiveInstance holding a soft reference to this concept. |
void |
removeStatementReference(ActiveInstance refHolder,
VMStatementCtx statement,
long time)
Removes the specified VMStatementCtx as a statement in which the element is referenced, either on the left or right hand side retracted by the specified ActiveInstance. |
void |
removeStatusListener(gov.nasa.arc.brahms.vm.monitoring.IAgentStatusListener listener)
Removes the specified IAgentStatusListener as the listener to be notified of the agent's status and status changes. |
void |
reset()
Resets the concept removing its context and any references and additional components created to use this concept in a virtual machine. |
void |
resume()
Resumes the active instance from its state when it is paused, resuming the processing of new facts, beliefs and the execution of activities. |
void |
retractEvent(gov.nasa.arc.brahms.vm.events.DiscreteEvent evt)
Retracts the specified event from the active instance's discrete event queue to prevent processing. |
void |
setBeliefChangeSupport(java.lang.Object object,
int beliefSupport)
Sets the level of belief change support for a given Java object. |
protected void |
setController(gov.nasa.arc.brahms.vm.controller.VMController vmc)
Sets the virtual machine's controller for the virtual machine in which this active instance context is loaded. |
void |
setFactChangeSupport(java.lang.Object object,
int factSupport)
Sets the level of fact change support for a given Java object. |
void |
setMarkedForGC(boolean marked)
Sets whether the element is marked for garbage collection. |
void |
setSynchronizationRequired(boolean sync)
Sets the flag indicating whether the agent needs to synchronize itself with the scheduler before performing a work selection. |
void |
start()
Starts the active instance, starting the processing of new facts, beliefs and the execution of activities. |
void |
statusChanged(FrameStatusEvent evt)
Fired when the status of a frame context changes. |
void |
stop()
Stops and resets the active instance, stops all processing of facts, beliefs and execution of activities. |
void |
trigger(long time,
VMBeliefCtx belief)
Checks the triggers to see if the specified belief causes a trigger to be activated. |
void |
triggerImpasseResolution(long time,
VMBeliefCtx belief)
Checks the triggers of the detectables that caused an impasse to see if the specified belief can cause the impasse to be lifted. |
void |
unregisterJavaObject(java.lang.Object object)
Unregisters a Java object for monitoring by this active instance. |
Methods inherited from class gov.nasa.arc.brahms.common.rt.ConceptCtx |
---|
addAttribute, addRelation, getAttribute, getRelation, initAttributeRelationCache, removeAttribute, removeRelation, resetAttributeRelationCache, toString |
Methods inherited from class gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setContextFor, setEndTime, setID, setStartTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gov.nasa.arc.brahms.vm.engine.IPriorityWorkManager |
---|
getCurrentWork |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime |
Field Detail |
---|
protected gov.nasa.arc.brahms.vm.engine.IEngine m_oEngine
protected IStatementSet m_oBeliefSet
protected int[] m_oIncomingMessageLock
protected boolean m_bInitialized
protected java.util.LinkedList<gov.nasa.arc.brahms.vm.events.DiscreteEvent> m_llCIMessageQueue
protected java.util.LinkedList<java.lang.String> m_llReceivedMessageConversationIds
Constructor Detail |
---|
public VMActiveInstanceCtx(ActiveInstance ai)
ai
- the ActiveInstance for which to create a contextMethod Detail |
---|
protected final void setController(gov.nasa.arc.brahms.vm.controller.VMController vmc)
vmc
- the VMControllerpublic final boolean hasFrames()
public boolean isAcceptingFacts()
public abstract int getMatchingStrategy(VMFrameCtx frame) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
frame
- a VMFrameCtx where an expression is being evaluated
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an error occurs in determining the strategygov.nasa.arc.brahms.vm.data.FACTS
,
gov.nasa.arc.brahms.vm.data.BELIEFS
public void initialize(gov.nasa.arc.brahms.vm.controller.VMController vmc, long time) throws VMException
initialize
in interface IRuntimeConceptCtx
vmc
- the VMController controlling the virtual machine in which this
concept is to be used.time
- the time at which the initialization is performed
VMException
- if an error occurs in initializing the conceptprotected void initializeMemoryManagement(ActiveInstance concept)
concept
- the concept for which this is the contextpublic ModelElement getElement() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getElement
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there is an error obtaining the elementpublic gov.nasa.arc.brahms.vm.memory.HardReference addHardReference(ActiveInstance refHolder, long time)
addHardReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
refHolder
- the ActiveInstance holding a reference to this concepttime
- the event time at which the reference is added
public void removeHardReference(ActiveInstance refHolder, long time)
If the specified refHolder is not listed as a concept holding a reference to this concept then this method is a no-op.
removeHardReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
refHolder
- the ActiveInstance that no longer holds any
references to this concepttime
- the event time at which the reference is removedpublic gov.nasa.arc.brahms.vm.memory.SoftReference addSoftReference(ActiveInstance refHolder, long time)
addSoftReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
refHolder
- the ActiveInstance holding a reference to this
concepttime
- the event time at which the reference is added
public void removeSoftReference(ActiveInstance refHolder, long time)
If the specified refHolder is not listed as a concept holding a reference to this concept then this method is a no-op.
removeSoftReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
refHolder
- the ActiveInstance that no longers holds any
references to this concepttime
- the event time at which the reference is removedpublic boolean hasSoftReferences()
hasSoftReferences
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
public java.util.List<gov.nasa.arc.brahms.vm.memory.SoftReference> getSoftReferences()
getSoftReferences
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
public void addEventReference(gov.nasa.arc.brahms.vm.events.DiscreteEvent evt)
addEventReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
evt
- the DiscreteEvent in which the element is referencedpublic void removeEventReference(gov.nasa.arc.brahms.vm.events.DiscreteEvent evt)
removeEventReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
evt
- the DiscreteEvent in which the element is referencedpublic boolean hasEventReferences()
hasEventReferences
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
public void addStatementReference(ActiveInstance refHolder, VMStatementCtx statement, long time)
addStatementReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
refHolder
- the ActiveInstance that asserted the statement
referencing this elementstatement
- the VMStatementCtx to be addedtime
- the time at which the statement reference is addedpublic void removeStatementReference(ActiveInstance refHolder, VMStatementCtx statement, long time)
removeStatementReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
refHolder
- the ActiveInstance that retracted the statement
referencing this elementstatement
- the VMStatementCtx to be removedtime
- the time at which the statement reference is removedpublic void addFrameBindingReference(ActiveInstance refHolder, gov.nasa.arc.brahms.vm.engine.rsn.RSNFrameNode frame, gov.nasa.arc.brahms.vm.engine.rsn.RSNFrameNode.FrameBinding binding)
addFrameBindingReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
refHolder
- the ActiveInstance that executed the frameframe
- the RSNFrameNode in which the used binding is maintainedbinding
- the FrameBinding in which the element is referencedpublic void removeFrameBindingReference(ActiveInstance refHolder, gov.nasa.arc.brahms.vm.engine.rsn.RSNFrameNode frame, gov.nasa.arc.brahms.vm.engine.rsn.RSNFrameNode.FrameBinding binding)
removeFrameBindingReference
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
refHolder
- the ActiveInstance that executed the frameframe
- the RSNFrameNode in which the used binding is maintainedbinding
- the FrameBinding in which the element is referencedpublic void setMarkedForGC(boolean marked)
setMarkedForGC
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
marked
- true if marked, false if notpublic boolean isMarkedForGC()
isMarkedForGC
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
public void initiateDelete(long time)
initiateDelete
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
time
- the event time at which the element's deletion
is initiatedpublic boolean isDeleteInitiated()
isDeleteInitiated
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
public void finalizeDelete(long time)
finalizeDelete
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
time
- the event time at which the element's deletion is
finalizedpublic void addDeletedListener(gov.nasa.arc.brahms.vm.memory.IDeletedListener listener)
addDeletedListener
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
listener
- the IDeletedListener to be addedpublic boolean isDeleted()
isDeleted
in interface gov.nasa.arc.brahms.vm.memory.IMemoryManagedElement
public void processMessage(gov.nasa.ci.api.communication.ICommunicativeAct message)
message
- the ICommunicativeAct intended for this actorprotected abstract gov.nasa.arc.brahms.vm.engine.IEngine createEngine(gov.nasa.arc.brahms.vm.controller.VMController vmc) throws VMException
Note: This method always returns a new instance and does not verify whether one is already created.
vmc
- the virtual machine controller controlling the active instance
VMException
- if an error occurs in creating the enginepublic gov.nasa.arc.brahms.vm.engine.rsn.ReasoningStateNetwork getFactRSN()
Note that this method is public because the ReasoningStateNetwork requires access to it. No other component should use this method.
public final gov.nasa.arc.brahms.vm.engine.rsn.ReasoningStateNetwork getBeliefRSN()
Note that this method is public because the ReasoningStateNetwork requires access to it. No other component should use this method.
protected gov.nasa.arc.brahms.vm.engine.IWorkSelector createWorkSelector() throws VMException
Note: This method always returns a new instance and does not verify whether one is already created.
VMException
- if an error occurs in creating the work selectorpublic void doWork(long currentTime)
currentTime
- the time at which and for which work can be executed
throws VMError if an unexpected error occurs in executing the workpublic void setSynchronizationRequired(boolean sync)
sync
- true if synchronization is required, false otherwise.public boolean isSynchronizationRequired()
public void activateCompositeActivity(VMCompositeActivityCtx act)
act
- the context of the composite activity to be activatedpublic void deactivateCompositeActivity(VMCompositeActivityCtx act)
act
- the context of the composite activity to be deactivatedpublic void detect(long time, VMFactCtx fact)
time
- the time at which the detection is to take placefact
- the fact to be checked for detectionpublic void trigger(long time, VMBeliefCtx belief)
time
- the time at which the trigger is to be activatedbelief
- the belief to be checkedpublic void triggerImpasseResolution(long time, VMBeliefCtx belief)
time
- the time at which the trigger is to be activatedbelief
- the retracted belief to be checkedpublic void statusChanged(FrameStatusEvent evt)
statusChanged
in interface IFrameStatusListener
evt
- the FrameStatusEventFrameStatusEvent
public final gov.nasa.arc.brahms.vm.controller.VMController getController()
public void start() throws VMException
VMException
- if an error occurs in starting the active instancepublic void pause() throws VMException
VMException
- if an error occurs in pausing the active instancepublic void resume() throws VMException
VMException
- if an error occurs in resuming the active instancepublic void stop() throws VMException
VMException
- if an error occurs in stopping the active instancepublic void postEvent(gov.nasa.arc.brahms.vm.events.DiscreteEvent evt) throws VMException
evt
- the DiscreteEvent to be added to the event queue
VMException
- if an error occurs in adding the event to the queuepublic void retractEvent(gov.nasa.arc.brahms.vm.events.DiscreteEvent evt) throws VMException
evt
- the DiscreteEvent to be removed from the event queue
VMException
- if an error occurs in removing the event from the queuepublic void process(long time) throws VMException
Note: In real time mode the active instance processes any events as fast as possible without waiting for approval from the Scheduler. This method is considered irrelevant for the real time mode.
time
- the time of the events that can be processed,
up to and including the specified time
VMException
- if an error occurs in the continuation
of the processingpublic void reset() throws VMException
reset
in interface IRuntimeConceptCtx
VMException
- if in error occurs in resetting the active instancepublic void addBelief(IBeliefCtx belief, long time) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
belief
- the IBeliefCtx to be added to the belief set.time
- the discrete event time at which the belief is added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null belief is passed or of event
notification failspublic void removeBelief(IBeliefCtx belief, long time) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
belief
- the IBeliefCtx to be removed from the belief set.time
- the discrete event time at which the belief is removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if a null belief is passed, the specified belief is not present,
ot if event notification failedpublic IBeliefCtx getBelief(java.lang.Object lhsObject, Attribute lhsAttribute, int relation, java.lang.Object value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject
- the left hand side Object in the requested belieflhsAttribute
- the left hand side Attribute in the requested beliefrelation
- the relational operator in the requested beliefvalue
- the right hand side value to match
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public IBeliefCtx getBelief(java.lang.Object lhsObject, Attribute lhsAttribute, int lhsCollectionIndex, int relation, java.lang.Object value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject
- the left hand side Object in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelation
- the relational operator in the requested statementvalue
- the right hand side value to match
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public IBeliefCtx getBelief(java.lang.Object lhsObject, Attribute lhsAttribute, java.lang.String lhsCollectionIndex, int relation, java.lang.Object value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject
- the left hand side Object in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelation
- the relational operator in the requested statementvalue
- the right hand side value to match
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public IBeliefCtx getBelief(java.lang.Object lhsObject, Attribute lhsAttribute, int lhsCollectionIndex, int relation) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject
- the left hand side Object in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelation
- the relational operator in the requested belief
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public VMBeliefCtx getBelief(java.lang.Object lhsObject, Attribute lhsAttribute, java.lang.String lhsCollectionIndex, int relation) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject
- the left hand side Object in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelation
- the relational operator in the requested belief
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public IBeliefCtx getBeliefForIndex(java.lang.Object lhsObject, Attribute lhsAttribute, int lhsCollectionIndex) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject
- the left hand side Object in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the integer index/key if the attribute's type is a collection
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public IBeliefCtx getBeliefForIndex(java.lang.Object lhsObject, Attribute lhsAttribute, java.lang.String lhsCollectionIndex) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsObject
- the left hand side Object in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the String index/key if the attribute's type is a collection
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public IBeliefCtx getBelief(Concept lhsConcept, Relation relation, java.lang.Object rhsConcept, int truthValue) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsConcept
- the left hand side Concept in the requested beliefrelation
- the Relation in the requested beliefrhsConcept
- the right hand side Concept in the requested belief or the value unknowntruthValue
- the truth value in the requested belief (TRUE, FALSE, UNKNOWN)
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.TRUE
,
IConstants.FALSE
,
IConstants.UNKNOWN
,
IConstants.unknown
public java.util.Enumeration<IBeliefCtx> getBeliefs() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getBeliefs
in interface IActiveInstanceCtx
getBeliefs
in class ActiveInstanceCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic java.util.Enumeration<IBeliefCtx> getBeliefs(Attribute lhsAttribute) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsAttribute
- the left hand side Attribute in the requested belief(s)
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic java.util.Enumeration<IBeliefCtx> getBeliefs(java.lang.Object object) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
concept
- the Concept in the requested belief(s)
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic java.util.Enumeration<IBeliefCtx> getBeliefs(java.lang.Object lhsObject, Attribute lhsAttribute) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsConcept
- the left hand side Concept in the requested belief(s)lhsAttribute
- the left hand side Attribute in the requested belief(s)
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occurspublic java.util.Enumeration<IBeliefCtx> getBeliefs(java.lang.Object lhsObject, Attribute lhsAttribute, int relation) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsConcept
- the left hand side Concept in the requested belief(s)lhsAttribute
- the left hand side Attribute in the requested belief(s)relation
- the relational operator in the requested belief(s)
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public java.util.Enumeration<IBeliefCtx> getBeliefs(java.lang.Object lhsObject, Attribute lhsAttribute, int lhsCollectionIndex, int relation, java.lang.Object value)
lhsConcept
- the left hand side Concept in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelation
- the relational operator in the requested factvalue
- the right hand side value to match
IConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public java.util.Enumeration<IBeliefCtx> getBeliefs(java.lang.Object lhsObject, Attribute lhsAttribute, java.lang.String lhsCollectionIndex, int relation, java.lang.Object value)
lhsConcept
- the left hand side Concept in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelation
- the relational operator in the requested factvalue
- the right hand side value to match
IConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public java.util.Enumeration<IBeliefCtx> getBeliefs(java.lang.Object lhsObject, Attribute lhsAttribute, int relation, java.lang.Object value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
lhsConcept
- the left hand side Concept in the requested belieflhsAttribute
- the left hand side Attribute in the requested beliefrelation
- the relational operator in the requested beliefvalue
- the right hand side value to match
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if an internal error occursIConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public java.util.Enumeration<IBeliefCtx> getBeliefs(java.lang.Object lhsObject, Attribute lhsAttribute, int lhsCollectionIndex, int relation)
lhsConcept
- the left hand side Concept in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the integer index/key if the attribute's type is a collectionrelation
- the relational operator in the requested fact
IConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public java.util.Enumeration<IBeliefCtx> getBeliefs(java.lang.Object lhsObject, Attribute lhsAttribute, java.lang.String lhsCollectionIndex, int relation)
lhsConcept
- the left hand side Concept in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the String index/key if the attribute's type is a collectionrelation
- the relational operator in the requested fact
IConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public java.util.Enumeration<IBeliefCtx> getBeliefsForIndex(java.lang.Object lhsObject, Attribute lhsAttribute, int lhsCollectionIndex)
lhsConcept
- the left hand side Concept in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the integer index/key if the attribute's type is a collection
IConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public java.util.Enumeration<IBeliefCtx> getBeliefsForIndex(java.lang.Object lhsObject, Attribute lhsAttribute, java.lang.String lhsCollectionIndex)
lhsConcept
- the left hand side Concept in the requested belieflhsAttribute
- the left hand side Attribute in the requested belieflhsCollectionIndex
- the String index/key if the attribute's type is a collection
IConstants.EQ
,
IConstants.NE
,
IConstants.GT
,
IConstants.GE
,
IConstants.LT
,
IConstants.LE
public java.util.Enumeration<IBeliefCtx> getBeliefs(Relation relation)
relation
- the Relation in the requested belief(s)
public java.util.Enumeration<IBeliefCtx> getBeliefs(Concept lhsConcept, Relation relation)
lhsConcept
- the left hand side Concept in the requested belief(s)relation
- the Relation in the requested belief(s)
public java.util.Enumeration<IBeliefCtx> getBeliefs(Concept lhsConcept, Relation relation, int truthvalue)
lhsConcept
- the left hand side Concept in the requested belief(s)relation
- the Relation in the requested belief(s)truthvalue
- the truth value in the requested belief(s) (TRUE, FALSE, UNKNOWN)
IConstants.TRUE
,
IConstants.FALSE
,
IConstants.UNKNOWN
public java.util.Enumeration<IBeliefCtx> getBeliefs(Relation relation, java.lang.Object rhsConcept, int truthvalue)
relation
- the Relation in the requested belief(s)rhsConcept
- the right hand side Concept in the requested belief(s) or the value unknowntruthvalue
- the truth value in the requested belief(s) (TRUE, FALSE, UNKNOWN)
IConstants.TRUE
,
IConstants.FALSE
,
IConstants.UNKNOWN
,
IConstants.unknown
public java.util.Enumeration<IBeliefCtx> getBeliefs(Concept lhsConcept, Relation relation, java.lang.Object rhsConcept, int truthvalue)
lhsConcept
- the left hand side Concept in the requested belief(s)relation
- the Relation in the requested belief(s)rhsConcept
- the right hand side Concept in the requested belief(s) or the value unknowntruthvalue
- the truth value in the requested belief(s) (TRUE, FALSE, UNKNOWN)
IConstants.TRUE
,
IConstants.FALSE
,
IConstants.UNKNOWN
public java.util.Enumeration<IBeliefCtx> getRemoteBeliefs(ActiveInstance requestor) throws VMException
requestor
- the ActiveInstance requesting the beliefs
VMException
- if an error occurred during the belief retrievalpublic void removeAllBeliefs()
removeAllBeliefs
in interface IActiveInstanceCtx
removeAllBeliefs
in class ActiveInstanceCtx
public boolean hasAddedBelief()
public boolean hasRemovedBelief()
public java.util.ListIterator<VMBeliefCtx> getRemovedBeliefs()
hasRemovedBelief()
public boolean containsBelief(Statement statement)
Note that this method does not check whether the belief set contains the same statement reference as specified for this method, it only compares the contents of the statement to the beliefs in this belief set.
statement
- the belieft to be checked
public java.util.LinkedList<Concept> getContainedInstances()
protected void addKnowsLocationOf(VMActiveInstanceCtx containedInstance)
Note: This method is only used by VMAreaCtx to keep track of what location beliefs about a contained instance we need to re-assert when arriving in a location.
containedInstance
- the VMActiveInstanceCtx to be addedprotected void removeKnowsLocationOf(VMActiveInstanceCtx containedInstance)
Note: This method is only used by VMAreaCtx to keep track of what location beliefs about a contained instance we need to re-assert when arriving in a location.
containedInstance
- the VMActiveInstanceCtx to be removedprotected java.util.ListIterator<VMActiveInstanceCtx> getKnowsLocationOf()
Note: This method is only used by VMAreaCtx to keep track of what location beliefs about a contained instance we need to re-assert when arriving in a location.
protected boolean knowsLocationOf(VMActiveInstanceCtx containedInstance)
Note: This method is only used by VMAreaCtx to keep track of what location beliefs about a contained instance we need to re-assert when arriving in a location.
containedInstance
- the VMActiveInstanceCtx to be checked
protected void clearKnowsLocationOf()
public final Attribute getLocationAttribute()
public final Relation getContainsRelation()
public IWorkframeCtx getPriorityAvailableWorkframe()
getPriorityAvailableWorkframe
in interface gov.nasa.arc.brahms.vm.engine.IPriorityWorkManager
getPriorityAvailableWorkframe
in class ActiveInstanceCtx
public IThoughtframeCtx getPriorityAvailableThoughtframe()
getPriorityAvailableThoughtframe
in interface gov.nasa.arc.brahms.vm.engine.IPriorityWorkManager
getPriorityAvailableThoughtframe
in class ActiveInstanceCtx
public IWorkframeCtx getPriorityInterruptedFrame()
getPriorityInterruptedFrame
in interface gov.nasa.arc.brahms.vm.engine.IPriorityWorkManager
getPriorityInterruptedFrame
in class ActiveInstanceCtx
public void addActiveDetectable(IDetectableCtx detectable) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
detectable
- the IDetectableCtx for the detectable active in the workframe
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the detectable is nullpublic void removeActiveDetectable(IDetectableCtx detectable) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
detectable
- the IDetectableCtx for the detectable to be removed as an active detectable
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if the detectable is null or no active detectables exist
or the specified detectable is not foundpublic java.util.ListIterator<IDetectableCtx> getActiveDetectables() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if no active detectables existpublic void registerForMonitoring()
public void deregisterForMonitoring()
public void registerThreadListener()
public void deregisterThreadListener()
public java.util.List<gov.nasa.arc.brahms.vm.monitoring.IAgentStatusListener> getStatusListeners()
public void addStatusListener(gov.nasa.arc.brahms.vm.monitoring.IAgentStatusListener listener)
addStatusListener
in interface gov.nasa.arc.brahms.vm.monitoring.IMonitoredAgent
listener
- the IAgentStatusListener to be registeredpublic void removeStatusListener(gov.nasa.arc.brahms.vm.monitoring.IAgentStatusListener listener)
removeStatusListener
in interface gov.nasa.arc.brahms.vm.monitoring.IMonitoredAgent
listener
- the IAgentStatusListener to be deregisteredpublic IConceptCtx getContext()
getContext
in interface gov.nasa.arc.brahms.vm.monitoring.IMonitoredAgent
public int getBeliefChangeSupport(java.lang.Object object)
object
- the Java object that may have property change support
public void setBeliefChangeSupport(java.lang.Object object, int beliefSupport)
object
- the Java object that may have property change supportbeliefSupport
- the int between 0 and 100 representing the likelihoodpublic int getFactChangeSupport(java.lang.Object object)
object
- the Java object that may have property change support
public void setFactChangeSupport(java.lang.Object object, int factSupport)
object
- the Java object that may have property change supportfactSupport
- the int between 0 and 100 representing the likelihoodpublic void registerJavaObject(java.lang.Object object, int beliefSupport, int factSupport)
object
- beliefSupport
- factSupport
- public void unregisterJavaObject(java.lang.Object object)
object
- the Java object to be unregisteredpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- a JavaBean PropertyChangeEvent passed from the Java bean's PropertyChangeSupportPropertyChangeListener
,
PropertyChangeSupport
,
PropertyChangeEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |