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)
DataPointListener
pointChanged
in interface DataPointListener
public void pointSet(PointValueTime oldValue, PointValueTime newValue)
DataPointListener
pointSet
in interface DataPointListener
public void pointUpdated(PointValueTime newValue)
DataPointListener
pointUpdated
in interface DataPointListener
public void pointBackdated(PointValueTime value)
DataPointListener
pointBackdated
in interface DataPointListener
public void pointInitialized()
DataPointListener
pointInitialized
in interface DataPointListener
public void pointTerminated()
DataPointListener
pointTerminated
in interface DataPointListener