Package effort.binary

Class DataMapEffortProvider

java.lang.Object
effort.EffortProvider
effort.binary.DataMapEffortProvider

public class DataMapEffortProvider extends EffortProvider
Effort provider for most types of datablock that bases itself off one of the datamaps, binary (preferred) or database. Binary better since database doesn't really have proper effort data for most blocks. However, we want this to work online too, so will need to have quite different functionality for real time and viewer operations.
Author:
dg50
  • Constructor Details

    • DataMapEffortProvider

      public DataMapEffortProvider(PamDataBlock parentDataBlock, Class<?> dataStoreClass, long maxGapMillis)
      Parameters:
      parentDataBlock -
      dataStoreClass -
      maxGapMillis -
    • DataMapEffortProvider

      public DataMapEffortProvider(PamDataBlock parentDataBlock, Class dataStoreClass)
      Parameters:
      parentDataBlock -
      dataStoreClass -
  • Method Details

    • getName

      public String getName()
      Description copied from class: EffortProvider
      Get the name of this effort provider.
      Specified by:
      getName in class EffortProvider
    • getAllEffortThings

      public List<EffortDataUnit> getAllEffortThings()
      Description copied from class: EffortProvider
      Get all effort things. e.g. for binary data this is more or less a copy of the datamap (perhaps new units without the gaps).
      Specified by:
      getAllEffortThings in class EffortProvider
      Returns:
    • getDataSelector

      public DataSelector getDataSelector(String selectorName)
      Description copied from class: EffortProvider
      Get a data selector. For specialist effort modules, this will probably call through to the datablocks data selection system. Others, such as binaryEffortProvider can return null since they are either on or off.
      Specified by:
      getDataSelector in class EffortProvider
      Returns:
    • getSymbolManager

      public PamSymbolManager getSymbolManager()
      Description copied from class: EffortProvider
      Get a symbol manager. For specialist effort modules, this will probably call through to the datablocks existing symbol management system. Others, such as binaryEffortProvider will need a chooser for the simple on/off data types. .
      Specified by:
      getSymbolManager in class EffortProvider
      Returns:
    • realTimeStart

      public void realTimeStart(long timeMilliseconds)
      Description copied from class: EffortProvider
      Notified at real time start.
      Specified by:
      realTimeStart in class EffortProvider
    • realTimeStop

      public void realTimeStop(long timeMilliseconds)
      Description copied from class: EffortProvider
      notified at real time end
      Specified by:
      realTimeStop in class EffortProvider
    • newData

      public void newData(PamDataUnit pamDataUnit)
      Description copied from class: EffortProvider
      Notified for real time data.
      Specified by:
      newData in class EffortProvider
    • viewerLoadData

      public void viewerLoadData()
      Description copied from class: EffortProvider
      Called when viewer data have been loaded for the parent datablock.
      Specified by:
      viewerLoadData in class EffortProvider