|
||||||||||
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.GeographyConcept gov.nasa.arc.brahms.common.data.Area
public class Area
An area represents a geographical location and is used to create a geographical representation for use in the model. Examples are 'NewYorkCity', 'WorldTradeCenter', etc. Area's are instances of area definitions.
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 | |
---|---|
Area()
|
|
Area(java.lang.String name)
|
|
Area(java.lang.String file,
int line)
|
|
Area(java.lang.String name,
java.lang.String file,
int line)
|
Method Summary | |
---|---|
boolean |
addSubAggregate(Area concept)
|
IConceptCtx |
createContext()
Creates a new context for this concept for use in a virtual machine. |
void |
delete()
Deletes this element from the model and removes all references to this element in other model elements. |
Area |
getAggregate()
|
Attribute |
getAttribute(java.lang.String name,
boolean includeParents)
Returns the Attribute with the specified name. |
protected Attribute |
getAttributeRecursive(java.lang.String name,
boolean includeThis)
Searches for the attribute with the specified name through the concept hierarchy breadth first. |
java.util.Enumeration |
getAttributes(boolean includeParents)
Returns the area's attributes. |
protected java.util.LinkedList<Attribute> |
getAttributesRecursive(boolean includeThis)
Returns the area's attributes including the attributes inherited from its parent class and their parent super classes. |
java.util.Enumeration |
getInitialFacts(boolean includeParents)
Returns the area's initial facts. |
protected java.util.LinkedList<InitialStatement> |
getInitialFactsRecursive(boolean includeThis)
Returns the area's initial facts including the initial facts of its parent class and their parent super classes. |
AreaDef |
getParent()
|
java.util.LinkedList<AreaDef> |
getParents(boolean includeParents)
Returns all parents for this concept, if includeParents is true it will include all parents, direct and indirect, breadth first. |
Relation |
getRelation(java.lang.String name,
boolean includeParents)
Returns the Relation with the specified name. |
protected Relation |
getRelationRecursive(java.lang.String name,
boolean includeThis)
Searches for the relation with the specified name through the concept hierarchy breadth first. |
java.util.Enumeration |
getRelations(boolean includeParents)
Returns the area's relations. |
protected java.util.LinkedList<Relation> |
getRelationsRecursive(boolean includeThis)
Returns the area's relations including the relations inherited from its parent class and their parent super classes. |
Area |
getSubAggregate(java.lang.String name)
|
java.util.Enumeration |
getSubAggregates()
|
java.util.Enumeration |
getSubAggregates(boolean recursive)
|
boolean |
hasSubAggregates()
|
boolean |
isInstanceOf(Concept concept)
Checks whether this area is an instance of the specified concept. |
boolean |
removeSubAggregate(java.lang.String name)
|
void |
setAggregate(Area area)
|
protected void |
setID()
Sets the unique identifier. |
void |
setParent(AreaDef parent)
|
Methods inherited from class gov.nasa.arc.brahms.common.data.GeographyConcept |
---|
addInitialFact, getInitialFacts, hasInitialFacts |
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 Area()
public Area(java.lang.String name)
public Area(java.lang.String file, int line)
public Area(java.lang.String name, java.lang.String file, int line)
Method Detail |
---|
protected void setID()
setID
in class BrahmsObject
public void setParent(AreaDef parent)
public AreaDef getParent()
public java.util.LinkedList<AreaDef> getParents(boolean includeParents)
includeParents
- true if also indirect parents are to be included
in the list, false if only th direct parents are to be returned
public void setAggregate(Area area)
public Area getAggregate()
public boolean addSubAggregate(Area concept)
public boolean removeSubAggregate(java.lang.String name)
public Area getSubAggregate(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public boolean hasSubAggregates()
public java.util.Enumeration getSubAggregates()
public java.util.Enumeration getSubAggregates(boolean recursive)
public Attribute getAttribute(java.lang.String name, boolean includeParents) throws java.util.NoSuchElementException
getAttribute
in class Concept
name
- the name of the requested attributeincludeParents
- true if the search should also include the parent concept,
false if not.
java.util.NoSuchElementException
- if the attribute with the specified name is
not defined for this concept or its parent concepts (if includeParents
is true).public java.util.Enumeration getAttributes(boolean includeParents)
getAttributes
in class Concept
includeParents
- true if also the inherited attributes of its
superclasses are to be included, false otherwise
public Relation getRelation(java.lang.String name, boolean includeParents) throws java.util.NoSuchElementException
getRelation
in class Concept
name
- the name of the requested relationincludeParents
- true if the search should also include the parent concept,
false if not.
java.util.NoSuchElementException
- if the relation with the specified name is
not defined for this concept or its parent concepts (if includeParents
is true).public java.util.Enumeration getRelations(boolean includeParents)
getRelations
in class Concept
includeParents
- true if also the inherited relations of its
superclasses are to be included, false otherwise
public java.util.Enumeration getInitialFacts(boolean includeParents)
includeParents
- true if also the initial facts of its parent classes and superclasses
are to be included, false otherwise
protected Attribute getAttributeRecursive(java.lang.String name, boolean includeThis)
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 area. The list contains the attributes starting with the attributes highest in the class hierarchy.
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)
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 area. The list contains the relations starting with the relations highest in the class hierarchy.
includeThis
- flag indicating whether to include the relations for
this concept or only to return the parent relations
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.
includeThis
- flag indicating whether to include the initial facts for this concept or
only to return the parent initial facts
public void delete()
delete
in class BrahmsObject
public IConceptCtx createContext()
createContext
in class Concept
public boolean isInstanceOf(Concept concept)
concept
- the Concept to be checked to see if this area
is an instance of the concept
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |