Class ExtXmlCrosstableDS
java.lang.Object
com.aquima.interactions.ds.ReportingDS
com.aquima.interactions.ds.matching.ExtXmlCrosstableDS
- All Implemented Interfaces:
IReportingDS
,ICrosstableDS
Cross-table data source implementation for custom match engine XML configuration.
- Since:
- 6.2
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExtXmlCrosstableDS
(IInitializationReport report, IXmlNode node) -
Method Summary
Modifier and TypeMethodDescriptionThe unique name of the domain this cross table is defined for.getName()
This method returns the (unique) name of a cross table.boolean
When a cross table is defined as symmetric the match engine knows to check the upper half of the cross table to look for the reverse value if required.void
iterateDistances
(ICrosstableDistanceVisitor distanceVisitor) This method should initialise the cross table with the correct distances.Methods inherited from class com.aquima.interactions.ds.ReportingDS
addMessage, getCategory, getReport
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Constructor Details
-
ExtXmlCrosstableDS
-
-
Method Details
-
getName
Description copied from interface:ICrosstableDS
This method returns the (unique) name of a cross table. This name is the identifier which can be used to locate a match function from the IMatchEngine interface.- Specified by:
getName
in interfaceICrosstableDS
- Returns:
- The (unique) name of the cross table / match function.
-
getDomainName
Description copied from interface:ICrosstableDS
The unique name of the domain this cross table is defined for.- Specified by:
getDomainName
in interfaceICrosstableDS
- Returns:
- The Id of the domain this cross table is defined for.
-
isSymmetric
public boolean isSymmetric()Description copied from interface:ICrosstableDS
When a cross table is defined as symmetric the match engine knows to check the upper half of the cross table to look for the reverse value if required.- Specified by:
isSymmetric
in interfaceICrosstableDS
- Returns:
- A boolean indicating the cross table is symmetric across the diagonal.
-
iterateDistances
Description copied from interface:ICrosstableDS
This method should initialise the cross table with the correct distances. The addDistance method of the visitor can be invoked to add a distance.Note: The diagonal is ignored. (in the example house-house & office-office & barn-barn they are auto 100%)
A crosstable is defined as such:Crosstable definition House Office Barn House 100 70 50 Office 70 100 50 Barn 40 100 - House-Office: 70
- House-Barn: 50
- Office-House: 70
- Office-Barn: 60
- Barn-house: 40
- Specified by:
iterateDistances
in interfaceICrosstableDS
- Parameters:
distanceVisitor
- The visitor which is used to register the cross table distances to.
-