|
||||||||||
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
public class Concept
class Concept
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTES_PROPERTY
|
static java.lang.String |
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 | |
---|---|
Concept()
|
|
Concept(java.lang.String name)
|
|
Concept(java.lang.String file,
int line)
|
|
Concept(java.lang.String name,
java.lang.String file,
int line)
|
Method Summary | |
---|---|
boolean |
addAttribute(Attribute att)
|
boolean |
addRelation(Relation rel)
|
boolean |
compareTypes(Type type,
boolean target)
This method compares this type with the given type and checks based on the target flag whether the types can be converted to one another. |
IConceptCtx |
createContext()
Creates a new context for this concept for use in a virtual machine. |
boolean |
equals(java.lang.Object obj)
Tests whether two concepts are identical. |
Attribute |
getAttribute(java.lang.String name)
Returns the Attribute with the specified name. |
Attribute |
getAttribute(java.lang.String name,
boolean includeParents)
Returns the Attribute with the specified name. |
java.util.Enumeration |
getAttributes()
|
java.util.Enumeration |
getAttributes(boolean includeParents)
Returns the concepts' attributes. |
IConceptCtx |
getContext()
Returns the concept's context used in a virtual machine. |
java.lang.String |
getFullyQualifiedName()
Returns the fully qualified name of the concept. |
java.lang.String |
getIcon()
|
Model |
getModel()
|
java.lang.String |
getName()
Returns the name or String representation of the type |
java.lang.String |
getPackage()
Returns the package in which this concept is defined in and belongs to. |
Relation |
getRelation(java.lang.String name)
Returns the Relation with the specified name. |
Relation |
getRelation(java.lang.String name,
boolean includeParents)
Returns the Relation with the specified name. |
java.util.Enumeration |
getRelations()
|
java.util.Enumeration |
getRelations(boolean includeParents)
Returns the concepts' relations. |
int |
getType()
Returns the type represented by this type. |
boolean |
hasAttributes()
|
boolean |
hasRelations()
|
boolean |
isLocal()
Returns whether the concept is loaded locally or remotely in another virtual machine. |
boolean |
isSerializable()
Returns whether the concept is serializable. |
boolean |
removeAttribute(java.lang.String name)
|
boolean |
removeRelation(java.lang.String name)
|
protected void |
setContext(IConceptCtx ctx)
Sets the context for this concept for use in a virtual machine. |
void |
setIcon(java.lang.String icon)
|
void |
setLocal(boolean local)
Specifies whether the concept is loaded locally or remotely in another virtual machine. |
void |
setModel(Model model)
|
void |
setPackage(java.lang.String sPackage)
Sets the package in which this concept is defined in and belongs to. |
void |
setSerializable(boolean serializable)
Specifies whether the concept is serializable. |
java.lang.String |
toString()
Returns a string representation of this concept, the fully qualified name. |
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 |
---|
delete, export, getFile, getID, getLine, getSerialNumber, isBCC, isDynamic, isLoaded, isResolved, setBCC, setDynamic, setFile, setID, 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 |
Field Detail |
---|
public static final java.lang.String ATTRIBUTES_PROPERTY
public static final java.lang.String RELATIONS_PROPERTY
Constructor Detail |
---|
public Concept()
public Concept(java.lang.String name)
public Concept(java.lang.String file, int line)
public Concept(java.lang.String name, java.lang.String file, int line)
Method Detail |
---|
public java.lang.String getName()
Type
getName
in interface Type
getName
in class NamedModelElement
public void setModel(Model model)
public Model getModel()
public void setIcon(java.lang.String icon)
public java.lang.String getIcon()
public void setPackage(java.lang.String sPackage)
sPackage
- the package statementpublic java.lang.String getPackage()
public java.lang.String getFullyQualifiedName()
getFullyQualifiedName
in interface Type
getFullyQualifiedName
in class NamedModelElement
public final void setLocal(boolean local)
local
- true if the concept is loaded locally, false if remotelypublic final boolean isLocal()
public final void setSerializable(boolean serializable)
local
- true if the concept is loaded locally, false if remotelypublic final boolean isSerializable()
public boolean addAttribute(Attribute att)
public boolean removeAttribute(java.lang.String name)
public Attribute getAttribute(java.lang.String name) throws java.util.NoSuchElementException
name
- the name of the requested attribute
java.util.NoSuchElementException
- if the attribute with the specified name is
not defined for this concept (could be defined in one of its parent concepts)public Attribute getAttribute(java.lang.String name, boolean includeParents) throws java.util.NoSuchElementException
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 boolean hasAttributes()
public java.util.Enumeration getAttributes()
public java.util.Enumeration getAttributes(boolean includeParents)
includeParents
- true if also the inherited attributes of its
classes and superclasses are to be included, false otherwise
public boolean addRelation(Relation rel)
public boolean removeRelation(java.lang.String name)
public Relation getRelation(java.lang.String name) throws java.util.NoSuchElementException
name
- the name of the requested relation
java.util.NoSuchElementException
- if the relation with the specified name is
not defined for this concept (could be defined in one of its parent concepts)public Relation getRelation(java.lang.String name, boolean includeParents) throws java.util.NoSuchElementException
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 boolean hasRelations()
public java.util.Enumeration getRelations()
public java.util.Enumeration getRelations(boolean includeParents)
includeParents
- true if also the inherited relations of its
classes and superclasses are to be included, false otherwise
public int getType()
Type
getType
in interface Type
public IConceptCtx createContext()
Note: This method always returns a new instance and does not verify whether one is already created.
protected void setContext(IConceptCtx ctx)
ctx
- the concept's contextpublic IConceptCtx getContext()
public boolean compareTypes(Type type, boolean target)
compareTypes
in interface Type
type
- the type to compare this type withtarget
- true if this type is the target false if the given type ios the target
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the Object to be compared for equality
public java.lang.String toString()
toString
in class NamedModelElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |