Class CrossTableTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.matching.CrossTableTemplate

public class CrossTableTemplate extends AbstractReportingTemplate
This template class may be used to initialize a crosstable definition.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Constructor Details

    • CrossTableTemplate

      public CrossTableTemplate(String name, String domainName)
      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

      protected CrossTableTemplate(com.aquima.interactions.foundation.report.InitializationReport report, String name, String domainName)
  • Method Details

    • getName

      public String getName()
      this method returns the name of the crosstable.
      Returns:
      the name of the crosstable.
    • getDomainName

      public String 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

      public void addDistance(String fromValue, String toValue, int distance)
      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

      protected List<com.aquima.interactions.test.templates.matching.Distance> 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.