Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TQLEngine platform provide mechanisms to easily address above device management requirements.

Bulk Initialization Design

...

Pattern

At the time of writing this tutorial Atomiton TQLEngine does not provide specific language constructs to perform bulk initialization of Things or Data. But the existing Atomic domain languages capabilities can be exploited to achieve bulk initialization requirements. The bulk initialization design patterns pattern can be classified as followsbroken down into two steps:

Pattern Step #NameDescriptionUse CasesOutputImplementation Flow
1@ThingFacet LevelSeamless integration within the attribute's associate action
  • Simple Sensors and Actuators
JavaScript to capture simulation logicGather Metadata

Input to gathering of metadata step can be:

  • Manual entires
  • Code that generates metadata
  • Reading metadata from external device management source

The output of gathering metadata step could be:

  • Generated CSV, JSON Files
  • Generated Create / Save TQL Query statement
  • Emulate automatic trigger for sensors
2@ThingFacet LevelSeparate Action to start the simulationInitialize

Initialize step is where we load the data into TQLEngine.

Metadata gathered from step-1 serves as input to initialize.

This steps has to be repeatable.

  • Simple Sensors and Actuators
  • JavaScript to capture simulation logic
  • Schedule frequency of simulation

Bulk Initialization Steps: 

Image Added

Simulating Temperature Sensor

...