|
||||||||||
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.BrahmsClassDescriptor
public class BrahmsClassDescriptor
BrahmsClassDescriptor maintains a record of the Brahms class and its attributes and relations.
Constructor Summary | |
---|---|
BrahmsClassDescriptor(java.lang.String qualifiedname)
Constructors, creates a new record about a Brahms Class 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 class. |
IClass |
getBrahmsClass()
Returns the Brahms class. |
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 class. |
java.lang.String |
getQualifiedName()
Returns the class' qualified name. |
java.lang.String |
getSimpleName()
Returns the class' simple name. |
java.lang.Object |
getValue(IObject obj,
IAttribute lhsAttribute,
IContext brahmsCtx)
Returns the value for the attribute of the specified object. |
java.lang.Object |
getValue(IObject source,
IConcept lhsConcept,
IAttribute lhsAttribute,
IContext brahmsCtx)
Returns the value for the attribute of the specified object. |
java.lang.Object |
getValue(IObject source,
IConcept lhsConcept,
IRelation rel,
IContext brahmsCtx)
Returns the values for the relation of the specified object. |
java.lang.Object |
getValue(IObject obj,
IRelation rel,
IContext brahmsCtx)
Returns the values for the relation of the specified object. |
void |
setValue(IObject obj,
IAttribute att,
java.lang.Object value,
IContext brahmsCtx)
Sets the value for the attribute of the specified object. |
void |
setValue(IObject destination,
IConcept lhsConcept,
IAttribute lhsAttribute,
java.lang.Object value,
IContext brahmsCtx)
Sets the value for the attribute of the specified object. |
void |
setValue(IObject destination,
IConcept lhsConcept,
IRelation rel,
java.lang.Object value,
IContext brahmsCtx)
Sets the value for the relation of the specified object. |
void |
setValue(IObject obj,
IRelation rel,
java.lang.Object value,
IContext brahmsCtx)
Sets the value for the relation of the specified object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BrahmsClassDescriptor(java.lang.String qualifiedname)
qualifiedname
- the class' qualified nameMethod Detail |
---|
public java.lang.String getSimpleName()
public java.lang.String getQualifiedName()
public IClass getBrahmsClass() throws ExternalException
ExternalException
- if the class 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(IObject obj, IAttribute lhsAttribute, IContext brahmsCtx) throws ExternalException
public java.lang.Object getValue(IObject source, IConcept lhsConcept, IAttribute lhsAttribute, IContext brahmsCtx) throws ExternalException
public java.lang.Object getValue(IObject obj, IRelation rel, IContext brahmsCtx) throws ExternalException
obj
- the IObject 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(IObject source, IConcept lhsConcept, IRelation rel, IContext brahmsCtx) throws ExternalException
source
- the IObject 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(IObject obj, 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(IObject 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(IObject obj, 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(IObject 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 |