public interface DataServiceDef
Modifier and Type | Method and Description |
---|---|
void |
dataXmlBM(java.lang.String adminKey)
This is used to send the current data and result to a behaviour mediator if one is running.
|
void |
dataXmlDH(java.lang.String adminKey)
This is used to send the current data result to a data hub if one is running.
|
java.lang.String |
getDataType()
Get the data type.
|
void |
resetValues()
Reset variables for another test run.
|
boolean |
setData(org.licas_xml.abs.Element dataXml,
java.lang.String adminKey)
Set the value that this service will use as its data source.
|
boolean |
setData(java.lang.String thisDataType,
java.lang.Object thisDataObj,
java.lang.String adminKey)
Set the value that this service will use as its data source.
|
void resetValues()
java.lang.String getDataType()
boolean setData(java.lang.String thisDataType, java.lang.Object thisDataObj, java.lang.String adminKey) throws java.lang.Exception
ObjResource
in the DataModule
and stores the value
directly.thisDataType
- the data type.thisDataObj
- the data object.adminKey
- the admin key for the service.java.lang.Exception
- any error.boolean setData(org.licas_xml.abs.Element dataXml, java.lang.String adminKey) throws java.lang.Exception
Resource
in the DataModule
.dataXml
- the data description to parse.adminKey
- the admin key for the service.java.lang.Exception
- any error.void dataXmlBM(java.lang.String adminKey) throws PasswordException, MethodNotFoundException, java.lang.Exception
Data
entry.
This version sends the data information to a service identified by
ServiceConst
.BEHAVIOURMEDIATOR
. It includes the data element
of this service, any links that it has formed and also the result of the
evaluation process.
adminKey
- as it would typically be called internally, it is protected by
the service's admin key.PasswordException
- incorrect password for the server or mediator service.MethodNotFoundException
- the mediator does not have the calling method.java.lang.Exception
- any other error.void dataXmlDH(java.lang.String adminKey) throws PasswordException, MethodNotFoundException, java.lang.Exception
This version sends the data information to a service identified by
ServiceConst
.DATAHUB
. It includes the data element
of this service, any links that it has formed and also the result of the
evaluation process.
adminKey
- as it would typically be called internally, it is protected by
the service's admin key.PasswordException
- incorrect password for the server or mediator service.MethodNotFoundException
- the mediator does not have the calling method.java.lang.Exception
- any other error.