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.TelosModel

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

public class TelosModel
extends java.lang.Object
implements OMEModel
The OME Model, represented in Telos. We store the serializeable portions of the model here. This is distict from the view which stores the locations of objects here. Here we store the objects, their properties, names, links, etc. There may be multiple models, possibly on the same or different kbs. Each OMEModel represents one model. An OME model consists of named and typed elements, and typed, annotated links. Conceptually the annotation of links is different from the names of elements in that the element's name should be unique within some context.


Constructor Summary
TelosModel(OME.KBManager kbm, OMEFramework framework)
          Initializes a new model in the kb and within the framework provided.
 
Method Summary
OMEElement createElement()
          Creates a new element within the model which can then be manipulated through the OMEElement interface.
OMELink createLink()
          Creates a new link within the model which can then be manipulated through the OMELink interface.
void deleteElement(OMEElement element)
          Deletes the element from the model.
void deleteLink(OMELink link)
          Deletes the link from the model.
java.util.Collection getElements()
          Returns the elements within this model.
java.util.Collection getLinks()
          Returns the links within this model.
boolean isDirty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

TelosModel

public TelosModel(OME.KBManager kbm,
                  OMEFramework framework)
Initializes a new model in the kb and within the framework provided. Obviously the framework should only use the passed kbm
Method Detail

createElement

public OMEElement createElement()
Creates a new element within the model which can then be manipulated through the OMEElement interface.
Specified by:
createElement in interface OMEModel

createLink

public OMELink createLink()
Creates a new link within the model which can then be manipulated through the OMELink interface.
Specified by:
createLink in interface OMEModel

deleteElement

public void deleteElement(OMEElement element)
Deletes the element from the model.
Specified by:
deleteElement in interface OMEModel

deleteLink

public void deleteLink(OMELink link)
Deletes the link from the model.
Specified by:
deleteLink in interface OMEModel

getElements

public java.util.Collection getElements()
Returns the elements within this model.
Specified by:
getElements in interface OMEModel

getLinks

public java.util.Collection getLinks()
Returns the links within this model.
Specified by:
getLinks in interface OMEModel

isDirty

public boolean isDirty()
Description copied from interface:
Whether the model has been changed since its last serialization.
Specified by:
isDirty in interface OMEModel

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