Class CrossTableTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.matching.CrossTableTemplate
This template class may be used to initialize a crosstable definition.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CrossTableTemplate
(com.aquima.interactions.foundation.report.InitializationReport report, String name, String domainName) CrossTableTemplate
(String name, String domainName) Constructs the template with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDistance
(String fromValue, String toValue, int distance) This method may be used to specify a distance for the crosstable.protected List
<com.aquima.interactions.test.templates.matching.Distance> This method returns the name of the domain for which the crosstable is defined.getName()
this method returns the name of the crosstable.protected boolean
void
setSymmetric
(boolean symmetric) This method may be used to specify if the crosstable is symmetric.com.aquima.interactions.matching.ds.ICrosstableDS
This method converts the template to a data source that can be used to initialize the crosstable definition.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
CrossTableTemplate
Constructs the template with the required arguments.- Parameters:
name
- The name of the crosstable (function).domainName
- The name of the domain for which the crosstable is defined.
-
CrossTableTemplate
-
-
Method Details
-
getName
this method returns the name of the crosstable.- Returns:
- the name of the crosstable.
-
getDomainName
This method returns the name of the domain for which the crosstable is defined.- Returns:
- the name of the domain for which the crosstable is defined.
-
setSymmetric
public void setSymmetric(boolean symmetric) This method may be used to specify if the crosstable is symmetric. The default value for symmetric is false.- Parameters:
symmetric
- Boolean indicating if the crosstable is symmetric.
-
isSymetric
protected boolean isSymetric() -
addDistance
This method may be used to specify a distance for the crosstable.- Parameters:
fromValue
- The demand value.toValue
- The supply value.distance
- The distance between demand and supply.
-
getDistances
-
toDataSource
public com.aquima.interactions.matching.ds.ICrosstableDS toDataSource()This method converts the template to a data source that can be used to initialize the crosstable definition.- Returns:
- a data source that can be used to initialize the crosstable definition.
-