The EngineNotify interface must be implemented by every application. This object provides the callbacks for common functionality.
See Also: Engine
public abstract DataStore getDataStore()
Gets the application's DataStore object. The engine uses this object to store its models. An application must implement this function, but it can use the MemoryDataStore object as its implementation.
Exception:
See Also: MemoryDataStore
public abstract boolean requestDisposal(Engine Engine, Model Models[])
Requests that a set of models be disposed. An engine may call this if it is running out of memory, or is approaching a limit on the number of models that it can have instantiated at a given time. The models specified are hints. The application can choose to dispose those models, any other models, or to not dispose any models at all. Returns true if one or more models were disposed
Parameters:
Exception:
See Also: dispose
public abstract boolean requestDisposal(Engine Engine, Utterance Utterances[])
Requests that a set of utterances be disposed. An engine may call this if it is running out of memory, or is approaching a limit on the number of utterances that it can have at a given time. The utterances specified are hints. The application can choose to dispose those utterances, any other utterances, or to not dispose any utterances at all. This function returns true if one or more utterances were disposed.
Parameters:
Exception:
See Also: dispose
public abstract void asynchronousException(Engine Engine, Throwable Error)
Signals that an exception occured while performing an asynchronous function.
Parameters:
Exception:
See Also: enableAsynchronousVerification, enableAsynchronousIdentification, enableAsynchronousClassification