Package PamguardMVC

Class BinaryFileMatcher

java.lang.Object
PamguardMVC.BinaryFileMatcher
All Implemented Interfaces:
DataUnitMatcher

public class BinaryFileMatcher extends Object implements DataUnitMatcher
Match data based on binary file information.

Must supply two parameters. First is binary file name second is click number in file.

Author:
Doug Gillespie
  • Constructor Details

    • BinaryFileMatcher

      public BinaryFileMatcher()
  • Method Details

    • match

      public int match(PamDataUnit dataUnit, Object... criteria)
      Description copied from interface: DataUnitMatcher
      Return an int, so we can see if we should move forwrard of back. Similar behaviour to a Java Comparator, where >0 means that the criteria are greater than the dataUnit, probably meaning we're too far into the list, so should back up, invalid input: '<'= meaning we're not far enough, and 0 meaning a match.
      Specified by:
      match in interface DataUnitMatcher
      Returns: