Producer
role of OOI Reactive Application
. SimulatorInteroperabilityTest
is a sample of the Producer
part of the ReferenceApplication
, which is an example of Semantic-Data
reactive networking based on OPC UA Part 14 Pub/Sub specification. The Producer
role serves as a data generator to be used for testing purpose aimed at supporting the interoperability tests planned by the OPC Foundation. In the production environment, you may replace this library by a custom one supporting more realistic process data acquisition scenario.Producer
role in the application:DataManagementSetup
: this class has been inherited by the SimulatorDataManagementSetup
class. It initializes the communication and binds the fields used to populate the messages and local resources.IEncodingFactory
and IMessageHandlerFactory
: both has been implemented in the external common libraries and Producer
doesn't depend on the implementation - the instance of this interfaces are localized as services using the IServiceLocator
interface implementation.IBindingFactory
: has been implemented in the class DataGenerator
responsible to synchronize the values of the local data repository properties and messages sent over the wire.IConfigurationFactory
: the class ProducerConfigurationFactory
implements this interface to be used for configuration opening.DataManagementSetup
SimulatorDataManagementSetup
constructor initializes all properties, which are injection points of all parts composing this role.ServiceLocator
is implemented to resolve references to any external services.DataManagementSetup.Start()
method is called to initialize the infrastructure, enable all associations and start pumping the data.Producer
functionality. An instance of the IBindingFactory
is responsible to create objects implementing IBinding
that can be used to read or generate (simulator case) from the local data repository.Producer
role responsible for:DataGenerator
captures implementation of a generator of testing data aimed at accomplishing interoperability tests defined by the OPC Foundation for PubSub applications. The example contains properties implemented as an instance of class ProducerBindingMonitoredValue
. Modification of the ProducerBindingMonitoredValue<type>.MonitoredValue
provides notification to the message handling state machine that a new value is available.IConfigurationFactory
UAOOI.Configuration.Networking
. In a typical scenario, this implementation should not be considered for further modification. The only open question is how to provide a path to the file containing the configuration of this role. In proposed solution the file path is provided by a service defined by the application entry point and localized using IServiceLocator
in the class SimulatorDataManagementSetup
:ConfigurationDataProducer.xml
attached to the project.Producer
sends out the following Datasets
:...
Notes:
This library is not considered to be published as the NuGet package. Current configuration may not support all test cases described above.