Coder Social home page Coder Social logo

openiiot / openiiot.core Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 20.0 9.91 MB

A cross-platform application platform for the Industrial Internet of Things.

Home Page: http://openiiot.org

License: GNU Affero General Public License v3.0

C# 99.61% HTML 0.28% CSS 0.11%
agriculture construction cross-platform energy iiot industrial industrial-automation industry industry-4 iot logistics manufacturing mining platform transportation warehousing

openiiot.core's People

Contributors

jpdillingham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openiiot.core's Issues

Determine whether named Configuration instances are needed

Presently the Configuration model is as follows:

Dictionary<Type, List<object>>

The dictionary is keyed by asset type (something that implements IConfigurable<T>) and the value is a list of objects whose Type corresponds to the generic Type parameter of the IConfigurable interface.

Initially the intent was to allow binaries of a configurable type to be loaded and for the Plugin manager to create multiple instances of those Types, each with it's own configuration model.

In practice any use case requiring multiple instances can be covered within a single instance of the configurable type. The only benefit to having the Plugin manager manage this is that any threading would then be handled by the core instead of the plugin having to do it.

Configuration via reflection vs registration

Consider whether to use reflection to determine whether Types are configurable instead of using explicit registration. This would eliminate ConfigurableTypeRegistry and registration code in the ConfigurationManager and downstream types

Design and Implement Configuration Migration

Presently the ConfigurationManager stores strongly typed configuration models in the configuration file. Should a downstream asset update its model, the ConfigurationManager needs a way to migrate the previous configuration to the new model.

Initial thoughts are to implement a ConfigurationMigration/IConfigurationMigration to be used with the Discoverer. Implementations could have [ToVersion] and [FromVersion] attributes, allowing the ConfigurationManager to determine which migration to apply.

Migrations should be additive in that an upgrade from 1.0 to 3.0 should apply migrations for 1.0 -> 2.0, then from 2.0 -> 3.0. A migration setup for this scenario might look like the following:

[FromVersion(1.0.0.0)]
[ToVersion(2.0.0.0)]
public Migration1to2 : IConfigurationMigration { }

[FromVersion(2.0.0.0)]
[ToVersion(3.0.0.0)]
public Migration2to3 : IConfigurationMigration { }

The ConfigurationManager would need to collect all migrations and examine the versioning attributes to ensure an upgrade path is available. After migration is complete the deprecated configuration would be removed from the config (and probably backed up somewhere).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.