Initialization
Contents:
Introduction
Synopsis
Initialization: Changes to the systems state prior to any simulation.
In oder to specify the state of the system (nodes \(N\) and/or edges \(E\) attributes) EpiHiper uses user defined initialization. An initialization is a user defined Action Ensemble applied to a target Sets (nodes \(N\) and/or edges \(E\)) of the Contact Network. Note, it is possible that the target set may be empty. In that case only action specified under once in the Action Ensemble are applied.
Definition
Synopsis
Definition: Syntax for the definition of initialization
intervention: target actionEnsemble [annotation]
target: setContent [annotation]
Name
|
Type
|
Description
|
|---|---|---|
target
|
object
|
|
actionEnsemble
|
object
|
The Action Ensemble applied to the target set .
|
ann:*
|
Optional annotation of the initialization
|
Examples
The nodes with ids 3 & 5 are put in the health state \(I\), which is infectious, prior to the simulation.
"sets": [
{
"id": "infections",
"scope": "local",
"content": {
"elementType": "node",
"scope": "local",
"left": {
"node": {
"property": "id"
}
},
"operator": "in",
"right": {
"valueList": {
"id": [
3, 5
]
}
}
}
}
],
"initializations": [
{
"ann:id": "initial_infections",
"target": {
"set": {
"idRef": "infections"
}
},
"foreach": [
{
"operations": [
{
"target": {
"node": {
"property": "healthState"
}
},
"operator": "=",
"value": {
"healthState": "I"
}
}
]
}
]
}
]