Package clickDetector

Class ClickBinaryModuleFooter

java.lang.Object
binaryFileStorage.ModuleFooter
clickDetector.ClickBinaryModuleFooter
All Implemented Interfaces:
Serializable, ManagedParameters

public class ClickBinaryModuleFooter extends ModuleFooter implements ManagedParameters
See Also:
  • Constructor Details

    • ClickBinaryModuleFooter

      public ClickBinaryModuleFooter(ClickDetector clickDetector)
  • Method Details

    • newClick

      public boolean newClick(ClickDetection click)
    • getByteArray

      public byte[] getByteArray()
      Description copied from class: ModuleFooter
      Get module specific data to write to the footer. Note that this is just the module data, not the object identifier.
      Specified by:
      getByteArray in class ModuleFooter
      Returns:
      byte array or null
    • createFooter

      public boolean createFooter(BinaryObjectData binaryObjectData, BinaryHeader binaryHeader, ModuleHeader moduleHeader)
      Description copied from class: ModuleFooter
      Read data from a byte array to recreate a module header being read back from file.

      The BinaryHeader and ModuleHeader can be used to check version numbers if required.

      Specified by:
      createFooter in class ModuleFooter
      Parameters:
      binaryObjectData - data read from file
      binaryHeader - binary Header from data file
      moduleHeader - module specific header from data file
      Returns:
      true if unpacked successfully.
    • getTypesCount

      public int[] getTypesCount()
      Returns:
      the typesCount
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.