Skip to content
Snippets Groups Projects
Commit 2ed4349f authored by Olivier Maury's avatar Olivier Maury
Browse files

Ajouter un diagramme de séquence

parent 1a8a6cc2
No related branches found
No related tags found
No related merge requests found
@startuml
hide footbox
actor "Météo-France" as mf
actor AgroClim as agroclim
database "SAFRAN database" as safrandb
queue "agrometinfo-new-safran-data\nqueue" as queuesafran
participant "SEASON-Handler" as handler
queue "simulation-done\ntopic" as topicsimulationdone
database "SEASON database" as seasondb
queue "treatment queue" as queuetreatment
participant "SEASON-cli" as seasoncli
== Initialization ==
handler -> queuesafran : subscribe
handler -> topicsimulationdone : subscribe
seasoncli -> queuetreatment : subscribe
== Process SAFRAN ==
mf -> agroclim : send SAFRAN data
agroclim -> safrandb : integrate SAFRAN data
agroclim -> queuesafran : publish date of last integrated data
== Process in SEASON ==
queuesafran -> handler : notify integretion is done
activate handler
handler <- seasondb : get metadata from SEASON database
handler <-> safrandb : retrieve SAFRAN data
handler -> seasondb : set SEASON simulation
handler -> queuetreatment : publish treatments
destroy handler
queuetreatment -> seasoncli : notify treatments to do
activate seasoncli
seasoncli -> safrandb : retrieve SAFRAN data
seasoncli <-> seasondb : read/write from SEASON database
seasoncli -> topicsimulationdone : publish end of calculation
destroy seasoncli
== Process results ==
topicsimulationdone -> handler : notify end of calculation
handler -> seasondb : TODO: handle results from SEASON database
@enduml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment