|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectides.api.plugin.model.ModelManager
public class ModelManager
The manager of model types available to IDES. This allows for custom model types implemented by plugins.
DESModelType,
registerModel(DESModelType)| Field Summary | |
|---|---|
protected java.util.Hashtable<java.lang.Class<?>,java.util.Set<DESModelType>> |
class2Type
Index of all registered DESModelTypes. |
| Method Summary | ||
|---|---|---|
java.lang.Object |
clone()
|
|
DESEventSet |
createEmptyEventSet()
Creates an empty event set. |
|
|
createModel(java.lang.Class<T> perspective)
Creates and returns a DES model for the supplied perspective, e.g., FSAModel, with an empty display name. |
|
|
createModel(java.lang.Class<T> perspective,
java.lang.String name)
Creates and returns a DES model for the supplied perspective, e.g., FSAModel, with the given display name. |
|
DESModelType[] |
getAllTypes()
Returns all model types registered with the manager. |
|
DESModelType[] |
getModelsForPerspective(java.lang.Class<?> perspective)
Returns all model types that implement the given perspective. |
|
static ModelManager |
instance()
Provides access to the instance of the manager. |
|
void |
registerModel(DESModelType mt)
Registers a model type so that the corresponding DES model type becomes available to IDES. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable<java.lang.Class<?>,java.util.Set<DESModelType>> class2Type
DESModelTypes. The key is a DES model
perspective. The value is the set of the model types implementing the
given perspective. Note that if a model type implements a number of
perspectives, its model type will be included in the set for each one of
these perspectives.
registerModel(DESModelType)| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic static ModelManager instance()
public <T> T createModel(java.lang.Class<T> perspective,
java.lang.String name)
FSAModel, with the given display name.
perspective - the perspective for which a model has to be createdname - the display name for the new model
null.createModel(Class)public <T> T createModel(java.lang.Class<T> perspective)
FSAModel, with an empty display name.
perspective - the perspectivee for which a model has to be created
null.createModel(Class, String)public DESModelType[] getModelsForPerspective(java.lang.Class<?> perspective)
perspective - the perspective for which model types should be returned
getAllTypes()public DESModelType[] getAllTypes()
getModelsForPerspective(Class)public void registerModel(DESModelType mt)
mt - the model type for the DES modelpublic DESEventSet createEmptyEventSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||