|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.data.BrahmsObject gov.nasa.arc.brahms.common.data.ModelElement gov.nasa.arc.brahms.common.data.NamedModelElement gov.nasa.arc.brahms.common.data.Concept gov.nasa.arc.brahms.common.data.ActiveConcept gov.nasa.arc.brahms.common.data.ActiveInstance gov.nasa.arc.brahms.common.data.ObjectInstance
public class ObjectInstance
An 'object' in Brahms is the second most central element in a Brahms model. An object represents a specific artifact in the world. It is possible to model the activities of an artifact in an organization. For example the data processing activities of a computer system can be modeled. The activities can be defined in the object's class (which will be inherited by the object) and/or can be defined for the object itself.
Field Summary |
---|
Fields inherited from class gov.nasa.arc.brahms.common.data.Concept |
---|
ATTRIBUTES_PROPERTY, RELATIONS_PROPERTY |
Fields inherited from class gov.nasa.arc.brahms.common.data.NamedModelElement |
---|
NAME_PROPERTY |
Fields inherited from interface gov.nasa.arc.brahms.common.IConstants |
---|
ABORT, ACTIVECLASS, ACTIVECONCEPT, ACTIVEINSTANCE, AGENT, ANONYMOUS, ANYAGENT, AREA, AREADEF, ASSIGNED, ATTRIBUTE, BASEAREADEF, BASECLASS, BASECONCEPTUALCLASS, BASEGROUP, BASELIBRARY, BOOLEAN, BROADCAST, BUILDING, BYTE, CCLOCK, CDATE, CHAR, CITY, CLASS, CLOCK, COLLECTALL, COMMUNICATE, COMPLETE, COMPOSITE, COMPUTER, CONCEPT, CONCEPTUALCLASS, CONCEPTUALCONCEPT, CONCEPTUALOBJECT, CONTINUE, COPY, CREATEAGENT, CREATEAREA, CREATEOBJECT, current, CURRENT, DATAFRAME, DATE, DB, DETECTABLE, DIV, DOUBLE, EMAIL, EMPTY_STRING, END, ENDACTIVITY, ENTAGENT, EQ, EXCEPTION, EXPR, FACE2FACE, FACTFRAME, FALSE, FAX, FLOAT, FOREACH, FORONE, G2, GE, GEOGRAPHYCONCEPT, GESTURE, GET, GROUP, GT, IMPASSE, INT, INVALID, JAVA, JAVA_TYPE, KNOWN_MODIFIER, KNOWNVAL_MODIFIER, LE, LOCAL, LONG, LT, MAP, MINUS, MOD, MOVE, MULT, NE, NEW, NONE, NOT_MODIFIER, NOWORK, O, OA, OBJECT, ONTOLOGY, PAGER, PARAMETER, PATH, PHONE, PLUS, PRIMITIVE, PRIVATE, PROAGENT, PROTECTED, PRSAGENT, PUBLIC, PUT, RECEIVE, RELATION, sACTIVECLASS, sACTIVECONCEPT, sACTIVEINSTANCE, sAGENT, sARCHIVE, sAREA, sAREADEF, sBOOLEAN, sBYTE, sBYTECODEEXT, sCHAR, sCLASS, sCOMPUTER, sCONCEPT, sCONCEPTUALCLASS, sCONCEPTUALCONCEPT, sCONCEPTUALOBJECT, sCOPY, sCURRENT, sDETECTABLE, sDOUBLE, sEMAIL, sEND, SEND, sFACE2FACE, sFAX, sFILEEXT, sFLOAT, sGEOGRAPHYCONCEPT, sGROUP, SHORT, SIMAGENT, sINT, sJAVA_TYPE, sLONG, sMAP, sNEW, sNONE, sNOWORK, sOBJECT, SOURCECODE, sPAGER, sPARAMETER, sPATH, sPHONE, sPRIVATE, sPROJECTEXT, sPROTECTED, sPUBLIC, sSHORT, sSTART, sSTRING, sSYMBOL, START, STRING, sUNKNOWN, sVOID, SYMBOL, TRUE, UDT, UML, UNASSIGNED, UNDEFINED, unknown, UNKNOWN, UNKNOWN_MODIFIER, V, VARIABLE, VOID, WHENEVER, WORKFRAME, WORLD, XML |
Constructor Summary | |
---|---|
ObjectInstance()
|
|
ObjectInstance(java.lang.String name)
|
|
ObjectInstance(java.lang.String file,
int line)
|
|
ObjectInstance(java.lang.String name,
java.lang.String file,
int line)
|
Method Summary | |
---|---|
boolean |
addAggregate(ConceptualInstance concept)
|
IConceptCtx |
createContext()
Creates a new context for this concept for use in a virtual machine. |
void |
delete()
Deletes this group from the model and removes all references to this group in other model elements. |
protected java.util.LinkedList<Activity> |
getActivitiesRecursive(boolean includeThis)
Returns the active concepts' activities including the activities inherited from its parent class and their parent super classes. |
protected java.util.LinkedList<Activity> |
getActivitiesRecursive(java.lang.String name,
boolean includeThis)
Searches for all activities with the specified name through the concept hierarchy breadth first. |
protected Activity |
getActivityByDescriptorRecursive(java.lang.String descriptor,
boolean includeThis)
Searches for the activity with the specified descriptor through the concept hierarchy breadth first. |
ConceptualInstance |
getAggregate(java.lang.String name)
|
java.util.Enumeration |
getAggregates()
|
protected Attribute |
getAttributeRecursive(java.lang.String name,
boolean includeThis)
Searches for the attribute with the specified name through the concept hierarchy breadth first. |
protected java.util.LinkedList<Attribute> |
getAttributesRecursive(boolean includeThis)
Returns the active concepts' attributes including the attributes inherited from its parent class and their parent super classes. |
protected java.util.LinkedList<InitialStatement> |
getInitialBeliefsRecursive(boolean includeThis)
Returns the active concepts' initial beliefs including the initial beliefs of its parent class and their parent super classes. |
protected java.util.LinkedList<InitialStatement> |
getInitialFactsRecursive(boolean includeThis)
Returns the active concepts' initial facts including the initial facts of its parent class and their parent super classes. |
ObjectClass |
getParent()
|
java.util.LinkedList<ObjectClass> |
getParents(boolean includeParents)
Returns all parents for this concept, if includeParents is true it will include all parents, direct and indirect, breadth first. |
protected Relation |
getRelationRecursive(java.lang.String name,
boolean includeThis)
Searches for the relation with the specified name through the concept hierarchy breadth first. |
protected java.util.LinkedList<Relation> |
getRelationsRecursive(boolean includeThis)
Returns the active concepts' relations including the relations inherited from its parent class and their parent super classes. |
protected java.util.LinkedList<Thoughtframe> |
getThoughtframesRecursive(boolean includeThis,
boolean includeComposites)
Returns the active concepts' thoughtframes including the thoughtframes of its parent class and their parent super classes. |
protected java.util.LinkedList<Workframe> |
getWorkframesRecursive(boolean includeThis,
boolean includeComposites)
Returns the active concepts' workframes including the workframes of its parent class and their parent super classes. |
boolean |
hasAggregates()
|
boolean |
isInstanceOf(Concept concept)
Checks whether this object instance is an instance of the specified concept. |
boolean |
isPartOf(java.lang.String aggregateName)
Checks whether this object is part of the given aggregate |
boolean |
isResource()
|
boolean |
removeAggregate(java.lang.String name)
|
protected void |
setID()
Sets the unique identifier. |
void |
setParent(ObjectClass parent)
|
void |
setResource(boolean value)
|
Methods inherited from class gov.nasa.arc.brahms.common.data.ActiveInstance |
---|
getLocation, setLocation |
Methods inherited from class gov.nasa.arc.brahms.common.data.Concept |
---|
addAttribute, addRelation, compareTypes, equals, getAttribute, getAttributes, getContext, getFullyQualifiedName, getIcon, getModel, getName, getPackage, getRelation, getRelations, getType, hasAttributes, hasRelations, isLocal, isSerializable, removeAttribute, removeRelation, setContext, setIcon, setLocal, setModel, setPackage, setSerializable, toString |
Methods inherited from class gov.nasa.arc.brahms.common.data.NamedModelElement |
---|
getDisplayText, getOwner, setDisplayText, setFullyQualifiedName, setName, setOwner |
Methods inherited from class gov.nasa.arc.brahms.common.data.BrahmsObject |
---|
export, getFile, getID, getLine, getSerialNumber, isBCC, isDynamic, isLoaded, isResolved, setBCC, setDynamic, setFile, setID, setLine, setLoaded, setResolved, setSerialNumber |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gov.nasa.arc.brahms.common.data.Type |
---|
getSerialNumber |
Constructor Detail |
---|
public ObjectInstance()
public ObjectInstance(java.lang.String name)
public ObjectInstance(java.lang.String file, int line)
public ObjectInstance(java.lang.String name, java.lang.String file, int line)
Method Detail |
---|
protected void setID()
setID
in class BrahmsObject
public void setParent(ObjectClass parent)
public ObjectClass getParent()
public java.util.LinkedList<ObjectClass> getParents(boolean includeParents)
includeParents
- true if also indirect parents are to be included
in the list, false if only the direct parents are to be returned
public void setResource(boolean value)
public boolean isResource()
public boolean addAggregate(ConceptualInstance concept)
public boolean removeAggregate(java.lang.String name)
public ConceptualInstance getAggregate(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public boolean hasAggregates()
public java.util.Enumeration getAggregates()
public boolean isPartOf(java.lang.String aggregateName)
aggregateName
- the name of the aggregate
public void delete()
delete
in class ActiveConcept
protected Attribute getAttributeRecursive(java.lang.String name, boolean includeThis)
getAttributeRecursive
in class ActiveConcept
name
- the name of the attribute to be foundincludeThis
- flag indicating whether to search for the attribute in
this concept or only to search in the parents
protected java.util.LinkedList<Attribute> getAttributesRecursive(boolean includeThis)
Note:When processing this list in other methods and an attribute with the same name occurs more then once, then only the last occurrence is to be used by the active concept. The list contains the attibutes starting with the attributes highest in the class hierarchy.
getAttributesRecursive
in class ActiveConcept
includeThis
- flag indicating whether to include the attibutes for
this concept or only to return the parent attributes
protected Relation getRelationRecursive(java.lang.String name, boolean includeThis)
getRelationRecursive
in class ActiveConcept
name
- the name of the relation to be foundincludeThis
- flag indicating whether to search for the relation in
this concept or only to search in the parents
protected java.util.LinkedList<Relation> getRelationsRecursive(boolean includeThis)
Note:When processing this list in other methods and an relation with the same name occurs more then once, then only the last occurrence is to be used by the active concept. The list contains the relations starting with the relations highest in the class hierarchy.
getRelationsRecursive
in class ActiveConcept
includeThis
- flag indicating whether to include the relations for
this concept or only to return the parent relations
protected java.util.LinkedList<InitialStatement> getInitialBeliefsRecursive(boolean includeThis)
Note:The list contains the initial beliefs starting with the initial beliefs lowest in the class hierarchy.
getInitialBeliefsRecursive
in class ActiveConcept
includeThis
- flag indicating whether to include the initial beliefs for this concept or
only to return the parent initial beliefs
protected java.util.LinkedList<InitialStatement> getInitialFactsRecursive(boolean includeThis)
Note:The list contains the initial facts starting with the initial facts lowest in the class hierarchy.
getInitialFactsRecursive
in class ActiveConcept
includeThis
- flag indicating whether to include the initial facts for this concept or
only to return the parent initial facts
protected java.util.LinkedList<Activity> getActivitiesRecursive(java.lang.String name, boolean includeThis)
getActivitiesRecursive
in class ActiveConcept
name
- the name of the activity to be foundincludeThis
- flag indicating whether to search for the activity in
this concept or only to search in the parents
protected Activity getActivityByDescriptorRecursive(java.lang.String descriptor, boolean includeThis)
getActivityByDescriptorRecursive
in class ActiveConcept
descriptor
- the descriptor of the activity to be foundincludeThis
- flag indicating whether to search for the activity in
this concept or only to search in the parents
protected java.util.LinkedList<Activity> getActivitiesRecursive(boolean includeThis)
Note:When processing this list in other methods and an activity with the same name occurs more then once, then only the last occurrence is to be used by the active concept. The list contains the activities starting with the activities highest in the class hierarchy.
getActivitiesRecursive
in class ActiveConcept
includeThis
- flag indicating whether to include the activities for
this concept or only to return the parent activities
protected java.util.LinkedList<Workframe> getWorkframesRecursive(boolean includeThis, boolean includeComposites)
Note:When processing this list in other methods and a workframe with the same name occurs more then once, then only the last occurrence is to be used by the active concept. The list contains the frames starting with the frames highest in the class hierarchy.
getWorkframesRecursive
in class ActiveConcept
includeThis
- flag indicating whether to include the frames for this concept or
only to return the parent framesincludeComposites
- true if also the workframes specified in composite activities
are to be returned.
protected java.util.LinkedList<Thoughtframe> getThoughtframesRecursive(boolean includeThis, boolean includeComposites)
Note:When processing this list in other methods and a thoughtframe with the same name occurs more then once, then only the last occurrence is to be used by the active concept. The list contains the frames starting with the frames highest in the class hierarchy.
getThoughtframesRecursive
in class ActiveConcept
includeThis
- flag indicating whether to include the frames for this concept or
only to return the parent framesincludeComposites
- true if also the thoughtframes specified in composite activities
are to be returned.
public IConceptCtx createContext()
Note: This method always returns a new instance and does not verify whether one is already created.
createContext
in class ActiveInstance
public boolean isInstanceOf(Concept concept)
isInstanceOf
in class ActiveInstance
concept
- the Concept to be checked to see if this object
instance is an instance of the concept
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |