Package PamguardMVC

Class LastDataUnitStore

java.lang.Object
PamguardMVC.LastDataUnitStore
Direct Known Subclasses:
DataBlockRXInfo

public class LastDataUnitStore extends Object
Stores a set of latest data units, only one per data block and can retreive them in various ways.
Author:
doug
  • Constructor Details

    • LastDataUnitStore

      public LastDataUnitStore()
  • Method Details

    • addDataUnit

      public void addDataUnit(PamDataBlock dataBlock, PamDataUnit dataUnit, int dataSize)
      Add a new unit to the store, returning the previous one if it existed.
      Parameters:
      dataBlock - Data Block
      dataUnit - Data unit
    • findLastDataUnit

      public PamDataUnit findLastDataUnit(PamDataBlock dataBlock)
    • getDataBlockInfo

      public DataBlockRXInfo getDataBlockInfo(PamDataBlock dataBlock)
    • findLastDataUnit

      public PamDataUnit findLastDataUnit(Class unitClass)
      Find a data unit by it's class type
      Parameters:
      unitClass - Data Unit class
      Returns:
      last data unit of that class, or null.
    • clear

      public void clear()