public interface ClassificationService
Modifier and Type | Field and Description |
---|---|
static int |
ZERO_PROBABILITY |
Modifier and Type | Method and Description |
---|---|
EvaluationResult |
build(String classifierAssignmentName,
ProcessDefinition process)
Builds the classifier of specified classifier assignment of the passed process.
|
<T> List<ClassificationResult<T>> |
classifications(String classifierAssignmentName,
ActivityInstance activityInstance)
Classifies the given activity instance using the classifier of the specified classifier assignment
|
<T> ClassificationResult<T> |
classify(String classifierAssignmentName,
ActivityInstance activityInstance)
Classifies the given activity instance using the classifier of the specified classifier assignment
|
EvaluationResult |
evaluate(String classifierAssignmentName,
ProcessDefinition process)
Evaluates the classifier of specified classifier assignment of the passed process.
|
boolean |
executeClassification(String classifierAssignmentName,
ActivityInstance activityInstance,
double minimumProbability)
Executes a classification for the given activity instance using the classifier of the specified classifier assignment
defined for the process definition of the passed activity instance, i.e. the classification is performed and the result is stored
in the field defined as output field in that classifier assignment.
|
boolean |
executeClassifications(ActivityInstance activityInstance,
double minimumProbability)
Executes classifications for the given activity instance using all classifier assignment defined for the process definition
of the passed activity instance, i.e. the classifications are performed and their results are stored in the fields defined
as output fields in the various classifier assignments.
|
static ClassificationService |
getService()
Returns an instance of
ClassificationService . |
void |
registerClassifier(Class<? extends Classifier> classifierClass)
Registers a new
Classifier implementation with the given name. |
void |
registerField(Class<? extends ProcessField> fieldClass)
Registers a new
ProcessField implementation. |
void |
unregisterField(Class<? extends ProcessField> fieldClass)
Registers a new
ProcessField implementation. |
static final int ZERO_PROBABILITY
static ClassificationService getService()
ClassificationService
.void registerClassifier(Class<? extends Classifier> classifierClass)
Classifier
implementation with the given name.classifierClass
- the implementation class of the registered classifiervoid registerField(Class<? extends ProcessField> fieldClass)
ProcessField
implementation.fieldClass
- the implementation class of the registered fieldvoid unregisterField(Class<? extends ProcessField> fieldClass)
ProcessField
implementation.fieldClass
- the implementation class of the registered fieldEvaluationResult build(String classifierAssignmentName, ProcessDefinition process)
classifierAssignmentName
- the name of the classifier assignment which classifier shall be buildprocess
- the process definition of the classifier assignmentEvaluationResult evaluate(String classifierAssignmentName, ProcessDefinition process)
classifierAssignmentName
- the name of the classifier assignment which classifier shall be evaluatedprocess
- the process definition of the classifier assignment<T> ClassificationResult<T> classify(String classifierAssignmentName, ActivityInstance activityInstance)
classifierAssignmentName
- the name of the classifier assignment which classifier shall be taken for the classificationactivityInstance
- the activity instance which shall be classified<T> List<ClassificationResult<T>> classifications(String classifierAssignmentName, ActivityInstance activityInstance)
classifierAssignmentName
- the name of the classifier assignment which classifier shall be taken for the classificationactivityInstance
- the activity instance which shall be classifiedboolean executeClassification(String classifierAssignmentName, ActivityInstance activityInstance, double minimumProbability)
ZERO_PROBABILITY
is passed
storage will be performed in any case.classifierAssignmentName
- the name of the classifier assignment which classifier shall be taken for the classificationactivityInstance
- the activity instance which shall be classifiedminimumProbability
- the minimum classification probability that must be met to trigger automatic storageboolean executeClassifications(ActivityInstance activityInstance, double minimumProbability)
ZERO_PROBABILITY
is passed storage will be performed in any case.activityInstance
- the activity instance which shall be classifiedminimumProbability
- the minimum classification probability that must be met to trigger automatic storage@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.