Package uk.ac.starlink.ttools.join
Class HumanMatchEngine
- java.lang.Object
-
- uk.ac.starlink.ttools.join.HumanMatchEngine
-
- All Implemented Interfaces:
uk.ac.starlink.table.join.MatchEngine
public class HumanMatchEngine extends java.lang.Object implements uk.ac.starlink.table.join.MatchEngineMatchEngine adaptor which transforms the base engine so that it uses more human-friendly units. Currently, this means that it uses eschews radians in favour of degrees or arcseconds for angular quantities; it decides which on the basis of UCDs. In other respects, this engine will behave exactly the same as its base engine. If the base engine has no human-unfriendly units, this one should behave exactly the same.- Since:
- 2 Sep 2005
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description HumanMatchEngine(uk.ac.starlink.table.join.MatchEngine baseEngine)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBoundMatch()java.lang.Object[]getBins(java.lang.Object[] tuple)uk.ac.starlink.table.join.NdRangegetMatchBounds(uk.ac.starlink.table.join.NdRange[] inRanges, int index)uk.ac.starlink.table.DescribedValue[]getMatchParameters()uk.ac.starlink.table.ValueInfogetMatchScoreInfo()doublegetScoreScale()uk.ac.starlink.table.DescribedValue[]getTuningParameters()uk.ac.starlink.table.ValueInfo[]getTupleInfos()booleanisLargeAngle(uk.ac.starlink.table.ValueInfo info)Indicates whether a given value is recognised as representing a large angle (such as a coordinate of some kind).booleanisSmallAngle(uk.ac.starlink.table.ValueInfo info)Indicates whether a given value is recognised as representing a small angle (such as an error of some kind).doublematchScore(java.lang.Object[] tuple1, java.lang.Object[] tuple2)
-
-
-
Method Detail
-
getMatchParameters
public uk.ac.starlink.table.DescribedValue[] getMatchParameters()
- Specified by:
getMatchParametersin interfaceuk.ac.starlink.table.join.MatchEngine
-
getTuningParameters
public uk.ac.starlink.table.DescribedValue[] getTuningParameters()
- Specified by:
getTuningParametersin interfaceuk.ac.starlink.table.join.MatchEngine
-
getTupleInfos
public uk.ac.starlink.table.ValueInfo[] getTupleInfos()
- Specified by:
getTupleInfosin interfaceuk.ac.starlink.table.join.MatchEngine
-
getBins
public java.lang.Object[] getBins(java.lang.Object[] tuple)
- Specified by:
getBinsin interfaceuk.ac.starlink.table.join.MatchEngine
-
matchScore
public double matchScore(java.lang.Object[] tuple1, java.lang.Object[] tuple2)- Specified by:
matchScorein interfaceuk.ac.starlink.table.join.MatchEngine
-
getScoreScale
public double getScoreScale()
- Specified by:
getScoreScalein interfaceuk.ac.starlink.table.join.MatchEngine
-
getMatchScoreInfo
public uk.ac.starlink.table.ValueInfo getMatchScoreInfo()
- Specified by:
getMatchScoreInfoin interfaceuk.ac.starlink.table.join.MatchEngine
-
canBoundMatch
public boolean canBoundMatch()
- Specified by:
canBoundMatchin interfaceuk.ac.starlink.table.join.MatchEngine
-
getMatchBounds
public uk.ac.starlink.table.join.NdRange getMatchBounds(uk.ac.starlink.table.join.NdRange[] inRanges, int index)- Specified by:
getMatchBoundsin interfaceuk.ac.starlink.table.join.MatchEngine
-
isLargeAngle
public boolean isLargeAngle(uk.ac.starlink.table.ValueInfo info)
Indicates whether a given value is recognised as representing a large angle (such as a coordinate of some kind).- Parameters:
info- value metadata- Returns:
- true if info is known to represent a large angle
-
isSmallAngle
public boolean isSmallAngle(uk.ac.starlink.table.ValueInfo info)
Indicates whether a given value is recognised as representing a small angle (such as an error of some kind).- Parameters:
info- value metadata- Returns:
- true if info is known to represent a small angle
-
-