|
If you want to use additional helper methods apart from the methods defined in the IAnalysisService application interface, you can use the helper methods in the AnalysisServiceHelper class.
|
Method
|
Description
|
---|---|
GetServiceInfo
|
This method returns information about the application.
|
DeployModel
|
This method allows upload of models. The files are uploaded as a multi-part message.
|
GetInputData
|
This method returns only the data structure of the inputs that the model requires.
|
GetResultData
|
This method returns the data structure of the results that the model generates.
|
PostJob
|
This method submits a job for processing. This also indicates whether the job should be executed synchronously or asynchronously.
|
StartJob
|
This method is used to start a job. It initializes data structures and threads to handle continuous jobs.
|
StopJob
|
This method is used to stop a job. It also performs cleanup.
|
UpdateJob
|
This method is used to send updated inputs in the form of a JSON for a simulation job.
|
GetJobResultFile
|
This method returns requested result file for the given job ID.
|
addObserver
|
This method is used to maintain a list of observers. To send updates to the server, the service invokes the ReturnUpdate() method and passes in the updated job object.
|
DeleteModel
|
This method deletes the specified model.
|
getClientId
|
This method is used to access the ThingWorx server by using the same credentials that the agent uses to access the ThingWorx server.
|
|
Input and output data is exchanged between the service and the SDK in JSON format strings. The input is always a JSON array serialized as a string and the output should be a JSON array. Sometimes, the JSON array might contain a single object.
|
|
Java-based implementations can override the finalize() method to perform cleanup.
|