|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.vm.api.common.BrahmsGroupDescriptor
public class BrahmsGroupDescriptor
BrahmsGroupDescriptor maintains a record of a Brahms group and its attributes and relations.
Constructor Summary | |
---|---|
BrahmsGroupDescriptor(java.lang.String qualifiedname)
Constructors, creates a new record about a Brahms Group with the specified qualified name. |
Method Summary | |
---|---|
IAttribute |
getBrahmsAttribute(java.lang.String name)
Returns the Brahms attribute with the specified name. |
java.util.Collection<IAttribute> |
getBrahmsAttributes()
Returns the list of Brahms attributes declared for this group. |
IGroup |
getBrahmsGroup()
Returns the Brahms group. |
IRelation |
getBrahmsRelation(java.lang.String name)
Returns the Brahms relation with the specified name. |
java.util.Collection<IRelation> |
getBrahmsRelations()
Returns the list of Brahms relations declared for this group. |
java.lang.String |
getQualifiedName()
Returns the group's qualified name. |
java.lang.String |
getSimpleName()
Returns the group's simple name. |
java.lang.Object |
getValue(IAgent agt,
IAttribute lhsAttribute,
IContext brahmsCtx)
Returns the value for the attribute of the specified agent. |
java.lang.Object |
getValue(IAgent source,
IConcept lhsConcept,
IAttribute lhsAttribute,
IContext brahmsCtx)
Returns the value for the attribute of the specified agent. |
java.lang.Object |
getValue(IAgent source,
IConcept lhsConcept,
IRelation rel,
IContext brahmsCtx)
Returns the values for the relation of the specified agent. |
java.lang.Object |
getValue(IAgent agt,
IRelation rel,
IContext brahmsCtx)
Returns the values for the relation of the specified agent. |
void |
setValue(IAgent agt,
IAttribute att,
java.lang.Object value,
IContext brahmsCtx)
Sets the value for the attribute of the specified agent. |
void |
setValue(IAgent destination,
IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.Object value,
IContext brahmsCtx)
Sets the value for the attribute of the specified agent. |
void |
setValue(IAgent destination,
IConcept lhsConcept,
IRelation rel,
java.lang.Object value,
IContext brahmsCtx)
Sets the value for the relation of the specified agent. |
void |
setValue(IAgent agt,
IRelation rel,
java.lang.Object value,
IContext brahmsCtx)
Sets the value for the relation of the specified agent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BrahmsGroupDescriptor(java.lang.String qualifiedname)
qualifiedname
- the group's qualified nameMethod Detail |
---|
public java.lang.String getSimpleName()
public java.lang.String getQualifiedName()
public IGroup getBrahmsGroup() throws ExternalException
ExternalException
- if the group could not be foundpublic java.util.Collection<IAttribute> getBrahmsAttributes() throws ExternalException
ExternalException
- if there was a problem obtaining the attribute listpublic IAttribute getBrahmsAttribute(java.lang.String name) throws ExternalException
name
- the attribute name
ExternalException
- if the attribute could not be foundpublic java.util.Collection<IRelation> getBrahmsRelations() throws ExternalException
ExternalException
- if there was a problem obtaining the relation listpublic IRelation getBrahmsRelation(java.lang.String name) throws ExternalException
name
- the relation name
ExternalException
- if the relation could not be foundpublic java.lang.Object getValue(IAgent agt, IAttribute lhsAttribute, IContext brahmsCtx) throws ExternalException
public java.lang.Object getValue(IAgent source, IConcept lhsConcept, IAttribute lhsAttribute, IContext brahmsCtx) throws ExternalException
public java.lang.Object getValue(IAgent agt, IRelation rel, IContext brahmsCtx) throws ExternalException
agt
- the IAgent holding the belief and also the left hand
side concept of the belief from which to obtain the valuerel
- the IRelation to obtain the values forbrahmsCtx
- the IContext used to obtain the values
ExternalException
- if there was a problem obtaining the valuespublic java.lang.Object getValue(IAgent source, IConcept lhsConcept, IRelation rel, IContext brahmsCtx) throws ExternalException
source
- the IAgent holding the belief from which to obtain the valuelhsConcept
- the left hand side IConcept in the belief from
which to obtain the valuerel
- the IRelation to obtain the values forbrahmsCtx
- the IContext used to obtain the values
ExternalException
- if there was a problem obtaining the valuespublic void setValue(IAgent agt, IAttribute att, java.lang.Object value, IContext brahmsCtx) throws ExternalException
Note: Assumes that the specified value is a valid Brahms value. If a Map
public void setValue(IAgent destination, IConcept lhsConcept, IAttribute lhsAttribute, java.lang.Object value, IContext brahmsCtx) throws ExternalException
Note: Assumes that the specified value is a valid Brahms value. If a Map
public void setValue(IAgent agt, IRelation rel, java.lang.Object value, IContext brahmsCtx) throws ExternalException
Note: Assumes that the specified value is a valid Brahms value. If a Collection
public void setValue(IAgent destination, IConcept lhsConcept, IRelation rel, java.lang.Object value, IContext brahmsCtx) throws ExternalException
Note: Assumes that the specified value is a valid Brahms value. If a Collection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |