OTX-Runtime for DotNet
|
|
Allows users to implement their own ExternalServiceProvider extension. More...
Public Member Functions | |
void | CreateProvider (IRuntimeContext runtimeContext, IServiceProvider serviceProvider, IConstructor constructor, List< IExternalParameter > constructorParameter) |
Invoked when a CreateProvider occurs in OTX-Runtime. More... | |
void | DisposeProvider (IServiceProvider serviceProvider) |
Invoked when a DisposeProvider occurs in OTX-Runtime. More... | |
void | ExecuteService (IRuntimeContext runtimeContext, IServiceProvider serviceProvider, IService service, List< IExternalParameter > serviceParameters, bool executeAsync) |
Invoked when an ExecuteService occurs in OTX-Runtime. More... | |
object | GetProperty (IRuntimeContext runtimeContext, IServiceProvider serviceProvider, IProperty property) |
Invoked when a GetProperty occurs in OTX-Runtime. More... | |
void | GetServiceProviderEventValues (IRuntimeContext runtimeContext, IServiceProvider serviceProvider, IEvent _event, List< IEventParameter > eventValues) |
Invoked when a GetServiceProviderEventValues occurs in OTX-Runtime. More... | |
bool | IsDisposed (IServiceProvider serviceProvider) |
Invoked when an IsDisposed occurs in OTX-Runtime. More... | |
bool | IsServiceRunning (IServiceProvider serviceProvider, IService service) |
Invoked when an IsServiceRunning occurs in OTX-Runtime. More... | |
void | SetProperty (IRuntimeContext runtimeContext, IServiceProvider serviceProvider, IProperty property, Object propertyValue) |
Invoked when a SetProperty occurs in OTX-Runtime. More... | |
bool | TerminateService (IServiceProvider serviceProvider, IService service) |
Invoked when a TerminateService occurs in OTX-Runtime. More... | |
void | UpdateExternalParameterValues (string serviceId, List< string > parameterNames, object value) |
Invoked when one ore more InOut ExternalParameters was changed in OTX-Runtime to the same value. More... | |
Allows users to implement their own ExternalServiceProvider extension.
The OTX ExternalServiceProvider extension provides actions, terms, events and data types for accessing external services. These services can be a part of a system, a device, a database or a simple library. The purpose of the ExternalServiceProvider is to extend OTX to functionality that is encapsulated in these services to help fulfill the requirements of vehicle manufacturing and diagnosis. The existing OTX signature concept gives the author a very flexible construction kit to add existing functionality into OTX test sequences without any knowledge of the complex schema structure of OTX. To extend OTX for general purpose functionality a new OTX extension will be introduced. The criteria for new extensions are:
Use cases for the ExternalServiceProvider extension :
void OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.CreateProvider | ( | IRuntimeContext | runtimeContext, |
IServiceProvider | serviceProvider, | ||
IConstructor | constructor, | ||
List< IExternalParameter > | constructorParameter | ||
) |
Invoked when a CreateProvider occurs in OTX-Runtime.
serviceProvider | ServiceProvider represents an OTX ServiceProvider. |
constructor | Constructor that shall be called. |
constructorParameters | List of arguments for the construtor. |
runtimeContext | The related runtime context. |
Implemented in OpenTestSystem.Otx.Runtime.Api.Custom.DefaultExternalServiceProviderImplementation.
void OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.DisposeProvider | ( | IServiceProvider | serviceProvider | ) |
Invoked when a DisposeProvider occurs in OTX-Runtime.
serviceProvider | ServiceProvider represents an OTX ServiceProvider. |
Implemented in OpenTestSystem.Otx.Runtime.Api.Custom.DefaultExternalServiceProviderImplementation.
void OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.ExecuteService | ( | IRuntimeContext | runtimeContext, |
IServiceProvider | serviceProvider, | ||
IService | service, | ||
List< IExternalParameter > | serviceParameters, | ||
bool | executeAsync | ||
) |
Invoked when an ExecuteService occurs in OTX-Runtime.
runtimeContext | The related runtime context. |
serviceProvider | ServiceProvider represents an OTX ServiceProvider. |
service | Service represents an OTX Service. |
serviceParameters | List of arguments. |
executeAsync | True if the service is executed asynchronously.Otherwise, false. |
Implemented in OpenTestSystem.Otx.Runtime.Api.Custom.DefaultExternalServiceProviderImplementation.
object OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.GetProperty | ( | IRuntimeContext | runtimeContext, |
IServiceProvider | serviceProvider, | ||
IProperty | property | ||
) |
Invoked when a GetProperty occurs in OTX-Runtime.
runtimeContext | The related runtime context. |
serviceProvider | ServiceProvider represents an OTX ServiceProvider. |
property | Property represents an OTX Property. |
Implemented in OpenTestSystem.Otx.Runtime.Api.Custom.DefaultExternalServiceProviderImplementation.
void OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.GetServiceProviderEventValues | ( | IRuntimeContext | runtimeContext, |
IServiceProvider | serviceProvider, | ||
IEvent | _event, | ||
List< IEventParameter > | eventValues | ||
) |
Invoked when a GetServiceProviderEventValues occurs in OTX-Runtime.
runtimeContext | The related runtime context. |
serviceProvider | ServiceProvider represents an OTX ServiceProvider. |
_event | EventSignature in the given ServiceProviderSignature for which event the values shall be returned. |
eventValues | eventValues is as a result of GetServiceProviderEventValues. |
Implemented in OpenTestSystem.Otx.Runtime.Api.Custom.DefaultExternalServiceProviderImplementation.
bool OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.IsDisposed | ( | IServiceProvider | serviceProvider | ) |
Invoked when an IsDisposed occurs in OTX-Runtime.
serviceProvider | ServiceProvider represents an OTX ServiceProvider. |
Implemented in OpenTestSystem.Otx.Runtime.Api.Custom.DefaultExternalServiceProviderImplementation.
bool OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.IsServiceRunning | ( | IServiceProvider | serviceProvider, |
IService | service | ||
) |
Invoked when an IsServiceRunning occurs in OTX-Runtime.
serviceProvider | ServiceProvider represents an OTX ServiceProvider. |
service | Service represents an OTX Service. |
Implemented in OpenTestSystem.Otx.Runtime.Api.Custom.DefaultExternalServiceProviderImplementation.
void OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.SetProperty | ( | IRuntimeContext | runtimeContext, |
IServiceProvider | serviceProvider, | ||
IProperty | property, | ||
Object | propertyValue | ||
) |
Invoked when a SetProperty occurs in OTX-Runtime.
runtimeContext | The related runtime context. |
serviceProvider | ServiceProvider represents an OTX ServiceProvider. |
property | Property represents an OTX Property. |
propertyValue | Value which is set to the property. |
bool OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.TerminateService | ( | IServiceProvider | serviceProvider, |
IService | service | ||
) |
Invoked when a TerminateService occurs in OTX-Runtime.
serviceProvider | ServiceProvider represents an OTX ServiceProvider. |
service | Service represents an OTX Service. |
Implemented in OpenTestSystem.Otx.Runtime.Api.Custom.DefaultExternalServiceProviderImplementation.
void OpenTestSystem.Otx.Runtime.Api.Custom.IExternalServiceProviderImplementation.UpdateExternalParameterValues | ( | string | serviceId, |
List< string > | parameterNames, | ||
object | value | ||
) |
Invoked when one ore more InOut ExternalParameters was changed in OTX-Runtime to the same value.
serviceId | Represents a service id. |
parameterNames | Names of the parameters which value was changed. |
value | Value to all listed parameters was changed. |
Implemented in OpenTestSystem.Otx.Runtime.Api.Custom.DefaultExternalServiceProviderImplementation.