public class DataPointEventMulticaster extends java.lang.Object implements DataPointListener
| Modifier and Type | Field and Description |
|---|---|
protected DataPointListener |
a |
protected DataPointListener |
b |
private static org.apache.commons.logging.Log |
LOG |
| Modifier | Constructor and Description |
|---|---|
protected |
DataPointEventMulticaster(DataPointListener a,
DataPointListener b) |
| Modifier and Type | Method and Description |
|---|---|
static DataPointListener |
add(DataPointListener a,
DataPointListener b) |
private static int |
getListenerCount(DataPointListener l) |
static DataPointListener[] |
getListeners(DataPointListener l) |
void |
pointBackdated(PointValueTime value)
This method is called when a backdated value is received.
|
void |
pointChanged(PointValueTime oldValue,
PointValueTime newValue)
This method is called every time the point gets a value that is different from its previous value (except for its
initialization).
|
void |
pointInitialized()
This method is called for all existing listeners when the point is initialized.
|
void |
pointSet(PointValueTime oldValue,
PointValueTime newValue)
This method is called every time the point gets set, whether the value changes or not.
|
void |
pointTerminated()
This method is called when the point has been terminated, allowing listeners to react as necessary.
|
void |
pointUpdated(PointValueTime newValue)
This method is called every time the point gets a value from somewhere (except for its initialization).
|
private static int |
populateListenerArray(DataPointListener[] a,
DataPointListener l,
int index) |
protected DataPointListener |
remove(DataPointListener oldl) |
static DataPointListener |
remove(DataPointListener l,
DataPointListener oldl) |
private static final org.apache.commons.logging.Log LOG
protected final DataPointListener a
protected final DataPointListener b
protected DataPointEventMulticaster(DataPointListener a, DataPointListener b)
protected DataPointListener remove(DataPointListener oldl)
public static DataPointListener add(DataPointListener a, DataPointListener b)
public static DataPointListener remove(DataPointListener l, DataPointListener oldl)
private static int getListenerCount(DataPointListener l)
private static int populateListenerArray(DataPointListener[] a, DataPointListener l, int index)
public static DataPointListener[] getListeners(DataPointListener l)
public void pointChanged(PointValueTime oldValue, PointValueTime newValue)
DataPointListenerpointChanged in interface DataPointListenerpublic void pointSet(PointValueTime oldValue, PointValueTime newValue)
DataPointListenerpointSet in interface DataPointListenerpublic void pointUpdated(PointValueTime newValue)
DataPointListenerpointUpdated in interface DataPointListenerpublic void pointBackdated(PointValueTime value)
DataPointListenerpointBackdated in interface DataPointListenerpublic void pointInitialized()
DataPointListenerpointInitialized in interface DataPointListenerpublic void pointTerminated()
DataPointListenerpointTerminated in interface DataPointListener