Package ca.phon.query.detectors
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supportedint
Get the first position of the result.Get the first position of the result.int
Get the second position of the result.<T> T
putExtension
(Class<T> cap, T impl) Add a new extension.<T> T
removeExtension
(Class<T> cap) Remove a capability.void
setFirstPosition
(int p) Set the first position of the result.void
setSecondPosition
(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
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
Description copied from interface:IExtendable
Return all extension types supported- Specified by:
getExtensions
in interfaceIExtendable
-
getExtension
Description copied from interface:IExtendable
Get the requested extension if available.- Specified by:
getExtension
in interfaceIExtendable
- Returns:
- the capability object or
null
if the cability is not available
-
putExtension
Description copied from interface:IExtendable
Add a new extension.- Specified by:
putExtension
in interfaceIExtendable
- Parameters:
cap
- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendable
Remove a capability.- Specified by:
removeExtension
in interfaceIExtendable
- Parameters:
cap
- the capability to remove
-