elge.monitor
Class GroupCoherenceMonitor

java.lang.Object
  |
  +--elge.monitor.AbstractMonitor
        |
        +--elge.monitor.CoherenceMonitor
              |
              +--elge.monitor.GroupCoherenceMonitor
All Implemented Interfaces:
EventListener, Monitor, PropertyChangeListener

public class GroupCoherenceMonitor
extends CoherenceMonitor

Author:
Pavol Žibrita

Field Summary
 
Fields inherited from class elge.monitor.AbstractMonitor
per, PROP_PROJECT, pt
 
Constructor Summary
GroupCoherenceMonitor()
          Creates a new instance of GroupCoherenceMonitor
 
Method Summary
 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.
 String getGroup()
           
 String[] getIdentifiers()
          Gets the identifiers.
 String getMonitorName()
          Returns only the name of the monitor (CoherenceMonitor)
 void restart()
          restarts the monitor. nulls the global lexikon.
 void setGroup(String grp)
           
 void updateVectors()
          Updates vectors needed for the calculations.
 
Methods inherited from class elge.monitor.CoherenceMonitor
calculateCoherence, getGlobalLexikon, getValues, setGlobalLexikon, updateMonitor
 
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

GroupCoherenceMonitor

public GroupCoherenceMonitor()
Creates a new instance of GroupCoherenceMonitor

Method Detail

updateVectors

public void updateVectors()
Updates vectors needed for the calculations. Is called from the CoherenceMonitor.updateMonitor() method.

Overrides:
updateVectors in class CoherenceMonitor

restart

public void restart()
restarts the monitor. nulls the global lexikon.

Specified by:
restart in interface Monitor
Overrides:
restart in class CoherenceMonitor
See Also:
Project.restart()

getIdentifiers

public String[] getIdentifiers()
Gets the identifiers. Currently the "coherence" string only.

Specified by:
getIdentifiers in interface Monitor
Overrides:
getIdentifiers in class CoherenceMonitor
Returns:
array of one value: coherence

getMonitorName

public String getMonitorName()
Returns only the name of the monitor (CoherenceMonitor)

Specified by:
getMonitorName in interface Monitor
Overrides:
getMonitorName in class CoherenceMonitor
Returns:
returns "CoherenceMonitor"

getFullName

public String getFullName()
Returns the full name which is displayed in gui lists.

Specified by:
getFullName in interface Monitor
Overrides:
getFullName in class CoherenceMonitor
Returns:
full name.

getDescription

public String getDescription()
Returns the description of this monitor, that should help to user to understand its function.

Specified by:
getDescription in interface Monitor
Overrides:
getDescription in class CoherenceMonitor
Returns:
help for user.

setGroup

public void setGroup(String grp)

getGroup

public String getGroup()