Interface ICrosstableDS
- All Superinterfaces:
IReportingDS
- All Known Implementing Classes:
ExtXmlCrosstableDS
This interface defines the methods that are needed to initialise a crosstable.
A cross table is a special match function which can be defined in the studio.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
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 interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Method Details
-
getName
String getName()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.- Returns:
- The (unique) name of the cross table / match function.
-
getDomainName
String getDomainName()The unique name of the domain this cross table is defined for.- Returns:
- The Id of the domain this cross table is defined for.
-
iterateDistances
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
- Parameters:
distanceVisitor
- The visitor which is used to register the cross table distances to.- Throws:
InitializationException
- This exception is thrown when invalid values are passed to the visitor.
-
isSymmetric
boolean isSymmetric()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.- Returns:
- A boolean indicating the cross table is symmetric across the diagonal.
-