|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModel
IModel is the interface to a model loaded in the virtual machine. The model manages references to the concepts loaded in the virtual machine, groups, agents, classes, objects, conceptual classes, conceptual objects, area definitions and areas.
Field Summary | |
---|---|
static int |
MEMORY
Memory only loading strategy, load a concept from memory only, don't look for it in the local file system or in the directory service |
static int |
MEMORY_DIRECTORY
Memory and directory service loading strategy, try to locate the concept in the local memory first, if not found try to locate and load it from the directory service, don't look for it in the local file system |
static int |
MEMORY_DIRECTORY_DISK
Memory then directory service then disk loading strategy, try to locate the concept in the local memory first, if not found try to locate and load it from the directory service, if still not found try to locate and load it from the local file system |
static int |
MEMORY_DISK
Memory and disk loading strategy, try to locate the concept in the local memory first, if not found try to locate and load it from the local file system, don't look for it in the directory service as a remote concept |
static int |
MEMORY_DISK_DIRECTORY
Memory then disk then directory service loading strategy, try to locate the concept in the local memory first, if not found try to locate and load it from the local file system, if still not found try to locate and load it from the directory service |
Method Summary | |
---|---|
IAgent |
getAgent(java.lang.String name)
Returns the agent with the specified name. |
IAgent |
getAgent(java.lang.String name,
int strategy)
Returns the agent with the specified name. |
java.util.Enumeration |
getAgents()
Returns a list of all the agents loaded in the model. |
IArea |
getArea(java.lang.String name)
Returns the area with the specified name. |
IArea |
getArea(java.lang.String name,
int strategy)
Returns the area with the specified name. |
IAreaDef |
getAreaDef(java.lang.String name)
Returns the area definition with the specified name. |
java.util.Enumeration |
getAreaDefs()
Returns a list of all the area definitions loaded in the model. |
java.util.Enumeration |
getAreas()
Returns a list of all the areas loaded in the model. |
IClass |
getClass(java.lang.String name)
Returns the class with the specified name. |
java.util.Enumeration |
getClasses()
Returns a list of all the classes loaded in the model. |
IConceptualClass |
getConceptualClass(java.lang.String name)
Returns the conceptual class with the specified name. |
java.util.Enumeration |
getConceptualClasses()
Returns a list of all the conceptual classes loaded in the model. |
IConceptualObject |
getConceptualObject(java.lang.String name)
Returns the conceptual object with the specified name. |
IConceptualObject |
getConceptualObject(java.lang.String name,
int strategy)
Returns the conceptual object with the specified name. |
java.util.Enumeration |
getConceptualObjects()
Returns a list of all the conceptual objects loaded in the model. |
IGroup |
getGroup(java.lang.String name)
Returns the group with the specified name. |
java.util.Enumeration |
getGroups()
Returns a list of all the groups loaded in the model. |
IObject |
getObject(java.lang.String name)
Returns the object with the specified name. |
IObject |
getObject(java.lang.String name,
int strategy)
Returns the object with the specified name. |
java.util.Enumeration |
getObjects()
Returns a list of all the objects loaded in the model. |
IPath |
getPath(java.lang.String name)
Returns the path with the specified name. |
IPath |
getPath(java.lang.String name,
int strategy)
Returns the path with the specified name. |
java.util.Enumeration |
getPaths()
Returns a list of all the paths loaded in the model. |
Field Detail |
---|
static final int MEMORY
static final int MEMORY_DISK
static final int MEMORY_DIRECTORY
static final int MEMORY_DIRECTORY_DISK
static final int MEMORY_DISK_DIRECTORY
Method Detail |
---|
IGroup getGroup(java.lang.String name) throws ExternalException
name
- the fully qualified name of the group.
ExternalException
- if no group with the specified name is
loaded in the virtual machine.java.util.Enumeration getGroups() throws ExternalException
ExternalException
- if an error occurs retrieving the groups.IAgent getAgent(java.lang.String name) throws ExternalException
name
- the fully qualified name of the agent.
ExternalException
- if no agent with the specified name is
loaded in the virtual machine.IAgent getAgent(java.lang.String name, int strategy) throws ExternalException
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
ExternalException
- if no agent with the specified name
could be foundMEMORY
,
MEMORY_DISK
,
MEMORY_DIRECTORY
,
MEMORY_DIRECTORY_DISK
,
MEMORY_DISK_DIRECTORY
java.util.Enumeration getAgents() throws ExternalException
ExternalException
- if an error occurs retrieving the agents.IClass getClass(java.lang.String name) throws ExternalException
name
- the fully qualified name of the class.
ExternalException
- if no class with the specified name is
loaded in the virtual machine.java.util.Enumeration getClasses() throws ExternalException
ExternalException
- if an error occurs retrieving the classes.IObject getObject(java.lang.String name) throws ExternalException
name
- the fully qualified name of the object.
ExternalException
- if no object with the specified name is
loaded in the virtual machine.IObject getObject(java.lang.String name, int strategy) throws ExternalException
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
ExternalException
- if no object with the specified name
could be foundMEMORY
,
MEMORY_DISK
,
MEMORY_DIRECTORY
,
MEMORY_DIRECTORY_DISK
,
MEMORY_DISK_DIRECTORY
java.util.Enumeration getObjects() throws ExternalException
ExternalException
- if an error occurs retrieving the objects.IConceptualClass getConceptualClass(java.lang.String name) throws ExternalException
name
- the fully qualified name of the conceptual class.
ExternalException
- if no conceptual class with the specified name is
loaded in the virtual machine.java.util.Enumeration getConceptualClasses() throws ExternalException
ExternalException
- if an error occurs retrieving the conceptual classes.IConceptualObject getConceptualObject(java.lang.String name) throws ExternalException
name
- the fully qualified name of the conceptual object.
ExternalException
- if no conceptual object with the specified name is
loaded in the virtual machine.IConceptualObject getConceptualObject(java.lang.String name, int strategy) throws ExternalException
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
ExternalException
- if no conceptual object with the specified name
could be foundMEMORY
,
MEMORY_DISK
,
MEMORY_DIRECTORY
,
MEMORY_DIRECTORY_DISK
,
MEMORY_DISK_DIRECTORY
java.util.Enumeration getConceptualObjects() throws ExternalException
ExternalException
- if an error occurs retrieving the conceptual objects.IAreaDef getAreaDef(java.lang.String name) throws ExternalException
name
- the fully qualified name of the area definition.
ExternalException
- if no area definition with the specified name is
loaded in the virtual machine.java.util.Enumeration getAreaDefs() throws ExternalException
ExternalException
- if an error occurs retrieving the area definitions.IArea getArea(java.lang.String name) throws ExternalException
name
- the fully qualified name of the area.
ExternalException
- if no area with the specified name is
loaded in the virtual machine.IArea getArea(java.lang.String name, int strategy) throws ExternalException
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
ExternalException
- if no area with the specified name
could be foundMEMORY
,
MEMORY_DISK
,
MEMORY_DIRECTORY
,
MEMORY_DIRECTORY_DISK
,
MEMORY_DISK_DIRECTORY
java.util.Enumeration getAreas() throws ExternalException
ExternalException
- if an error occurs retrieving the areas.IPath getPath(java.lang.String name) throws ExternalException
name
- the fully qualified name of the path.
ExternalException
- if no path with the specified name is
loaded in the virtual machine.IPath getPath(java.lang.String name, int strategy) throws ExternalException
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
ExternalException
- if no path with the specified name
could be foundMEMORY
,
MEMORY_DISK
,
MEMORY_DIRECTORY
,
MEMORY_DIRECTORY_DISK
,
MEMORY_DISK_DIRECTORY
java.util.Enumeration getPaths() throws ExternalException
ExternalException
- if an error occurs retrieving the paths.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |