|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataConsumer
DataConsumer
interface defines receiver for udates of
Combunation of daata consumer and data source is data pipe. It could be used for data riltering or editing.
By default all data consumers are synchronous: they returns method call when update was successfull of fail with exception.
Method Summary | ||
---|---|---|
|
getDataConsumer(java.lang.Class<D> type)
Returns data consumer for requested data consumer type. |
|
DataConsumer |
getDefaultDataConsumer()
Returns the implementation of default consumer type supported by this data consumer. |
|
java.lang.String |
getName()
Returns name of this data consumer. |
|
java.lang.String[] |
getSupportedCharacteristics()
Resturns array with names of supported characteristics. |
|
java.lang.Class<DataConsumer>[] |
getSupportedConsumerTypes()
Returns array of supported data consumer types, which can be used as parameter and returnned with getDataCosnumer(Class)
method. |
|
void |
setCharacteristics(java.util.Map characteristics)
Sets new dynamic value characteristics to this data consumer. |
|
void |
updateDataState(DataState state)
Push data state (quality) update change for dynamic value. |
Method Detail |
---|
<D extends DataConsumer> D getDataConsumer(java.lang.Class<D> type)
Returns data consumer for requested data consumer type. If this data
consumer does not support required data consumer, null
is
returned.
If this data cosnumer does not support specific data consumer type, then it means, that it is not desirable to cast data of that type to any by this consumer supported data consumer types.
type
- Class of specific data consumer (e.g. DoubleConsumer)
null
if
not supportedDataConsumer getDefaultDataConsumer()
void updateDataState(DataState state)
state
- new data state(quality) descriptorvoid setCharacteristics(java.util.Map characteristics)
characteristics
- the Map
with attrijava.lang.String getName()
java.lang.String[] getSupportedCharacteristics()
null
is returned, than
consumer expect all existing characteristics from data source.
java.lang.Class<DataConsumer>[] getSupportedConsumerTypes()
getDataCosnumer(Class)
method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |