Class AbstractScrollManager.SpecialDataBlockInfo

java.lang.Object
pamScrollSystem.AbstractScrollManager.SpecialDataBlockInfo
Enclosing class:
AbstractScrollManager

public class AbstractScrollManager.SpecialDataBlockInfo extends Object
Holds a reference to a data block and some extra information on how that data block should be loaded.

Special data blocks are data blocks which are loaded regardless of their subscription to a scroller, usually this for super detections in which there are relatively very few data units.

In some cases there may be a type of data unit which has a medium numbder of data units i.e. they should not all be loaded but a large section should be loaded. If this is the case then the min and max time functions can be used to figure out what the load times should be.

Author:
Jamie Macualay
  • Field Details

    • pamDataBlock

      public PamDataBlock pamDataBlock
      The data block that is special.
    • minTime

      public long minTime
      The time to load before scroller.
    • maxTime

      public long maxTime
      The time to load after scroller.
  • Constructor Details

    • SpecialDataBlockInfo

      public SpecialDataBlockInfo(PamDataBlock pamDataBlock)
      Create a SpecialDataBlockInfo with default load times to load all data from data block.
      Parameters:
      pamDataBlock -
    • SpecialDataBlockInfo

      public SpecialDataBlockInfo(PamDataBlock pamDataBlock, long timeBefore, long timeAfter)
      Create a SpecialDataBlockInfo with defined load times
      Parameters:
      pamDataBlock - - the data block to be special
      timeBefore - - time to load before the scroller.
      timeAfter - - time to load after the scroller.