Class PVCache

java.lang.Object
org.scictrl.csshell.epics.casperr.PVCache

public class PVCache extends Object

PVCache class.

Author:
igor@scictrl.com
  • Field Details

    • PROPERTY_RECORD_ADDED

      public static final String PROPERTY_RECORD_ADDED
      Constant PROPERTY_RECORD_ADDED="recordAdded"
      See Also:
    • PROPERTY_RECORD_UPDATED

      public static final String PROPERTY_RECORD_UPDATED
      Constant PROPERTY_RECORD_UPDATED="recordUpdated"
      See Also:
  • Constructor Details

    • PVCache

      public PVCache(File file)

      Constructor for PVCache.

      Parameters:
      file - a File object
  • Method Details

    • addPropertyChangeListener

      public void addPropertyChangeListener(String name, PropertyChangeListener l)
      Adds listener to event in this data (PVRecord) model.
      Parameters:
      name - name of event
      l - 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, otherwise false
    • addRecord

      public boolean addRecord(String name)
      Adds record to cache, if does not exist in cache yet.
      Parameters:
      name - a String object
      Returns:
      returns true if record was added, otherwise false
    • getNames

      public String[] getNames()

      Getter for the field names.

      Returns:
      an array of String objects
    • getRecord

      public org.scictrl.csshell.epics.casperr.PVCache.PVRecord getRecord(String pv)

      getRecord.

      Parameters:
      pv - a String object
      Returns:
      a PVCache.PVRecord object
    • updateRecord

      public boolean updateRecord(String pv, Poop<?,?> poop)

      updateRecord.

      Parameters:
      pv - a String object
      poop - a Poop object
      Returns:
      a boolean