DARPA-ASKEM / terarium

https://app.terarium.ai
Apache License 2.0
12 stars 2 forks source link

Define intervention policy #3993

Open YohannParis opened 1 week ago

YohannParis commented 1 week ago

This is a back-end task to update the Intervention Java model into an InterventionPolicy Java model class as a TerariumAsset.

It should follow a structure ressembling the following:

// For example 
InterventionPolicy {
    modelId = UUID,
    interventions = [
        {
            name = "Start masking",
            appliedTo = "beta",
            statics = [
                { 
                    threshold: "2",
                    value: "0.0"
                },
                {
                    threshold: "10",
                    value: "0.2"
                }
            ],
            dynamics = [                
                { 
                    parameter: "infected_old",
                    threshold: "300",
                    value: "0.75"
                },
                { 
                    parameter: "infected_young",
                    threshold: "2",
                    value: "0.3"
                }
            ],
        },
    ]
}