|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--elge.monitor.AbstractMonitor | +--elge.monitor.CoherenceMonitor
This Monitor monitors and calculates the coherence of
all WorldAgents that implements the LexikonHolder
interface.
It also calculates an global lexikon which you can get
as a property.
Field Summary |
Fields inherited from class elge.monitor.AbstractMonitor |
per, PROP_PROJECT, pt |
Constructor Summary | |
CoherenceMonitor()
Creates a new instance of CoherenceMonitor |
Method Summary | |
Double |
calculateCoherence(Vector lexikons)
Calculates the coherence from the world ! |
String |
getDescription()
Returns the description of this monitor, that should help to user to understand its function. |
String |
getFullName()
Returns the full name which is displayed in gui lists. |
Lexikon |
getGlobalLexikon()
gets the calculated global lexikon |
String[] |
getIdentifiers()
Gets the identifiers. |
String |
getMonitorName()
Returns only the name of the monitor (CoherenceMonitor) |
Object[] |
getValues()
returns the calculated coherence or zero, if no coherence was calculated. |
void |
restart()
restarts the monitor. nulls the global lexikon. |
void |
setGlobalLexikon(Lexikon glob)
Sets the calculated lexikon. |
protected void |
updateMonitor()
calls updateVectors() |
void |
updateVectors()
Updates vectors needed for the calculations. |
Methods inherited from class elge.monitor.AbstractMonitor |
addPropertyChangeListener, getPersistence, getProject, propertyChange, removePropertyChangeListener, setPersistence, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CoherenceMonitor()
Method Detail |
public String[] getIdentifiers()
public Object[] getValues()
public Double calculateCoherence(Vector lexikons)
public void updateVectors()
updateMonitor()
method.
public String getDescription()
public String getFullName()
public String getMonitorName()
public Lexikon getGlobalLexikon()
public void setGlobalLexikon(Lexikon glob)
glob
- The lexikon to set.public void restart()
restart
in interface Monitor
restart
in class AbstractMonitor
Project.restart()
protected void updateMonitor()
updateVectors()
updateMonitor
in class AbstractMonitor
AbstractMonitor.propertyChange(java.beans.PropertyChangeEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |