HP Omnicept Data Vault

What is HP Omnicept Data Vault:

Data vault is a hp provided data storage solution that allows omnicept developers to share data back with HP.

 

How to enable HP Omnicept Data Vault:

 

HP Data Vault is completely optional but if you enjoy the inference engine that comes with Omnicept, contributing to the data only further enhances the inference engine.  You can enable the data vault in your code.  See the following examples in Unity and Unreal.

 

Unity

 

// Lazy cache of GliaBehaviour 
private GliaBehaviour _gliaBehaviour = null;
private GliaBehaviour gliaBehaviour 
{
    get
    {
        if(_gliaBehaviour == null)
        {
            _gliaBehaviour = FindObjectOfType<GliaBehaviour>();
        }

        return _gliaBehaviour;
    }
}


public void StartDV()
{
    if (!gliaBehaviour)
    {
        Log("Runtime not connected yet");
        return;
    }
    Log("Starting Datavault");
//Datavault.StartRecording() will request the Omnicept runtime to begin data recording.  Messages sent to the runtime will then be automatically saved to HP's cloud
    gliaBehaviour.DatavaultStartRecording();
}


public void StopDV()
{
    if (!gliaBehaviour)
    {
        Log("Runtime not connected yet");
        return;
    }
    Log("Stopping Datavault");

//Datavault.StopRecording() will request the Omnicept runtime to stop the current recording session.  You can only stop the recording that you requested started recording before.

    gliaBehaviour.DatavaultStopRecording();
}

public void DataVaultHandler(DatavaultResult dvr)
{
    if (dvr.m_error != DatavaultResult.DatavaultResultErrorType.Success_No_Error)
    {
        Log("Datavault error: " + dvr.m_error.ToString());
    }
    else
    {
        Log("Datavault result: " + dvr.m_result.ToString() + (dvr.m_sessionId == "" ? "" : " (SessionID: " + dvr.m_sessionId + ")"));
        if (dvr.m_sessionId != "") m_latestSessID = dvr.m_sessionId;
    }
}

 

 

Unreal