|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.java.jddac.common.fblock.Entity
net.java.jddac.jmdi.fblock.FunctionBlock
org.mbari.siam.distributed.measurement.SummarizerBlock
org.mbari.siam.distributed.measurement.Averager
public class Averager
Keep a running average of all passed-in numeric measurements. Summary for each measurement includes mean, standard deviation, number of samples, min value, max value, and times at which min and max values occurred.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log4j
Log4j logger |
static java.lang.String |
MAX_VALUE
|
static java.lang.String |
MAX_VALUE_TIME
|
static java.lang.String |
MEAN
|
static java.lang.String |
MIN_VALUE
|
static java.lang.String |
MIN_VALUE_TIME
|
static java.lang.String |
NSAMPLES
|
static java.lang.String |
START_TIME
|
static java.lang.String |
STD_DEV
|
static java.lang.String |
STOP_TIME
|
| Fields inherited from class org.mbari.siam.distributed.measurement.SummarizerBlock |
|---|
OpIdAddListener, OpIdAddSample, SCHEDULE_NAME |
| Fields inherited from class net.java.jddac.jmdi.fblock.FunctionBlock |
|---|
BL_ACTIVE, BL_INACTIVE, BL_UNINITIALIZED, blockMajorState, blockModelNumber, blockVersion, FB_IDLE, FB_RUNNING, FB_STOPPED, functionBlockState, groupIds, META_TEDS, OpIdClear, OpIdConfigure, OpIdGetAllMetaData, OpIdGetBlockMajorState, OpIdGetFunctionBlockState, OpIdGetGroupIDs, OpIdGetMetaData, OpIdPause, OpIdResume, OpIdStart, pubPortsProperty, subPortsProperty |
| Fields inherited from class net.java.jddac.common.fblock.Entity |
|---|
description, instanceName, META_CLASS, META_NAME, META_OPERATIONS, objectProperties, OpIdGetAttribute, OpIdGetClassName, OpIdGetDescription, OpIdGetInstanceName, OpIdGetObjectProperties, OpIdGetOwningBlockObjectTag, OpIdSetAttribute, OpIdSetInstanceName, owningBlockObjectName, PerformInputArg, PerformResult |
| Constructor Summary | |
|---|---|
Averager(int everyNthSample)
Create an Averager, summarize on every nth sample. |
|
Averager(ScheduleSpecifier schedule)
Create an Averager, summarize on specified schedule. |
|
| Method Summary | |
|---|---|
protected void |
addSampleRecord(SiamRecord payload)
Incorporate specified SiamRecord into SummaryRecord. |
SiamRecord |
computeSummary()
Compute summary statistics and return to caller. |
void |
configure(net.java.jddac.common.type.ArgArray config)
|
protected boolean |
include(java.lang.String measurementName)
Return false if this measurement should be skipped, else return true. |
void |
resetSummary()
Reset statistics |
| Methods inherited from class org.mbari.siam.distributed.measurement.SummarizerBlock |
|---|
addListener, addSample, addSchedule, doScheduledTask, getAllSchedules, getScheduleKey, goActive, notifySubscriber, perform, removeAllSchedules, removeSchedule, resumeSchedule, setSchedule, sleepingUntil, summarizeEveryNthSample, suspendSchedule, syncSchedule |
| Methods inherited from class net.java.jddac.jmdi.fblock.FunctionBlock |
|---|
clear, destroy, destroyDeferredThread, getBlockMajorState, getBlockModelNumber, getBlockVersion, getEntityMetaData, getFunctionBlockState, getGroupIDs, getPubIDFromName, getSubIDFromName, initialize, pause, publish, publishDeferred, reset, resume, setGroupIDs, start |
| Methods inherited from class net.java.jddac.common.fblock.Entity |
|---|
addOpTableMeta, getDescription, getInstanceName, getObjectProperties, getObjectPropery, getOwningBlockObjectName, setDescription, setInstanceName, setObjectProperties, setObjectProperty, setOwningBlockObjectName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MEAN
public static final java.lang.String STD_DEV
public static final java.lang.String MIN_VALUE
public static final java.lang.String MIN_VALUE_TIME
public static final java.lang.String MAX_VALUE
public static final java.lang.String MAX_VALUE_TIME
public static final java.lang.String NSAMPLES
public static final java.lang.String START_TIME
public static final java.lang.String STOP_TIME
protected static org.apache.log4j.Logger _log4j
| Constructor Detail |
|---|
public Averager(ScheduleSpecifier schedule)
throws ScheduleParseException
ScheduleParseExceptionpublic Averager(int everyNthSample)
| Method Detail |
|---|
public void configure(net.java.jddac.common.type.ArgArray config)
throws java.lang.Exception
configure in interface net.java.jddac.common.util.ConfigurationInterfaceconfigure in class net.java.jddac.jmdi.fblock.FunctionBlockjava.lang.Exceptionpublic SiamRecord computeSummary()
computeSummary in class SummarizerBlock
protected void addSampleRecord(SiamRecord payload)
throws java.lang.Exception
addSampleRecord in class SummarizerBlockjava.lang.Exceptionpublic void resetSummary()
resetSummary in class SummarizerBlockprotected boolean include(java.lang.String measurementName)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||