-
Notifications
You must be signed in to change notification settings - Fork 40
Publicodes
Clemog edited this page Jun 26, 2023
·
3 revisions
The model of NGC
(nosgestesclimat
)
is build with publicodes, an interpreter on top of an
extended YAML syntax used to models complex computations.
For example this is an extract from the file ./data/transport/transport . avion.publicodes
:
transport . avion . court courrier:
formule: heures de vol * vitesse moyenne * empreinte par km
transport . avion . court courrier . vitesse moyenne:
formule: 600 / 1.3
unité: km/h
note: |
Nous utilisons la vitesse moyenne de vol pour un Paris Toulouse.
There is dedicated mécanismes
such as formule
or note
supported by default by the publicode interpreter.
However, during the implementation of the NGC's website new mécanismes were added on top of native ones:
-
mosaic
: used to specify a set of related questions needed to be answer at the same time.
To contact us: contact@nosgestesclimat.fr