|
||||||||||
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.Model
public class Model
class Model
Field Summary | |
---|---|
static java.lang.String |
AGENTS_PROPERTY
|
static java.lang.String |
AREADEFS_PROPERTY
|
static java.lang.String |
AREAS_PROPERTY
|
static java.lang.String |
CLASSES_PROPERTY
|
static java.lang.String |
CONCEPTUAL_CLASSES_PROPERTY
|
static java.lang.String |
CONCEPTUAL_OBJECTS_PROPERTY
|
static java.lang.String |
GROUPS_PROPERTY
|
static java.lang.String |
OBJECTS_PROPERTY
|
static java.lang.String |
PATHS_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 | |
---|---|
Model()
|
|
Model(java.lang.String name)
|
Method Summary | |
---|---|
boolean |
addAgent(Agent concept)
|
boolean |
addArea(Area concept)
|
boolean |
addAreaDef(AreaDef concept)
|
boolean |
addClass(ObjectClass concept)
|
boolean |
addConcept(Concept concept)
Adds a concept to the model. |
boolean |
addConceptualClass(ConceptualClass concept)
|
boolean |
addConceptualObject(ConceptualInstance concept)
|
boolean |
addGroup(Group concept)
|
boolean |
addObject(ObjectInstance concept)
|
boolean |
addPath(Path concept)
|
void |
export(java.lang.String fileName,
int destination,
gov.nasa.arc.brahms.util.IErrorLog log)
Allows for the model to be exported into different formats. |
void |
export(java.lang.String basedir,
int destination,
gov.nasa.arc.brahms.util.IErrorLog log,
java.util.Properties p)
Allows for the model to be exported into different formats. |
Agent |
getAgent(java.lang.String name)
|
java.util.Enumeration |
getAgents()
|
Area |
getArea(java.lang.String name)
|
AreaDef |
getAreaDef(java.lang.String name)
|
java.util.Enumeration |
getAreaDefs()
|
java.util.Enumeration |
getAreas()
|
ObjectClass |
getClass(java.lang.String name)
|
java.util.Enumeration |
getClasses()
|
Concept |
getConcept(java.lang.String name)
Returns the concept with the specified name. |
java.util.Enumeration |
getConcepts()
Returns all the concepts loaded in the model |
ConceptualClass |
getConceptualClass(java.lang.String name)
|
java.util.Enumeration |
getConceptualClasses()
|
ConceptualInstance |
getConceptualObject(java.lang.String name)
|
java.util.Enumeration |
getConceptualObjects()
|
java.lang.String |
getFullyQualifiedName()
Returns the fully qualified name of the model. |
Group |
getGroup(java.lang.String name)
|
java.util.Enumeration |
getGroups()
|
ObjectInstance |
getObject(java.lang.String name)
|
java.util.Enumeration |
getObjects()
|
java.lang.String |
getPackage()
Returns the package in which this concept is defined in and belongs to. |
Path |
getPath(java.lang.String name)
|
java.util.Enumeration |
getPaths()
|
boolean |
removeAgent(java.lang.String name)
|
boolean |
removeArea(java.lang.String name)
|
boolean |
removeAreaDef(java.lang.String name)
|
boolean |
removeClass(java.lang.String name)
|
boolean |
removeConceptualClass(java.lang.String name)
|
boolean |
removeConceptualObject(java.lang.String name)
|
boolean |
removeGroup(java.lang.String name)
|
boolean |
removeObject(java.lang.String name)
|
boolean |
removePath(java.lang.String name)
|
void |
setPackage(java.lang.String sPackage)
Sets the package in which this concept is defined in and belongs to. |
Methods inherited from class gov.nasa.arc.brahms.common.data.NamedModelElement |
---|
getDisplayText, getName, getOwner, setDisplayText, setFullyQualifiedName, setName, setOwner, toString |
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GROUPS_PROPERTY
public static final java.lang.String AGENTS_PROPERTY
public static final java.lang.String CLASSES_PROPERTY
public static final java.lang.String OBJECTS_PROPERTY
public static final java.lang.String CONCEPTUAL_CLASSES_PROPERTY
public static final java.lang.String CONCEPTUAL_OBJECTS_PROPERTY
public static final java.lang.String AREADEFS_PROPERTY
public static final java.lang.String AREAS_PROPERTY
public static final java.lang.String PATHS_PROPERTY
Constructor Detail |
---|
public Model()
public Model(java.lang.String name)
Method Detail |
---|
public void setPackage(java.lang.String sPackage)
sPackage
- the package statementpublic java.lang.String getPackage()
public java.lang.String getFullyQualifiedName()
getFullyQualifiedName
in class NamedModelElement
public boolean addGroup(Group concept)
public boolean removeGroup(java.lang.String name)
public Group getGroup(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Enumeration getGroups()
public boolean addAgent(Agent concept)
public boolean removeAgent(java.lang.String name)
public Agent getAgent(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Enumeration getAgents()
public boolean addClass(ObjectClass concept)
public boolean removeClass(java.lang.String name)
public ObjectClass getClass(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Enumeration getClasses()
public boolean addObject(ObjectInstance concept)
public boolean removeObject(java.lang.String name)
public ObjectInstance getObject(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Enumeration getObjects()
public boolean addConceptualClass(ConceptualClass concept)
public boolean removeConceptualClass(java.lang.String name)
public ConceptualClass getConceptualClass(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Enumeration getConceptualClasses()
public boolean addConceptualObject(ConceptualInstance concept)
public boolean removeConceptualObject(java.lang.String name)
public ConceptualInstance getConceptualObject(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Enumeration getConceptualObjects()
public boolean addAreaDef(AreaDef concept)
public boolean removeAreaDef(java.lang.String name)
public AreaDef getAreaDef(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Enumeration getAreaDefs()
public boolean addArea(Area concept)
public boolean removeArea(java.lang.String name)
public Area getArea(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Enumeration getAreas()
public boolean addPath(Path concept)
public boolean removePath(java.lang.String name)
public Path getPath(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Enumeration getPaths()
public boolean addConcept(Concept concept)
Note: this method should only be used if the type of the concept is not immediately known
concept
- the Concept to be added
public Concept getConcept(java.lang.String name) throws java.util.NoSuchElementException
Note: this method should only be used if the type of the concept is not relevant.
name
- the name of the requested concept
java.util.NoSuchElementException
- if a concept with the specified name does not existpublic java.util.Enumeration getConcepts()
public void export(java.lang.String fileName, int destination, gov.nasa.arc.brahms.util.IErrorLog log)
fileName
- the name of the file to export the results todestination
- the type of exportlog
- the log to write errors topublic void export(java.lang.String basedir, int destination, gov.nasa.arc.brahms.util.IErrorLog log, java.util.Properties p)
dir
- the base directory where to export the files todestination
- the type of exportlog
- the log to write errors top
- properties for use by the type of export
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |