Class PVCache
java.lang.Object
org.scictrl.csshell.epics.casperr.PVCache
PVCache class.
- Author:
- igor@scictrl.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds listener to event in this data (PVRecord) model.booleanAdds record to cache, if does not exist in cache yet.booleanaddRecord(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.PVRecordgetRecord.booleanupdateRecord(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- aFileobject
-
-
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
trueif record was added, otherwisefalse
-
addRecord
Adds record to cache, if does not exist in cache yet.- Parameters:
name- aStringobject- Returns:
- returns
trueif record was added, otherwisefalse
-
getNames
Getter for the field
names.- Returns:
- an array of
Stringobjects
-
getRecord
getRecord.
- Parameters:
pv- aStringobject- Returns:
- a
PVCache.PVRecordobject
-
updateRecord
updateRecord.
-