|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.PV<T>
T
- the type of the PV.public final class PV<T>
An object representing the PV. It contains all elements that are common
to all PVs of all type. The payload is specified by the generic type,
and is returned by getValue()
. Changes in
values are notified through the PVValueChangeListener
. Listeners
can be registered from any thread. The value can only be accessed on the
thread on which the listeners is called.
Method Summary | |
---|---|
void |
addPVValueChangeListener(PVValueChangeListener listener)
Adds a listener to the value. |
void |
close()
De-registers all listeners, stops all notifications and closes all connections from the data sources needed by this. |
java.lang.String |
getName()
Returns the name of the PV. |
T |
getValue()
Returns the value of the PV. |
boolean |
isClosed()
True if no more notifications are going to be sent for this PV. |
void |
removePVValueChangeListener(PVValueChangeListener listener)
Adds a listener to the value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void addPVValueChangeListener(PVValueChangeListener listener)
listener
- a new listenerpublic void removePVValueChangeListener(PVValueChangeListener listener)
listener
- a new listenerpublic java.lang.String getName()
public T getValue()
PVValueChangeListener
.
public void close()
public boolean isClosed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |