elge.monitor
Class WorldMonitor

java.lang.Object
  |
  +--elge.monitor.AbstractMonitor
        |
        +--elge.monitor.WorldMonitor
All Implemented Interfaces:
EventListener, Monitor, PropertyChangeListener
Direct Known Subclasses:
WorldRatioMonitor

public class WorldMonitor
extends AbstractMonitor

World monitor enables you to monitor eny property of the world object.

Author:
Pavol Žibrita

Field Summary
protected  PropertyDescriptor propD
          the proeprty descriptor of the monitor
 
Fields inherited from class elge.monitor.AbstractMonitor
per, PROP_PROJECT, pt
 
Constructor Summary
WorldMonitor()
          Creates a new instance of WorldMonitor
 
Method Summary
 String getDescription()
          the user help
 String getFullName()
          the monitor's full name
 String[] getIdentifiers()
          the identifiers
 String getMonitoredProperty()
          the monitored property name
 String getMonitorName()
          The Montior name
 Object[] getValues()
          The values
 boolean isAvailable()
          true, if the property monitor is available.
 void setMonitoredProperty(String mp)
          sets the property to monitor
protected  void updateMonitor()
          updates the property descriptor
protected  void updateProperties()
          updates the property descriptor if the property name is valid.
 
Methods inherited from class elge.monitor.AbstractMonitor
addPropertyChangeListener, getPersistence, getProject, propertyChange, removePropertyChangeListener, restart, setPersistence, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propD

protected PropertyDescriptor propD
the proeprty descriptor of the monitor

Constructor Detail

WorldMonitor

public WorldMonitor()
Creates a new instance of WorldMonitor

Method Detail

getDescription

public String getDescription()
the user help

Returns:
the user help

getMonitoredProperty

public String getMonitoredProperty()
the monitored property name

Returns:
the property name

setMonitoredProperty

public void setMonitoredProperty(String mp)
sets the property to monitor

Parameters:
mp - the proeprty name

updateProperties

protected void updateProperties()
updates the property descriptor if the property name is valid.


isAvailable

public boolean isAvailable()
true, if the property monitor is available.

Returns:
true if the property name is correct.

getFullName

public String getFullName()
the monitor's full name

Returns:
the full name

getIdentifiers

public String[] getIdentifiers()
the identifiers

Returns:
the identifiers

getMonitorName

public String getMonitorName()
The Montior name

Returns:
monitor name

getValues

public Object[] getValues()
The values

Returns:
values

updateMonitor

protected void updateMonitor()
updates the property descriptor

Overrides:
updateMonitor in class AbstractMonitor
See Also:
AbstractMonitor.propertyChange(java.beans.PropertyChangeEvent)