Class DetectorResult
java.lang.Object
ca.phon.query.detectors.DetectorResult
- All Implemented Interfaces:
IExtendable
- Direct Known Subclasses:
HarmonyDetectorResult,MetathesisDetectorResult
A result object for two positions of a
PhoneMap-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetExtension(Class<T> cap) Get the requested extension if available.Return all extension types supportedintGet the first position of the result.Get the first position of the result.intGet the second position of the result.<T> TputExtension(Class<T> cap, T impl) Add a new extension.<T> TremoveExtension(Class<T> cap) Remove a capability.voidsetFirstPosition(int p) Set the first position of the result.voidsetSecondPosition(int p) Set the second position of the result.
-
Field Details
-
pos1
protected int pos1 -
pos2
protected int pos2
-
-
Constructor Details
-
DetectorResult
Default constructor.
-
-
Method Details
-
getPhoneMap
-
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
Description copied from interface:IExtendableReturn all extension types supported- Specified by:
getExtensionsin interfaceIExtendable
-
getExtension
Description copied from interface:IExtendableGet the requested extension if available.- Specified by:
getExtensionin interfaceIExtendable- Returns:
- the capability object or
nullif the cability is not available
-
putExtension
Description copied from interface:IExtendableAdd a new extension.- Specified by:
putExtensionin interfaceIExtendable- Parameters:
cap- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendableRemove a capability.- Specified by:
removeExtensionin interfaceIExtendable- Parameters:
cap- the capability to remove
-