ucot.model.object
Class ObjectAnalyzeModel

java.lang.Object
  extended by java.util.Observable
      extended by ucot.model.object.ObjectAnalyzeModel
All Implemented Interfaces:
java.io.Serializable, AnalyzeModel

public class ObjectAnalyzeModel
extends java.util.Observable
implements AnalyzeModel, java.io.Serializable

Model that contains representation of the AnalyzeModel. This implementation uses objects to contain the information of the model.

Author:
pajumasu
See Also:
Serialized Form

Field Summary
private  ObjectAnalyzeModelEditor editor
          The editor that edits this model
private  java.util.Map<java.lang.String,Entity> entities
          The entities that are containde by this model.
static long serialVersionUID
           
 
Constructor Summary
ObjectAnalyzeModel()
          Creates empty model.
 
Method Summary
 void addEntity(Entity entity)
          Adds an entity to the model.
 void clear()
           
 ModelEditor getEditor()
          Returns editor for this analyze model.
 Entity getEntity(java.lang.String name)
          Returns entity.
 java.util.Set<java.lang.String> getEntityNames()
          Returns the names of the entities.
 void removeEntity(Entity removeEntity)
          Removes entity.
 void removeEntity(java.lang.String name)
          Removes entity.
protected  void setChanged()
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucot.model.AnalyzeModel
addObserver
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

editor

private ObjectAnalyzeModelEditor editor
The editor that edits this model


entities

private java.util.Map<java.lang.String,Entity> entities
The entities that are containde by this model.

Constructor Detail

ObjectAnalyzeModel

public ObjectAnalyzeModel()
Creates empty model.

Method Detail

getEntity

public Entity getEntity(java.lang.String name)
Returns entity.

Parameters:
name -
Returns:
entity

removeEntity

public void removeEntity(java.lang.String name)
Removes entity.

Parameters:
name - The name of the entity.

removeEntity

public void removeEntity(Entity removeEntity)
Removes entity.

Parameters:
removeEntity - The entity to be removoed

getEntityNames

public java.util.Set<java.lang.String> getEntityNames()
Returns the names of the entities.

Returns:
names of the entities

addEntity

public void addEntity(Entity entity)
Adds an entity to the model.

Parameters:
entity -

clear

public void clear()

getEditor

public ModelEditor getEditor()
Description copied from interface: AnalyzeModel

Returns editor for this analyze model.

Specified by:
getEditor in interface AnalyzeModel
Returns:
The ModelEditor that can be used to edit this model.

setChanged

protected void setChanged()
Overrides:
setChanged in class java.util.Observable