Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class OME.ModelManager

java.lang.Object
  |
  +--OME.ModelManager

public class ModelManager
extends java.lang.Object
ModelManager is used to create, load and save models and thier views. This class acts as a builder for Telos models. We will need to make it an interface, and re-implement if we need to support anything other than telos. - say XML...


Constructor Summary
ModelManager()
          Creates a new, empty ModelManager.
 
Method Summary
void closeModel(OMEModel model)
          Removes a model and its views.
java.util.Iterator getModels()
          Returns an iterator over the models extant.
ViewManager getViewManager(OMEModel model)
          Returns the Viewmanager for a model.
OMEModel newModel()
          Creates a new model and appropriate support structures.
OMEModel openModel(java.lang.String path)
          Creates a model and ViewManager from a path.
void saveModel(OMEModel model)
          Commits a model and its serializable views to persistent storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

ModelManager

public ModelManager()
Creates a new, empty ModelManager.
Method Detail

newModel

public OMEModel newModel()
                     throws java.lang.Exception
Creates a new model and appropriate support structures. These include KBManager, ViewManager, a Framework...

getModels

public java.util.Iterator getModels()
Returns an iterator over the models extant.

openModel

public OMEModel openModel(java.lang.String path)
Creates a model and ViewManager from a path.

saveModel

public void saveModel(OMEModel model)
Commits a model and its serializable views to persistent storage.

closeModel

public void closeModel(OMEModel model)
Removes a model and its views. This does not check whether either the models or their vms are dirty.

getViewManager

public ViewManager getViewManager(OMEModel model)
Returns the Viewmanager for a model.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD