Package PamguardMVC

Class DefaultUnitMatcher

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

public class DefaultUnitMatcher extends Object implements DataUnitMatcher
Default data unit matcher for use with DataUnitFinder Matches clicks on time and possibly also channel/sequence number depending on the number of arguments supplied.
Author:
Doug Gillespie
See Also:
  • Constructor Details

    • DefaultUnitMatcher

      public DefaultUnitMatcher()
  • 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: