How a situation is born in the collaborative metamodel, read from the cause to the effect: an asset generates a potential, its susceptibility generates a potentiality, the potentiality creates an actuality, and a problem impacts assets.
01 · Diagram
From the asset to the actuality
02 · Links
What the metamodel allows
These are the connection rules of Collaborative_MetaModel.xml; docs/tools/validate-site.py fails when this table and the metamodel differ. Stock, Territory and Resource inherit from Asset; Person, Good and Group from Resource; Sensor from Good.
Link
From
To
2L condition
Reading
Generates
Asset
Potential
existence condition
The barbecue generates the High Temperature zone while its sensor reads 50 or more.
Generates
Problem
Problem
existence condition
A cascade: a risk generates a risk, an actuality generates an actuality.
Induces
Potential
Potentiality
—
The High Temperature zone induces the model risk “a Kid burns”, run by every resource it may reach.
Induces
Function
Potentiality
—
Running a function induces a risk of its own (exception flow of the task).
Creates
Potentiality
Actuality
triggering condition
A risk reaching a probability of 1 creates its actuality.
Is_Susceptible_To
Asset
Potential
susceptibility condition
Henri is susceptible to the High Temperature zone; generated from the induced model risk, the condition sets the probability of Henri’s risk from his distance to the barbecue.
Is_Susceptible_To
Role
Potential
susceptibility condition
Every asset that has the role (Has) gets its own Is_Susceptible_To to the potential, with the rule of the role copied on it. When the potential induces a model risk about the role, the rule is generated: the law of the danger zone of each source.
Impacts
Problem
Asset
impacts condition
The problem touches an asset.
Impacts
Problem
Role
impacts condition
The problem touches the resources holding the role, one clone per resource.
Impacts
Function
Asset
impacts condition
A function acts on an asset.
Impacts
Asset
Function
impacts condition
An asset weighs on a function.
03 · Rules of the chain
What the engine relies on
A potential induces a model potentiality. The model risk names the feared event (“A Kid burns”) and consumes the concept or role it is about with the feared state. r-io generates the rest, FREEZE: the actuality, “Prevent:” and “Treat:” objectives and, for every exposed resource, one risk per source of the danger, one actuality, and the Is_Susceptible_To edge whose condition follows the danger zone of the Generates edge (danger zone radius (m), contact distance (m)): 0 at the edge of the zone, up to 0.95 when approaching, 1 at contact or inside a polygon (by default a zone of 10 m and a contact at 1 m; a polygon source is reached when the resource is inside it). Out of the zone, a resource heading to it is already at risk, from 0.5 two minutes before it gets there to 0.9, when the extrapolation of the trajectories is on. The source resource itself gets no risk from its own zone. A node changed by hand is never generated again, and the generated chain stays when the Induces edge is deleted.
What is generated, and when. Each risk instance is named after the event, the resource and the source (“A Kid burns: Henri Martinez (Martinez barbecue)”), the actuality after the event and the resource; each has its own FREEZE Prevent: or Treat: objective, Near the model objective, which its activation activates. The generated Creates activates the actuality as soon as the resource is in the feared state, or when the risk is certain. The Treat: objective aims at the default state of the concept, or else the default state shared by the resources the risk is about. The chain is generated again when the Induces edge or the model risk changes, when a Generates edge to the potential is written, when a resource gets the role (Has), and when an asset is added or renamed.
A susceptibility only generates the risks its potential induces. When the potential has Induces edges, an Is_Susceptible_To, from an asset or from a role, only generates those potentialities. Without Induces, a susceptibility condition written by hand may generate a potentiality by naming it in its 2L code; r-io reads the rule to know which risks it can generate between this asset and this potential.
A role passes its susceptibility to its assets. When an asset gets, through Has, a role that is susceptible to a potential, r-io generates the Is_Susceptible_To from the asset to the potential and copies on it the 2L rule written between the role and the potential. When the potential induces a model risk about the role (a "From Role" row), r-io writes that rule itself, the law of the danger zone of each source, and writes it again when the zones change, unless it was changed by hand. Each asset follows the rule of its role, generated or written by hand, except when its own edge was changed by hand.
A risk and the actuality it creates are never active together. While the actuality is ACTIVE nothing reactivates the risk, which comes back with its current probability when the actuality disappears.
Comment une situation naît dans le métamodèle collaboratif, de la cause vers l’effet : un actif génère un potentiel, sa susceptibilité génère une potentialité, la potentialité crée une actualité, et un problème impacte des actifs.
01 · Schéma
De l’actif à l’actualité
02 · Liens
Ce que le métamodèle autorise
Ce sont les règles de connexion de Collaborative_MetaModel.xml ; docs/tools/validate-site.py échoue quand ce tableau et le métamodèle diffèrent. Stock, Territory et Resource héritent d’Asset ; Person, Good et Group de Resource ; Sensor de Good.
Lien
De
Vers
Condition 2L
Lecture
Generates
Asset
Potential
existence condition
Le barbecue génère la zone High Temperature tant que son capteur indique 50 ou plus.
Generates
Problem
Problem
existence condition
Une cascade : un risque génère un risque, une actualité génère une actualité.
Induces
Potential
Potentiality
—
La zone High Temperature induit le risque modèle « un enfant se brûle », couru par toute ressource qu’elle peut atteindre.
Induces
Function
Potentiality
—
Exécuter une fonction induit un risque propre (flux d’exception de la tâche).
Creates
Potentiality
Actuality
triggering condition
Un risque dont la probabilité atteint 1 crée son actualité.
Is_Susceptible_To
Asset
Potential
susceptibility condition
Henri est susceptible à la zone High Temperature ; générée depuis le risque modèle induit, la condition fixe la probabilité du risque d’Henri selon sa distance au barbecue.
Is_Susceptible_To
Role
Potential
susceptibility condition
Chaque actif qui a le rôle (Has) reçoit son propre Is_Susceptible_To vers le potentiel, avec la règle du rôle recopiée. Quand le potentiel induit un risque modèle sur le rôle, la règle est générée : la loi de la zone de danger de chaque source.
Impacts
Problem
Asset
impacts condition
Le problème touche un actif.
Impacts
Problem
Role
impacts condition
Le problème touche les ressources qui tiennent le rôle, un clone par ressource.
Impacts
Function
Asset
impacts condition
Une fonction agit sur un actif.
Impacts
Asset
Function
impacts condition
Un actif pèse sur une fonction.
03 · Règles de la chaîne
Ce sur quoi le moteur s’appuie
Un potentiel induit une potentialité modèle. Le risque modèle nomme l’événement redouté (« A Kid burns ») et consomme le concept ou le rôle visé avec l’état redouté. r-io génère le reste, en FREEZE : l’actualité, les objectifs « Prevent: » et « Treat: » et, pour chaque ressource exposée, un risque par source du danger, une actualité et l’arête Is_Susceptible_To dont la condition suit la zone de danger de l’arête Generates (danger zone radius (m), contact distance (m)) : 0 au bord de la zone, jusqu’à 0,95 en approchant, 1 au contact ou dans un polygone (par défaut une zone de 10 m et un contact à 1 m ; une source polygonale est atteinte quand la ressource est dedans). Hors de la zone, une ressource qui s’y dirige est déjà à risque, de 0,5 deux minutes avant d’y arriver à 0,9, quand l’extrapolation des trajectoires est activée. La ressource source ne reçoit aucun risque de sa propre zone. Un nœud retouché à la main n’est plus jamais régénéré, et la chaîne générée reste quand l’arête Induces est supprimée.
Ce qui est généré, et quand. Chaque instance de risque est nommée d’après l’événement, la ressource et la source (« A Kid burns: Henri Martinez (Martinez barbecue) »), l’actualité d’après l’événement et la ressource ; chacune a son propre objectif Prevent: ou Treat: en FREEZE, Near l’objectif modèle, que son activation active. Le Creates généré active l’actualité dès que la ressource est dans l’état redouté, ou quand le risque est certain. L’objectif Treat: vise l’état par défaut du concept, ou à défaut l’état par défaut commun aux ressources visées par le risque. La chaîne est régénérée quand l’arête Induces ou le risque modèle change, quand une arête Generates vers le potentiel est écrite, quand une ressource reçoit le rôle (Has), et quand un actif est ajouté ou renommé.
Une susceptibilité ne génère que les risques que son potentiel induit. Quand le potentiel a des liens Induces, un Is_Susceptible_To, d’un actif ou d’un rôle, ne génère que ces potentialités. Sans Induces, une condition de susceptibilité écrite à la main peut générer une potentialité en la nommant dans son code 2L ; r-io lit la règle pour savoir quels risques elle peut générer entre cet actif et ce potentiel.
Un rôle transmet sa susceptibilité à ses actifs. Quand un actif reçoit, par Has, un rôle susceptible à un potentiel, r-io génère le Is_Susceptible_To de l’actif vers le potentiel et y recopie la règle 2L écrite entre le rôle et le potentiel. Quand le potentiel induit un risque modèle sur le rôle (ligne « From Role »), r-io écrit lui-même cette règle, la loi de la zone de danger de chaque source, et la réécrit quand les zones changent, sauf si elle a été retouchée à la main. Chaque actif suit la règle de son rôle, générée ou écrite à la main, sauf si sa propre arête a été retouchée à la main.
Un risque et l’actualité qu’il crée ne sont jamais actifs ensemble. Tant que l’actualité est ACTIVE, rien ne réactive le risque, qui revient avec sa probabilité courante quand elle disparaît.