|
||||||||||
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 gov.nasa.arc.brahms.vm.data.VMModel
public class VMModel
VMModel is a specialization of Model managing the set of Brahms concepts part of an agent distribution. The VMModel enables the dynamic loading of new concepts when they are not loaded at initialization time.
Field Summary |
---|
Fields inherited from class gov.nasa.arc.brahms.common.data.Model |
---|
AGENTS_PROPERTY, AREADEFS_PROPERTY, AREAS_PROPERTY, CLASSES_PROPERTY, CONCEPTUAL_CLASSES_PROPERTY, CONCEPTUAL_OBJECTS_PROPERTY, GROUPS_PROPERTY, OBJECTS_PROPERTY, 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 | |
---|---|
VMModel()
Constructor, creates a new empty model with no name. |
|
VMModel(java.lang.String name)
Constructor, creates a new empty model with the specified name. |
Method Summary | |
---|---|
Agent |
getAgent(java.lang.String name)
|
Agent |
getAgent(java.lang.String name,
int strategy)
Returns the agent with the specified name. |
Area |
getArea(java.lang.String name)
|
Area |
getArea(java.lang.String name,
int strategy)
Returns the area with the specified name. |
AreaDef |
getAreaDef(java.lang.String name)
|
ObjectClass |
getClass(java.lang.String name)
|
Concept |
getConcept(java.lang.String name)
Returns the concept with the specified name. |
Concept |
getConcept(java.lang.String name,
boolean load)
Returns the concept with the specified name. |
Concept |
getConcept(java.lang.String name,
boolean load,
boolean type)
Returns the concept with the specified name. |
Concept |
getConcept(java.lang.String name,
int strategy)
Returns the concept with the specified name. |
Concept |
getConceptClass(java.lang.String name)
|
ConceptualClass |
getConceptualClass(java.lang.String name)
|
ConceptualInstance |
getConceptualObject(java.lang.String name)
|
ConceptualInstance |
getConceptualObject(java.lang.String name,
int strategy)
Returns the conceptual object with the specified name. |
Group |
getGroup(java.lang.String name)
|
ObjectInstance |
getObject(java.lang.String name)
|
ObjectInstance |
getObject(java.lang.String name,
int strategy)
Returns the object with the specified name. |
Path |
getPath(java.lang.String name)
|
Path |
getPath(java.lang.String name,
int strategy)
Returns the path with the specified name. |
Methods inherited from class gov.nasa.arc.brahms.common.data.Model |
---|
addAgent, addArea, addAreaDef, addClass, addConcept, addConceptualClass, addConceptualObject, addGroup, addObject, addPath, export, export, getAgents, getAreaDefs, getAreas, getClasses, getConcepts, getConceptualClasses, getConceptualObjects, getFullyQualifiedName, getGroups, getObjects, getPackage, getPaths, removeAgent, removeArea, removeAreaDef, removeClass, removeConceptualClass, removeConceptualObject, removeGroup, removeObject, removePath, setPackage |
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 |
Constructor Detail |
---|
public VMModel()
public VMModel(java.lang.String name)
name
- the name of the model.Method Detail |
---|
public Group getGroup(java.lang.String name) throws java.util.NoSuchElementException
getGroup
in class Model
java.util.NoSuchElementException
public Agent getAgent(java.lang.String name) throws java.util.NoSuchElementException
getAgent
in class Model
java.util.NoSuchElementException
public Agent getAgent(java.lang.String name, int strategy) throws java.util.NoSuchElementException
The locating and loading strategy gives control over how to locate and load an agent if it cannot be found. Only when the loading strategy is exhausted will an exception be generated to indicate that an agent with the specified name could not be found.
name
- the fully qualified name of the agent.strategy
- the locating and loading strategy to use
java.util.NoSuchElementException
- if no agent with the specified name
could be foundIModel.MEMORY
,
IModel.MEMORY_DISK
,
IModel.MEMORY_DIRECTORY
,
IModel.MEMORY_DIRECTORY_DISK
,
IModel.MEMORY_DISK_DIRECTORY
public ObjectClass getClass(java.lang.String name) throws java.util.NoSuchElementException
getClass
in class Model
java.util.NoSuchElementException
public ObjectInstance getObject(java.lang.String name) throws java.util.NoSuchElementException
getObject
in class Model
java.util.NoSuchElementException
public ObjectInstance getObject(java.lang.String name, int strategy) throws java.util.NoSuchElementException
The locating and loading strategy gives control over how to locate and load an object if it cannot be found. Only when the loading strategy is exhausted will an exception be generated to indicate that an object with the specified name could not be found.
name
- the fully qualified name of the object.strategy
- the locating and loading strategy to use
java.util.NoSuchElementException
- if no object with the specified name
could be foundIModel.MEMORY
,
IModel.MEMORY_DISK
,
IModel.MEMORY_DIRECTORY
,
IModel.MEMORY_DIRECTORY_DISK
,
IModel.MEMORY_DISK_DIRECTORY
public ConceptualClass getConceptualClass(java.lang.String name) throws java.util.NoSuchElementException
getConceptualClass
in class Model
java.util.NoSuchElementException
public ConceptualInstance getConceptualObject(java.lang.String name) throws java.util.NoSuchElementException
getConceptualObject
in class Model
java.util.NoSuchElementException
public ConceptualInstance getConceptualObject(java.lang.String name, int strategy) throws java.util.NoSuchElementException
The locating and loading strategy gives control over how to locate and load an conceptual object if it cannot be found. Only when the loading strategy is exhausted will an exception be generated to indicate that a conceptual object with the specified name could not be found.
name
- the fully qualified name of the conceptual object.strategy
- the locating and loading strategy to use
java.util.NoSuchElementException
- if no conceptual object with the specified name
could be foundIModel.MEMORY
,
IModel.MEMORY_DISK
,
IModel.MEMORY_DIRECTORY
,
IModel.MEMORY_DIRECTORY_DISK
,
IModel.MEMORY_DISK_DIRECTORY
public AreaDef getAreaDef(java.lang.String name) throws java.util.NoSuchElementException
getAreaDef
in class Model
java.util.NoSuchElementException
public Area getArea(java.lang.String name) throws java.util.NoSuchElementException
getArea
in class Model
java.util.NoSuchElementException
public Area getArea(java.lang.String name, int strategy) throws java.util.NoSuchElementException
The locating and loading strategy gives control over how to locate and load an area if it cannot be found. Only when the loading strategy is exhausted will an exception be generated to indicate that an area with the specified name could not be found.
name
- the fully qualified name of the area.strategy
- the locating and loading strategy to use
java.util.NoSuchElementException
- if no area with the specified name
could be foundIModel.MEMORY
,
IModel.MEMORY_DISK
,
IModel.MEMORY_DIRECTORY
,
IModel.MEMORY_DIRECTORY_DISK
,
IModel.MEMORY_DISK_DIRECTORY
public Path getPath(java.lang.String name) throws java.util.NoSuchElementException
getPath
in class Model
java.util.NoSuchElementException
public Path getPath(java.lang.String name, int strategy) throws java.util.NoSuchElementException
The locating and loading strategy gives control over how to locate and load a path if it cannot be found. Only when the loading strategy is exhausted will an exception be generated to indicate that a path with the specified name could not be found.
name
- the fully qualified name of the path.strategy
- the locating and loading strategy to use
java.util.NoSuchElementException
- if no path with the specified name
could be foundIModel.MEMORY
,
IModel.MEMORY_DISK
,
IModel.MEMORY_DIRECTORY
,
IModel.MEMORY_DIRECTORY_DISK
,
IModel.MEMORY_DISK_DIRECTORY
public Concept getConcept(java.lang.String name) throws java.util.NoSuchElementException
Model
Note: this method should only be used if the type of the concept is not relevant.
getConcept
in class Model
name
- the name of the requested concept
java.util.NoSuchElementException
- if a concept with the specified name does not existpublic Concept getConcept(java.lang.String name, int strategy) throws java.util.NoSuchElementException
The locating and loading strategy gives control over how to locate and load an concept if it cannot be found. Only when the loading strategy is exhausted will an exception be generated to indicate that a concept with the specified name could not be found.
name
- the fully qualified name of the concept.strategy
- the locating and loading strategy to use
java.util.NoSuchElementException
- if no concept with the specified name
could be foundIModel.MEMORY
,
IModel.MEMORY_DISK
,
IModel.MEMORY_DIRECTORY
,
IModel.MEMORY_DIRECTORY_DISK
,
IModel.MEMORY_DISK_DIRECTORY
public Concept getConceptClass(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public Concept getConcept(java.lang.String name, boolean load) throws java.util.NoSuchElementException
name
- the fully qualified name of the concept to be returnedload
- true if the concept is to be loaded if not found, false if not to be loaded
java.util.NoSuchElementException
- if no element by the specified was found or could be loadedpublic Concept getConcept(java.lang.String name, boolean load, boolean type) throws java.util.NoSuchElementException
name
- the fully qualified name of the concept to be returnedload
- true if the concept is to be loaded if not found, false if not to be loadedtype
- true if the name of the concept is for a class/group/areadef, false if
for an instance (agent/object/area/path)
java.util.NoSuchElementException
- if no element by the specified was found or could be loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |