| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.gui.displayers.ObjectConsumerMulticaster
public class ObjectConsumerMulticaster
ObjectConsumerMulticaster delegates all defined data sources to
 ObjectConsumer delegate.
| Field Summary | |
|---|---|
| static java.lang.Class[] | SUPPORTED_CONSUMER_TYPESTypes of data consumers, that are supported by this multicaster. | 
| Constructor Summary | |
|---|---|
| ObjectConsumerMulticaster()Creates multicaster without delegate. | |
| ObjectConsumerMulticaster(ObjectConsumer delegate)Creates a new ObjectConsumerMulticaster object. | |
| Method Summary | ||
|---|---|---|
| static ObjectConsumer | createDataConsumer(java.lang.Class type,
                   ObjectConsumer delegate)If multicaster supports type, new multicaster is created, otherwise nullis returned. | |
| 
 | 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. | |
|  ObjectConsumer | getDelegate()Returns delegated 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[] | 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 | setDelegate(ObjectConsumer consumer)Sets delegated consumer. | |
|  void | updateDataState(DataState state)Push data state (quality) update change for dynamic value. | |
|  void | updateValue(long timestamp,
            java.util.BitSet value)Notifys this consumer about new dynamic value update. | |
|  void | updateValue(long timestamp,
            double value)Notifys this consumer about new dynamic value update. | |
|  void | updateValue(long timestamp,
            double[] value)Notifys this consumer about new dynamic value update. | |
|  void | updateValue(long timestamp,
            long value)Notifys this consumer about new dynamic value update. | |
|  void | updateValue(long timestamp,
            long[] value)Notifys this consumer about new dynamic value update. | |
|  void | updateValue(long timestamp,
            java.lang.Number value)Notifys this consumer about new dynamic value update. | |
|  void | updateValue(long timestamp,
            java.lang.Object value)Notifys this consumer about new dynamic value update. | |
|  void | updateValue(long timestamp,
            java.lang.Object[] value)Notifys this consumer about new dynamic value update. | |
|  void | updateValue(long timestamp,
            java.lang.String value)Notifys this consumer about new dynamic value update. | |
|  void | updateValue(long timestamp,
            java.lang.String[] value)Notifys this consumer about new dynamic value update. | |
| 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.Class[] SUPPORTED_CONSUMER_TYPES
| Constructor Detail | 
|---|
public ObjectConsumerMulticaster()
public ObjectConsumerMulticaster(ObjectConsumer delegate)
delegate - DOCUMENT ME!| Method Detail | 
|---|
public static final ObjectConsumer createDataConsumer(java.lang.Class type,
                                                      ObjectConsumer delegate)
nullis returned.
type - the requested consumer typedelegate - the consumer to which all call sare delegated
nullpublic ObjectConsumer getDelegate()
public void setDelegate(ObjectConsumer consumer)
consumer - delegated
public void updateValue(long timestamp,
                        double value)
                 throws CommonException
DoubleConsumer
updateValue in interface DoubleConsumertimestamp - the time of dynamic value eventvalue - new value
CommonException
public void updateValue(long timestamp,
                        double[] value)
                 throws CommonException
DoubleSeqConsumer
updateValue in interface DoubleSeqConsumertimestamp - the time of dynamic value eventvalue - new value
CommonException
public void updateValue(long timestamp,
                        long value)
                 throws CommonException
LongConsumer
updateValue in interface LongConsumertimestamp - the time of dynamic value eventvalue - new value
CommonException
public void updateValue(long timestamp,
                        long[] value)
                 throws CommonException
LongSeqConsumer
updateValue in interface LongSeqConsumertimestamp - the time of dynamic value eventvalue - new value
CommonException
public void updateValue(long timestamp,
                        java.lang.Number value)
                 throws CommonException
NumberConsumer
updateValue in interface NumberConsumertimestamp - the time of dynamic value eventvalue - new value
CommonException
public void updateValue(long timestamp,
                        java.lang.Object value)
                 throws CommonException
ObjectConsumer
updateValue in interface ObjectConsumertimestamp - the time of dynamic value eventvalue - new value
CommonException
public void updateValue(long timestamp,
                        java.lang.Object[] value)
                 throws CommonException
ObjectSeqConsumer
updateValue in interface ObjectSeqConsumertimestamp - the time of dynamic value eventvalue - new value
CommonException
public void updateValue(long timestamp,
                        java.util.BitSet value)
                 throws CommonException
PatternConsumer
updateValue in interface PatternConsumertimestamp - the time of dynamic value eventvalue - new value
CommonException
public void updateValue(long timestamp,
                        java.lang.String value)
                 throws CommonException
StringConsumer
updateValue in interface StringConsumertimestamp - the time of dynamic value eventvalue - new value
CommonException
public void updateValue(long timestamp,
                        java.lang.String[] value)
                 throws CommonException
StringSeqConsumer
updateValue in interface StringSeqConsumertimestamp - the time of dynamic value eventvalue - new value
CommonExceptionpublic DataConsumer getDefaultDataConsumer()
DataConsumer
getDefaultDataConsumer in interface DataConsumerpublic java.lang.String getName()
DataConsumer
getName in interface DataConsumerpublic java.lang.String[] getSupportedCharacteristics()
DataConsumernull is returned, than
 consumer expect all existing characteristics from data source.
getSupportedCharacteristics in interface DataConsumerpublic java.lang.Class[] getSupportedConsumerTypes()
DataConsumergetDataCosnumer(Class)
 method.
getSupportedConsumerTypes in interface DataConsumerpublic void setCharacteristics(java.util.Map characteristics)
DataConsumer
setCharacteristics in interface DataConsumercharacteristics - the Map with attripublic void updateDataState(DataState state)
DataConsumer
updateDataState in interface DataConsumerstate - new data state(quality) descriptorpublic <D extends DataConsumer> D getDataConsumer(java.lang.Class<D> type)
DataConsumer
 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.
getDataConsumer in interface DataConsumertype - Class of specific data consumer  (e.g. DoubleConsumer)
null if
         not supported| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||