public abstract class AbstractInstrument extends java.lang.Object implements Instrument
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
m_name
The name of the Instrument.
|
private InstrumentProxy |
m_proxy
Proxy object used to communicate with the InstrumentManager.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractInstrument(java.lang.String name)
Creates a new AbstractInstrument.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getInstrumentName()
Gets the name for the Instrument.
|
protected InstrumentProxy |
getInstrumentProxy()
Returns the InstrumentProxy object assigned to the instrument by the
InstrumentManager.
|
boolean |
isActive()
Used by classes being profiled so that they can avoid unnecessary
code when the data from an Instrument is not being used.
|
void |
setInstrumentProxy(InstrumentProxy proxy)
When the InstrumentManager is present, an InstrumentProxy will be set
to enable the Instrument to communicate with the InstrumentManager.
|
private java.lang.String m_name
private InstrumentProxy m_proxy
protected AbstractInstrument(java.lang.String name)
name - The name of the Instrument. The value should be a string
which does not contain spaces or periods.public java.lang.String getInstrumentName()
getInstrumentName in interface Instrumentpublic void setInstrumentProxy(InstrumentProxy proxy)
proxy - Proxy object used to communicate with the
InstrumentManager.public boolean isActive()
protected InstrumentProxy getInstrumentProxy()