
public abstract class AbstractMonitor extends Object implements Monitor
Monitor methods that are common
to all classes implementing the Monitor interface..| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected boolean |
supported |
protected Units |
units |
protected Variability |
variability |
protected int |
vectorLength |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMonitor(String name,
Units units,
Variability variability,
boolean supported)
Create a scalar instrumentation monitoring object with the given
name and attributes.
|
protected |
AbstractMonitor(String name,
Units units,
Variability variability,
boolean supported,
int vectorLength)
Create a vector instrumentation monitoring object with the given
name and attributes.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseName()
Returns the base name of this instrumentation object.
|
String |
getName()
Returns the name of this instrumentation object.
|
Units |
getUnits()
Returns the Units for this instrumentation monitoring object.
|
abstract Object |
getValue()
Return an Object that encapsulates this instrumentation object's
current data value.
|
Variability |
getVariability()
Returns the Variability for this instrumentation object.
|
int |
getVectorLength()
Return the length of the vector.
|
boolean |
isSupported()
Test if the instrumentation object is supported.
|
boolean |
isVector()
Test if the instrumentation object is a vector type.
|
protected String name
protected Units units
protected Variability variability
protected int vectorLength
protected boolean supported
protected AbstractMonitor(String name, Units units, Variability variability, boolean supported, int vectorLength)
name - the name to assign to this instrumentation object.units - the units of measure attributevariability - the variability attributesupported - support level indicatorvectorLength - the length of the vector, or 0 if not a vector type.protected AbstractMonitor(String name, Units units, Variability variability, boolean supported)
name - the name to assign to this instrumentation object.units - the units of measure attributevariability - the variability attributesupported - support level indicatorpublic String getName()
public String getBaseName()
getBaseName in interface Monitorpublic Units getUnits()
public Variability getVariability()
getVariability in interface Monitorpublic boolean isVector()
public int getVectorLength()
getVectorLength in interface Monitorpublic boolean isSupported()
isSupported in interface MonitorCopyright © 2017–2018 earcam. All rights reserved.