Coding Style
Macro calls
- The ThingFacet layer interacts with external things (sensors, actuators, devices) via events and messages. it captures the partial or complete behavior of the device.
- The model layer represents the current persisted states of any entity. There are ThingModels (e.g. a truck, an irrigation motor), AppModels and DataModels. Thing Models represent actual physical active objects. Data Models are used to represent logical concepts (invoice, purchase order, etc.) and passive things like (parking lot, lamp post, etc.). App Models are used to encapsulate domain logic, which may include computations and integrations with other software services.
- The client layer (i.e. apps or external systems) use TQL queries to interact with both things and data via the models, and use TQL subscriptions to receive messages on change of model states.