|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--elge.monitor.AbstractMonitor | +--elge.monitor.WorldMonitor | +--elge.monitor.WorldRatioMonitor
THe world ratio properties is like WorldMonitor, but it monitors 2 properties and makes the ratio from them.
Field Summary | |
protected PropertyDescriptor |
propR
property descriptor |
protected String |
rp
the second property |
protected int |
win
The count the values should be increased |
Fields inherited from class elge.monitor.WorldMonitor |
propD |
Fields inherited from class elge.monitor.AbstractMonitor |
per, PROP_PROJECT, pt |
Constructor Summary | |
WorldRatioMonitor()
Creates a new instance of WorldRatioMonitor |
Method Summary | |
String |
getFullName()
full name for this monitor |
String[] |
getIdentifiers()
the identifiers |
String |
getMonitorName()
monitor name |
String |
getRatioProperty()
the second property |
Object[] |
getValues()
the values |
int |
getWindow()
gets the window |
boolean |
isAvailable()
true if both properties are correct |
void |
setRatioProperty(String rp)
sets the second property |
void |
setWindow(int win)
sets th window |
protected void |
updateProperties()
updates the descriptors |
Methods inherited from class elge.monitor.WorldMonitor |
getDescription, getMonitoredProperty, setMonitoredProperty, updateMonitor |
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 |
protected String rp
protected PropertyDescriptor propR
protected int win
Constructor Detail |
public WorldRatioMonitor()
Method Detail |
public int getWindow()
public void setWindow(int win)
win
- the window sizepublic String getRatioProperty()
public void setRatioProperty(String rp)
rp
- the property nameprotected void updateProperties()
updateProperties
in class WorldMonitor
public boolean isAvailable()
isAvailable
in class WorldMonitor
public String getFullName()
getFullName
in interface Monitor
getFullName
in class WorldMonitor
public String[] getIdentifiers()
getIdentifiers
in interface Monitor
getIdentifiers
in class WorldMonitor
public String getMonitorName()
getMonitorName
in interface Monitor
getMonitorName
in class WorldMonitor
public Object[] getValues()
getValues
in interface Monitor
getValues
in class WorldMonitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |