Class MatchEngineTemplate

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

public class MatchEngineTemplate extends AbstractReportingTemplate
Template class that may be used to quickly construct a match engine for test cases.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Constructor Details

    • MatchEngineTemplate

      public MatchEngineTemplate()
      Constructs the template with a new initialization report.
    • MatchEngineTemplate

      public MatchEngineTemplate(com.aquima.interactions.foundation.report.IInitializationReport report)
      Constructs the template with the provided initialization report.
      Parameters:
      report - The initialization report that should be used to add error snd warnings to.
  • Method Details

    • getCaseBase

      public CaseBaseTemplate getCaseBase(String entityName)
      This method returns the casebase template for the specified entity name. If no casebase was present, a new casebase template is created and added to this template.
      Parameters:
      entityName - The name of the entity for which the casebase template is requested.
      Returns:
      Casebase template for the requested entity name.
    • getCaseBases

      protected Collection<CaseBaseTemplate> getCaseBases()
    • addMatchFunction

      public MatchFunctionTemplate addMatchFunction(String name, String typeName)
      This method may be used to add a match function.
      Parameters:
      name - The name of the match function.
      typeName - The type of the match function.
      Returns:
      Template class for the added match function.
    • addMatchFunction

      public MatchFunctionTemplate addMatchFunction(String name, String typeName, Map<String,Object> parameters)
      This method may be used to add a match function.
      Parameters:
      name - The name of the match function.
      typeName - The type of the match function.
      parameters - Parameters for the match function.
      Returns:
      Template class for the added match function.
    • getMatchFunctions

      protected Collection<MatchFunctionTemplate> getMatchFunctions()
    • toDataSource

      public com.aquima.interactions.matching.ds.IMatchEngineDS toDataSource()
      This method converts the template to a data source that can be used to initialize the match engine.
      Returns:
      a data source that can be used to initialize the match engine.