Class DetectorResult

java.lang.Object
ca.phon.query.detectors.DetectorResult
All Implemented Interfaces:
IExtendable
Direct Known Subclasses:
HarmonyDetectorResult, MetathesisDetectorResult

public class DetectorResult extends Object implements IExtendable
A result object for two positions of a PhoneMap
  • Field Details

    • pos1

      protected int pos1
    • pos2

      protected int pos2
  • Constructor Details

    • DetectorResult

      public DetectorResult(PhoneMap phoneMap)
      Default constructor.
  • Method Details

    • getPhoneMap

      public PhoneMap getPhoneMap()
      Get the first position of the result.
      Returns:
      the first position
    • setFirstPosition

      public void setFirstPosition(int p)
      Set the first position of the result.
      Parameters:
      p - the position
    • getFirstPosition

      public int getFirstPosition()
      Get the first position of the result.
      Returns:
      the first position
    • setSecondPosition

      public void setSecondPosition(int p)
      Set the second position of the result.
      Parameters:
      p - the position
    • getSecondPosition

      public int getSecondPosition()
      Get the second position of the result.
      Returns:
      the second position
    • getExtensions

      public Set<Class<?>> getExtensions()
      Description copied from interface: IExtendable
      Return all extension types supported
      Specified by:
      getExtensions in interface IExtendable
    • getExtension

      public <T> T getExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Get the requested extension if available.
      Specified by:
      getExtension in interface IExtendable
      Returns:
      the capability object or null if the cability is not available
    • putExtension

      public <T> T putExtension(Class<T> cap, T impl)
      Description copied from interface: IExtendable
      Add a new extension.
      Specified by:
      putExtension in interface IExtendable
      Parameters:
      cap - the extension to add
      Returns:
      the added extension implementation
    • removeExtension

      public <T> T removeExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Remove a capability.
      Specified by:
      removeExtension in interface IExtendable
      Parameters:
      cap - the capability to remove