|
||||||||
| 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.jddac.RelayBlock
org.mbari.jddac.AggregationBlock
public class AggregationBlock
FunctionBlock used for aggregating measurements or records. Measurements/Records can be filtered by adding implementations of IFilter. A Filter generally accepts or rejects a Measurement but can also be more complicated.
IFilter,
SampleCountFilter,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
OpIdAddArgArray
Operation ID for adding an argument array |
| Fields inherited from class org.mbari.jddac.RelayBlock |
|---|
OpIdAddFunction |
| 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 | |
|---|---|
AggregationBlock()
|
|
| Method Summary | |
|---|---|
boolean |
addArgArray(net.java.jddac.common.type.ArgArray argArray)
Add a sample to the aggregation data. |
boolean |
addFilter(IFilter filter)
Add a sample filter. |
void |
addNewArgArrayListener(NewArgArrayListener listener)
|
void |
clear()
Clear all the samples out of the AggregationBlock |
net.java.jddac.common.type.ArgArray[] |
getArgArrays()
Retreive all the samples that have been stored in the AggregationBlock |
IFilter[] |
getFilters()
Retreive all filters registered with the AggregationBlock |
NewArgArrayListener[] |
getNewArgArrayListeners()
|
java.util.Vector |
getSamples()
Retrieves the underlying Vector that is used to hold all the samples. |
net.java.jddac.common.type.ArgArray |
perform(java.lang.String server_operation_id,
net.java.jddac.common.type.ArgArray server_input_arguments)
Performs the operation using server_input_arguments as the argument to the function used for processing |
boolean |
removeFilter(IFilter filter)
Removes a filter |
void |
removeNewArgArrayListener(NewArgArrayListener listener)
|
int |
size()
|
| Methods inherited from class org.mbari.jddac.RelayBlock |
|---|
addChild, addFunction, getChildren, removeChild |
| Methods inherited from class net.java.jddac.jmdi.fblock.FunctionBlock |
|---|
configure, destroy, destroyDeferredThread, getBlockMajorState, getBlockModelNumber, getBlockVersion, getEntityMetaData, getFunctionBlockState, getGroupIDs, getPubIDFromName, getSubIDFromName, goActive, initialize, notifySubscriber, 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 OpIdAddArgArray
| Constructor Detail |
|---|
public AggregationBlock()
| Method Detail |
|---|
public net.java.jddac.common.type.ArgArray perform(java.lang.String server_operation_id,
net.java.jddac.common.type.ArgArray server_input_arguments)
throws java.lang.Exception,
net.java.jddac.common.exception.OpException
RelayBlockPerforms the operation using server_input_arguments as the argument to the function used for processing
You can set the function used by calling:
relatyBlock.addFunction(FunctionFactory.createFunctionArg(OpIdIn, OpIdOut, new SomeIFunction());
perform in class RelayBlockjava.lang.Exception
net.java.jddac.common.exception.OpExceptionpublic void addNewArgArrayListener(NewArgArrayListener listener)
public void removeNewArgArrayListener(NewArgArrayListener listener)
public NewArgArrayListener[] getNewArgArrayListeners()
public boolean addArgArray(net.java.jddac.common.type.ArgArray argArray)
addFilter(IFilter filter). If an ArgArray fails any
of the acceptance tests then it will not be added.
argArray - An argArray to add
public net.java.jddac.common.type.ArgArray[] getArgArrays()
public boolean addFilter(IFilter filter)
addArgArray, it must be tested by every filter registered
to see if it is added as to the aggregation of samples.
filter - The filter to add
IFilterpublic boolean removeFilter(IFilter filter)
filter - The filter to remove
IFilterpublic IFilter[] getFilters()
public int size()
public void clear()
clear in class net.java.jddac.jmdi.fblock.FunctionBlockpublic java.util.Vector getSamples()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||