|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IActiveInstance
An ActiveInstance is a generic concept that indicates that the instance can have behavior. It is a concept that can reason with beliefs or facts and can perform activities.
Field Summary |
---|
Fields inherited from interface gov.nasa.arc.brahms.vm.api.common.IUserDefinedType |
---|
UDT |
Method Summary | |
---|---|
void |
assertBelief(IBelief belief,
IContext ctx)
Schedules the assertion of the specified belief to the active instance's belief set. |
void |
assertBeliefs(IBelief[] beliefs,
IContext ctx)
Schedules the assertion of the specified beliefs to the active instance's belief set. |
IBelief |
getBelief(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
boolean value,
IContext ctx)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBelief |
getBelief(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
double value,
IContext ctx)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBelief |
getBelief(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
IConcept value,
IContext ctx)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBelief |
getBelief(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
int value,
IContext ctx)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBelief |
getBelief(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
IUnknown value,
IContext ctx)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBelief |
getBelief(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
java.lang.String value,
IContext ctx)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBelief |
getBelief(IConcept lhsConcept,
IRelation relation,
IConcept rhsConcept,
int truthValue,
IContext ctx)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
IBelief |
getBelief(IConcept lhsConcept,
IRelation relation,
IUnknown rhsConcept,
int truthValue,
IContext ctx)
Find the belief using the specified parameters and return the belief if found, null if the belief was not found. |
java.util.Enumeration |
getBeliefs(IAttribute lhsAttribute,
IContext ctx)
Returns a list of all the beliefs that have the specified attribute on their left hand side regardless of their lhs concept, relational operator or value. |
java.util.Enumeration |
getBeliefs(IConcept lhsConcept,
IAttribute lhsAttribute,
IContext ctx)
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 |
getBeliefs(IConcept lhsConcept,
IAttribute lhsAttribute,
int relop,
IContext ctx)
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 |
getBeliefs(IConcept lhsConcept,
IRelation relation,
IContext ctx)
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 |
getBeliefs(IConcept lhsConcept,
IRelation relation,
int truthvalue,
IContext ctx)
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 |
getBeliefs(IContext ctx)
Returns the active instance's belief set. |
java.util.Enumeration |
getBeliefs(IRelation relation,
IConcept rhsConcept,
int truthvalue,
IContext ctx)
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 |
getBeliefs(IRelation relation,
IContext ctx)
Returns a list of all the beliefs that have the specified relation regardless of their left and right hand side concept. |
java.util.Enumeration |
getBeliefs(IRelation relation,
IUnknown rhsConcept,
int truthvalue,
IContext ctx)
Returns a list of all the beliefs that have the specified relation, as right hand side 'unknown', and the specified truth value regardless of their left hand side concept. |
void |
retractBelief(IBelief belief,
IContext ctx)
Schedules the retraction of the specified belief from the active instance's belief set. |
Methods inherited from interface gov.nasa.arc.brahms.vm.api.common.IActiveConcept |
---|
hasThoughtframes, hasWorkframes |
Methods inherited from interface gov.nasa.arc.brahms.vm.api.common.IConcept |
---|
getAttribute, getName, getRelation, isLocal |
Methods inherited from interface gov.nasa.arc.brahms.vm.api.common.IType |
---|
getType |
Method Detail |
---|
void assertBelief(IBelief belief, IContext ctx) throws ExternalException
belief
- the IBelief to be assertedctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
void assertBeliefs(IBelief[] beliefs, IContext ctx) throws ExternalException
beliefs
- the set of IBelief to be assertedctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
void retractBelief(IBelief belief, IContext ctx) throws ExternalException
belief
- the IBelief to be assertedctx
- the IContext for the action
ExternalException
- if an internal error occursIBelief getBelief(IConcept lhsConcept, IAttribute lhsAttribute, int relop, int value, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belieflhsAttribute
- the left hand side IAttribute in the requested beliefrelop
- the relational operator in the requested beliefvalue
- the right hand side integer value in the requested beliefctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IBelief getBelief(IConcept lhsConcept, IAttribute lhsAttribute, int relop, double value, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belieflhsAttribute
- the left hand side IAttribute in the requested beliefrelop
- the relational operator in the requested beliefvalue
- the right hand side double value in the requested beliefctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IBelief getBelief(IConcept lhsConcept, IAttribute lhsAttribute, int relop, boolean value, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belieflhsAttribute
- the left hand side IAttribute in the requested beliefrelop
- the relational operator in the requested beliefvalue
- the right hand side boolean value in the requested beliefctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IBelief getBelief(IConcept lhsConcept, IAttribute lhsAttribute, int relop, java.lang.String value, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belieflhsAttribute
- the left hand side IAttribute in the requested beliefrelop
- the relational operator in the requested beliefvalue
- the right hand side string or symbol value in the requested beliefctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IBelief getBelief(IConcept lhsConcept, IAttribute lhsAttribute, int relop, IConcept value, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belieflhsAttribute
- the left hand side IAttribute in the requested beliefrelop
- the relational operator in the requested beliefvalue
- the right hand side IConcept value in the requested beliefctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
IBelief getBelief(IConcept lhsConcept, IAttribute lhsAttribute, int relop, IUnknown value, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belieflhsAttribute
- the left hand side IAttribute in the requested beliefrelop
- the relational operator in the requested beliefvalue
- the right hand side 'unknown' value in the requested factctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
,
IUnknown.UNKNOWN
IBelief getBelief(IConcept lhsConcept, IRelation relation, IConcept rhsConcept, int truthValue, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested beliefrelation
- the IRelation in the requested beliefrhsConcept
- the right hand side IConcept in the requested belieftruthvalue
- the truth value in the requested belief (TRUE, FALSE, UNKNOWN)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
ITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
IBelief getBelief(IConcept lhsConcept, IRelation relation, IUnknown rhsConcept, int truthValue, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested beliefrelation
- the IRelation in the requested beliefrhsConcept
- the right hand side 'unknown' value in the requested facttruthvalue
- the truth value in the requested belief (TRUE, FALSE, UNKNOWN)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
ITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
,
ITruthValue.UNKNOWN
java.util.Enumeration getBeliefs(IContext ctx) throws ExternalException
ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
java.util.Enumeration getBeliefs(IAttribute lhsAttribute, IContext ctx) throws ExternalException
lhsAttribute
- the left hand side IAttribute in the requested belief(s)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
java.util.Enumeration getBeliefs(IConcept lhsConcept, IAttribute lhsAttribute, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belief(s)lhsAttribute
- the left hand side IAttribute in the requested belief(s)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
java.util.Enumeration getBeliefs(IConcept lhsConcept, IAttribute lhsAttribute, int relop, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belief(s)lhsAttribute
- the left hand side IAttribute in the requested belief(s)relop
- the relational operator in the requested belief(s)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
IRelationalOperator.EQUALS
,
IRelationalOperator.NOT_EQUALS
java.util.Enumeration getBeliefs(IRelation relation, IContext ctx) throws ExternalException
relation
- the IRelation in the requested belief(s)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
java.util.Enumeration getBeliefs(IConcept lhsConcept, IRelation relation, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belief(s)relation
- the IRelation in the requested belief(s)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
java.util.Enumeration getBeliefs(IConcept lhsConcept, IRelation relation, int truthvalue, IContext ctx) throws ExternalException
lhsConcept
- the left hand side IConcept in the requested belief(s)relation
- the IRelation in the requested belief(s)truthvalue
- the truth value in the requested belief(s) (TRUE, FALSE, UNKNOWN)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
ITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
java.util.Enumeration getBeliefs(IRelation relation, IConcept rhsConcept, int truthvalue, IContext ctx) throws ExternalException
relation
- the IRelation in the requested belief(s)rhsConcept
- the right hand side IConcept in the requested belief(s)truthvalue
- the truth value in the requested belief(s) (TRUE, FALSE, UNKNOWN)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
ITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
java.util.Enumeration getBeliefs(IRelation relation, IUnknown rhsConcept, int truthvalue, IContext ctx) throws ExternalException
relation
- the IRelation in the requested belief(s)rhsConcept
- the right hand side 'unknown' value in the requested fact(s)truthvalue
- the truth value in the requested belief(s) (TRUE, FALSE, UNKNOWN)ctx
- the IContext for the action
ExternalException
- if an internal error occurs, in case of a
communication failure the linked exception will be one of
NotLocatableException, TransportFailure, or MessageNotRepliedToExceptionjavax.agent.service.transport.NotLocatableException
,
javax.agent.service.transport.TransportFailure
,
MessageNotRepliedToException
,
IUnknown.UNKNOWN
,
ITruthValue.TRUE
,
ITruthValue.FALSE
,
ITruthValue.UNKNOWN
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |