public class ProcessVariableEventDispatcher extends Object implements gov.aps.jca.cas.ProcessVariableEventCallback
| Modifier and Type | Field and Description |
|---|---|
protected gov.aps.jca.cas.ProcessVariableEventCallback[] |
cachedList |
protected ArrayList |
listeners
List of listeners.
|
protected gov.aps.jca.cas.ProcessVariable |
processVariable
PV to dispatch for.
|
| Constructor and Description |
|---|
ProcessVariableEventDispatcher(gov.aps.jca.cas.ProcessVariable processVariable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
canceled() |
gov.aps.jca.cas.ProcessVariable |
getProcessVariable()
Get served PV.
|
void |
postEvent(int select,
gov.aps.jca.dbr.DBR event) |
void |
registerEventListener(gov.aps.jca.cas.ProcessVariableEventCallback listener)
Register new listener.
|
void |
setProcessVariable(gov.aps.jca.cas.ProcessVariable processVariable)
Set served PV (allow PV to be set later to avoid chicken-egg problem).
|
void |
unregisterEventListener(gov.aps.jca.cas.ProcessVariableEventCallback listener)
Unregister new listener.
|
protected gov.aps.jca.cas.ProcessVariable processVariable
protected ArrayList listeners
protected gov.aps.jca.cas.ProcessVariableEventCallback[] cachedList
public ProcessVariableEventDispatcher(gov.aps.jca.cas.ProcessVariable processVariable)
processVariable - PV to dispatch for, can be null.public gov.aps.jca.cas.ProcessVariable getProcessVariable()
public void setProcessVariable(gov.aps.jca.cas.ProcessVariable processVariable)
processVariable - the processVariable to setpublic void postEvent(int select,
gov.aps.jca.dbr.DBR event)
postEvent in interface gov.aps.jca.cas.ProcessVariableEventCallbackProcessVariableEventCallback.postEvent(int, gov.aps.jca.dbr.DBR)public void registerEventListener(gov.aps.jca.cas.ProcessVariableEventCallback listener)
listener - public void unregisterEventListener(gov.aps.jca.cas.ProcessVariableEventCallback listener)
listener - public void canceled()
CompletionCallback.canceled()Copyright © 2004-2013 Cosylab. All Rights Reserved.