class MaximumValueInstrumentSample extends AbstractValueInstrumentSample
m_lastValue, m_value, m_valueCountm_time| Constructor and Description |
|---|
MaximumValueInstrumentSample(InstrumentProxy instrumentProxy,
java.lang.String name,
long interval,
int size,
java.lang.String description,
long lease)
Creates a new MaximumValueInstrumentSample
|
| Modifier and Type | Method and Description |
|---|---|
int |
getType()
Returns the type of the Instrument Sample.
|
protected void |
setValueInner(int value,
long time)
Sets the current value of the sample.
|
advanceToNextSample, getFillValue, getInstrumentType, getValueInner, loadState, setValue, writeStateAttributesaddInstrumentSampleListener, expire, extendLease, getDescription, getDescriptor, getInstrumentProxy, getInterval, getLeaseExpirationTime, getName, getSize, getSnapshot, getStateVersion, getTime, getValue, isConfigured, loadState, makePermanent, removeInstrumentSampleListener, setConfigured, stateChanged, toString, update, updateListeners, writeStateenableLogging, getLogger, setupLogger, setupLogger, setupLoggerMaximumValueInstrumentSample(InstrumentProxy instrumentProxy, java.lang.String name, long interval, int size, java.lang.String description, long lease)
instrumentProxy - The InstrumentProxy which owns the
InstrumentSample.name - The name of the new InstrumentSample.interval - The sample interval of the new InstrumentSample.size - The number of samples to store as history. Assumes that size is at least 1.description - The description of the new InstrumentSample.lease - The length of the lease in milliseconds.public int getType()
protected void setValueInner(int value,
long time)
setValueInner in class AbstractValueInstrumentSamplevalue - New sample value.time - Time that the new sample arrives.