Package com.vivoka.vsdk.biometrics
Class Engine
java.lang.Object
com.vivoka.vsdk.biometrics.Engine
- All Implemented Interfaces:
IEngine
Abstract class representing the biometric engine.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String, Authenticator> protected final Map<String, Identificator> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuthenticator(String name, Model model, IRecognizerListener listener) Gets or creates an authenticator with the specified name and listener.getIdentificator(String name, Model model, IRecognizerListener listener) Gets or creates a identificator with the specified name and listener.Gets or creates a model with the specified name and listener.protected abstract AuthenticatormakeAuthenticator(String name, Model model, IRecognizerListener listener) protected abstract IdentificatormakeIdentificator(String name, Model model, IRecognizerListener listener) protected abstract ModelvoidremoveAuthenticator(String name) Removes the authenticator with the specified name by releasing the authenticator resources.voidremoveIdentificator(String name) Removes the identificator with the specified name by releasing the identificator resources.voidremoveModel(String name) Removes the model with the specified name by releasing the model resources.
-
Field Details
-
_identificators
-
_authenticators
-
_models
-
-
Constructor Details
-
Engine
public Engine()
-
-
Method Details
-
getAuthenticator
public Authenticator getAuthenticator(String name, Model model, IRecognizerListener listener) throws Exception Gets or creates an authenticator with the specified name and listener.- Parameters:
name- The name of the recognizer.model- The model to use for authenticationlistener- The listener to handle events. If the authenticator already exists, the listener will be overridden by the new one.- Returns:
- The authenticator instance.
- Throws:
Exception- If the authenticator cannot be created or found.
-
removeAuthenticator
Removes the authenticator with the specified name by releasing the authenticator resources.- Parameters:
name- The name of the authenticator to remove.- Throws:
Exception- If the authenticator cannot be removed.
-
getIdentificator
public Identificator getIdentificator(String name, Model model, IRecognizerListener listener) throws Exception Gets or creates a identificator with the specified name and listener.- Parameters:
name- The name of the identificator.model- The model to use for identificatorlistener- The listener to handle identificator events. If the identificator already exists, the listener will be overridden by the new one.- Returns:
- The identificator instance.
- Throws:
Exception- If the identificator cannot be created or found.
-
removeIdentificator
Removes the identificator with the specified name by releasing the identificator resources.- Parameters:
name- The name of the identificator to remove.- Throws:
Exception- If the identificator cannot be removed.
-
getModel
Gets or creates a model with the specified name and listener.- Parameters:
name- The name of the model.type- The type of the model TEXT_DEPENDANT or TEXT_INDEPENDANT.- Returns:
- The model instance.
- Throws:
Exception- If the model cannot be created or found.
-
removeModel
Removes the model with the specified name by releasing the model resources.- Parameters:
name- The name of the model to remove.- Throws:
Exception- If the model cannot be removed.
-
makeAuthenticator
protected abstract Authenticator makeAuthenticator(String name, Model model, IRecognizerListener listener) throws Exception - Throws:
Exception
-
makeIdentificator
protected abstract Identificator makeIdentificator(String name, Model model, IRecognizerListener listener) throws Exception - Throws:
Exception
-
makeModel
- Throws:
Exception
-