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()
          return 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 readySignal()
          Signals all observers that this model is ready.
 void removeEntity(Entity removeEntity)
          Removes entity.
 void removeEntity(java.lang.String name)
          Removes entity.
protected  void setChanged()
           
 void updationStartedSignal()
          Signals all observers that this model is beign modified.
 
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
return editor for this analyze model

Specified by:
getEditor in interface AnalyzeModel
Returns:
ModelEditor

readySignal

public void readySignal()
Description copied from interface: AnalyzeModel
Signals all observers that this model is ready.

Specified by:
readySignal in interface AnalyzeModel

updationStartedSignal

public void updationStartedSignal()
Description copied from interface: AnalyzeModel
Signals all observers that this model is beign modified.

Specified by:
updationStartedSignal in interface AnalyzeModel

setChanged

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