Cocop.MessageSerialiser.Meas (Java)  2.0.0
API to encode industrial data as standard-based messages
Cocop.MessageSerialiser.Meas (Java) v.2.0.0

COCOP and EU

COCOP - Coordinating Optimisation of Complex Industrial Processes
https://cocop-spire.eu/

This project has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 723661. This piece of software reflects only the authors' views, and the Commission is not responsible for any use that may be made of the information contained therein.


Author

Petri Kannisto, Tampere University, Finland
https://github.com/kannisto
http://kannisto.org

Please make sure to read and understand LICENSE.txt!

COCOP Toolkit

This application is a part of COCOP Toolkit, which was developed to enable a decoupled and well-scalable architecture in industrial systems. Please see https://kannisto.github.io/Cocop-Toolkit/

Introduction

This library provides a generic API to serialise and deserialise (or to encode and decode) messages that contain measurement values and other data from industrial systems. Please familiarise yourself with this page: https://kannisto.github.io/Cocop-Toolkit/messageserialiser.html

All message structures are based on existing open standards. In this API, the standards have been created by and are copyrighted to the Open Geospatial Consortium, Inc. (OGC(r); https://www.ogc.org/). However, OGC is not the creator of this software, and this software has not been certified for compliance with any OGC standard.

Because the utilised standards are complex and versatile, the API selectively implements what is considered most important in industrial systems. To guarantee interoperability, the API implements a profile that covers a subset of the standards. In addition, there are extensions not included in the standards, but these are few.

The implemented features cover, for instance:

Please note that this implementation excludes the following features of the Cocop.MessageSerialiser.Meas specification:

This software has been implemented with Java. However, there is another implementation in C#/.NET (see https://github.com/kannisto/Cocop.MessageSerialiser.Meas_csharp). Still, because the serialisation syntax is XML, the messages do not restrict which platform to choose for implementation, as long as the messages comply with the standards-based profile. That is, you could have one application in .NET, another in Java and third in NodeJs, for instance, and these would be completely interoperable.

This repository contains the following applications:

Source Code and API Doc

Messages

The following classes of this API can generate XML documents:

That is, all other objects must be located in any of the above to be included in a message. Examples:

Examples

Due to lack of time, this API does not ship with code examples. However, the C#/.NET API has an almost similar structure. Its examples can help: https://kannisto.github.io/Cocop.MessageSerialiser.Meas_csharp

In addition, the enclosed test projects provide hint how to use the API.

Work of Third Parties

This software distribution does not include any third-party modules, that is, any of the utilised standards, the related XML schemata or any proxy software generated from these schemata. The reason is that the authors are not lawyers but software developers and the intention is to ensure that any copyright or licensing issues are avoided. Even if it were possible to distribute the OGC standards, these standards have dependencies to modules not copyrighted to the OGC, which adds difficulty to licensing. However, because this software library is largely based on the works of OGC, the OGC license conditions apply.

Still, because the third-party modules are necessary for this library to work, there are instructions to retrieve them. You must download the required XML schema files, generate the proxies and modify these as instructed. For more information, please see the folder '_codegen_xsd_exe'.

Furthermore, all third-party software libraries are excluded.

Environment and Libraries

The development environment was Eclipse Photon Release (4.8.0), Build id: 20180619-1200. The runtime was JDK8.

The following libraries are needed: