Class PVCache
java.lang.Object
org.scictrl.csshell.epics.casperr.PVCache
PVCache class.
- Author:
- igor@scictrl.com
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds listener to event in this data (PVRecord) model.boolean
Adds record to cache, if does not exist in cache yet.boolean
addRecord
(org.scictrl.csshell.epics.casperr.PVCache.PVRecord rec) Adds record to cache, if does not exist in cache yet.String[]
getNames()
Getter for the fieldnames
.org.scictrl.csshell.epics.casperr.PVCache.PVRecord
getRecord.boolean
updateRecord
(String pv, Poop<?, ?> poop) updateRecord.
-
Field Details
-
PROPERTY_RECORD_ADDED
ConstantPROPERTY_RECORD_ADDED="recordAdded"
- See Also:
-
PROPERTY_RECORD_UPDATED
ConstantPROPERTY_RECORD_UPDATED="recordUpdated"
- See Also:
-
-
Constructor Details
-
PVCache
Constructor for PVCache.
- Parameters:
file
- aFile
object
-
-
Method Details
-
addPropertyChangeListener
Adds listener to event in this data (PVRecord) model.- Parameters:
name
- name of eventl
- listener
-
addRecord
public boolean addRecord(org.scictrl.csshell.epics.casperr.PVCache.PVRecord rec) Adds record to cache, if does not exist in cache yet.- Parameters:
rec
- the record to be added- Returns:
- returns
true
if record was added, otherwisefalse
-
addRecord
Adds record to cache, if does not exist in cache yet.- Parameters:
name
- aString
object- Returns:
- returns
true
if record was added, otherwisefalse
-
getNames
Getter for the field
names
.- Returns:
- an array of
String
objects
-
getRecord
getRecord.
- Parameters:
pv
- aString
object- Returns:
- a
PVCache.PVRecord
object
-
updateRecord
updateRecord.
-