29 using OpenSim.Region.Framework.Scenes;
31 namespace OpenSim.
Region.CoreModules.Framework.Monitoring.Monitors
36 public string Name {
get;
private set; }
37 public string FriendlyName {
get;
private set; }
39 private readonly Func<GenericMonitor, double> m_getValueAction;
40 private readonly Func<GenericMonitor, string> m_getFriendlyValueAction;
46 Func<GenericMonitor, double> getValueAction,
47 Func<GenericMonitor, string> getFriendlyValueAction)
52 m_getFriendlyValueAction = getFriendlyValueAction;
53 m_getValueAction = getValueAction;
58 return m_getValueAction(
this);
73 return m_getFriendlyValueAction(
this);
GenericMonitor(Scene scene, string name, string friendlyName, Func< GenericMonitor, double > getValueAction, Func< GenericMonitor, string > getFriendlyValueAction)
double GetValue()
Value of this monitor
string GetName()
Name of the monitor.
string GetFriendlyValue()
Human readable value.
string GetFriendlyName()
Human-readable name of the monitor