Class MatchEngineTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.matching.MatchEngineTemplate
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 Summary
ConstructorsConstructorDescriptionConstructs the template with a new initialization report.MatchEngineTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report) Constructs the template with the provided initialization report. -
Method Summary
Modifier and TypeMethodDescriptionaddMatchFunction
(String name, String typeName) This method may be used to add a match function.This method may be used to add a match function.getCaseBase
(String entityName) This method returns the casebase template for the specified entity name.protected Collection
<CaseBaseTemplate> protected Collection
<MatchFunctionTemplate> com.aquima.interactions.matching.ds.IMatchEngineDS
This method converts the template to a data source that can be used to initialize the match engine.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
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
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
-
addMatchFunction
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
-
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.
-