-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Edits supporting the modeling quide * Edits supporting the modeling quide * Edits supporting the modeling quide * Edits supporting the modeling quide * Edits supporting the modeling quide * Edits supporting the modeling quide * Edits supporting the modeling quide * Edits supporting the modeling quide * Edits supporting the modeling quide * Edits supporting the modeling quide --------- Co-authored-by: Shawn <[email protected]>
- Loading branch information
1 parent
951f4eb
commit 1b53827
Showing
57 changed files
with
2,092 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,7 +217,6 @@ private void ensureImmutability() { | |
|
||
private Builder(Data data) { | ||
this.data = data; | ||
|
||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...gov/hhs/aspr/ms/gcm/plugins/personproperties/support/FunctionalPersonPropertyLabeler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package gov.hhs.aspr.ms.gcm.plugins.personproperties.support; | ||
|
||
import java.util.function.Function; | ||
|
||
/** | ||
* | ||
* A function-based implementor of PersonPropertyLabeler. | ||
* | ||
*/ | ||
public class FunctionalPersonPropertyLabeler extends PersonPropertyLabeler { | ||
private final Function<Object, Object> labelingFunction; | ||
|
||
public FunctionalPersonPropertyLabeler(PersonPropertyId personPropertyId, | ||
Function<Object, Object> labelingFunction) { | ||
super(personPropertyId); | ||
this.labelingFunction = labelingFunction; | ||
} | ||
|
||
@Override | ||
protected Object getLabelFromValue(Object value) { | ||
return labelingFunction.apply(value); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tutorials/lessons/lesson_03_actors/src/main/resources/output/actors_lesson_3_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* start code_ref=actors_lesson_3_output|code_cap=Output from the single actor as it initializes.*/ | ||
plugin being initialized -- we will add one actor | ||
actor being initialized | ||
my id = ActorId [id=0] | ||
time = 0.0 | ||
/* end */ |
14 changes: 14 additions & 0 deletions
14
...ssons/lesson_04_data_managers/src/main/resources/output/data_managers_lesson_4_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* start code_ref=data_managers_lesson_4_output|code_cap=Output from the example actor and example data manager showing the alpha property initialization and subsequent evolution.*/ | ||
ExampleDataManager is initialized | ||
Example Actor is initialized and will plan to set Alpha | ||
ExampleDataManager sets alpha = 8 at time = 0.0 | ||
ExampleDataManager sets alpha = 9 at time = 1.0 | ||
ExampleDataManager sets alpha = 10 at time = 2.0 | ||
ExampleDataManager sets alpha = 11 at time = 3.0 | ||
ExampleDataManager sets alpha = 12 at time = 4.0 | ||
ExampleDataManager sets alpha = 13 at time = 5.0 | ||
ExampleDataManager sets alpha = 14 at time = 6.0 | ||
ExampleDataManager sets alpha = 15 at time = 7.0 | ||
ExampleDataManager sets alpha = 16 at time = 8.0 | ||
ExampleDataManager sets alpha = 17 at time = 9.0 | ||
/* end */ |
17 changes: 17 additions & 0 deletions
17
tutorials/lessons/lesson_05_events/src/main/resources/output/events_lesson_5_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* start code_ref=events_lesson_5_output|code_cap=Output from Actors 2 and 3 as they observe changes to the alpha and beta properties.*/ | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=7, currentAlpha=8] at time = 1.0 | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=8, currentAlpha=9] at time = 2.0 | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=9, currentAlpha=10] at time = 3.0 | ||
Actor3 observes event BetaChangeEvent [previousBeta=1.2345, currentBeta=2.469] at time = 3.5 | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=10, currentAlpha=11] at time = 4.0 | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=11, currentAlpha=12] at time = 5.0 | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=12, currentAlpha=13] at time = 6.0 | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=13, currentAlpha=14] at time = 7.0 | ||
Actor3 observes event BetaChangeEvent [previousBeta=2.469, currentBeta=4.938] at time = 7.0 | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=14, currentAlpha=15] at time = 8.0 | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=15, currentAlpha=16] at time = 9.0 | ||
Actor2 observes event AlphaChangeEvent [previousAlpha=16, currentAlpha=17] at time = 10.0 | ||
Actor3 observes event BetaChangeEvent [previousBeta=4.938, currentBeta=9.876] at time = 10.5 | ||
Actor3 observes event BetaChangeEvent [previousBeta=9.876, currentBeta=19.752] at time = 14.0 | ||
Actor3 observes event BetaChangeEvent [previousBeta=19.752, currentBeta=39.504] at time = 17.5 | ||
/* end */ |
32 changes: 32 additions & 0 deletions
32
...ns/lesson_06_plugin_dependencies/src/main/resources/output/plugin_dependencies_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* start code_ref=plugin_dependencies_output|code_cap=The output shows the combined reporting from actors and data managers as they report vaccination progress.*/ | ||
Person 7 was vaccinated at time = 1.0 | ||
Person 2 was vaccinated at time = 2.0 | ||
Person 5 was vaccinated at time = 3.0 | ||
Vaccination Data Manager is removing person 2 at time = 3.0 | ||
Family Data Manager is removing person 2 at time = 3.0 | ||
Person 6 was vaccinated at time = 4.0 | ||
Vaccination Data Manager is removing person 1 at time = 4.0 | ||
Family Data Manager is removing person 1 at time = 4.0 | ||
Person 3 was vaccinated at time = 5.0 | ||
Vaccination Data Manager is removing person 8 at time = 5.0 | ||
Family Data Manager is removing person 8 at time = 5.0 | ||
Failed to vaccinate Person 1 at time = 6.0 | ||
Vaccination Data Manager is removing person 6 at time = 6.0 | ||
Family Data Manager is removing person 6 at time = 6.0 | ||
Person 0 was vaccinated at time = 7.0 | ||
Vaccination Data Manager is removing person 7 at time = 7.0 | ||
Family Data Manager is removing person 7 at time = 7.0 | ||
Person 9 was vaccinated at time = 8.0 | ||
Vaccination Data Manager is removing person 5 at time = 8.0 | ||
Family Data Manager is removing person 5 at time = 8.0 | ||
Failed to vaccinate Person 8 at time = 9.0 | ||
Vaccination Data Manager is removing person 3 at time = 9.0 | ||
Family Data Manager is removing person 3 at time = 9.0 | ||
Person 4 was vaccinated at time = 10.0 | ||
Vaccination Data Manager is removing person 4 at time = 10.0 | ||
Family Data Manager is removing person 4 at time = 10.0 | ||
Vaccination Data Manager is removing person 0 at time = 11.0 | ||
Family Data Manager is removing person 0 at time = 11.0 | ||
Vaccination Data Manager is removing person 9 at time = 12.0 | ||
Family Data Manager is removing person 9 at time = 12.0 | ||
/* end */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ons/lesson_09_experiments/src/main/resources/output/experiements_example_9_D_output_1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* start code_ref=experiements_example_9_D_output_1|code_cap=The first two scenarios.*/ | ||
Model Actor initializing | ||
r0 = 1.5 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.05 | ||
distribute vaccine locally = false | ||
|
||
Model Actor initializing | ||
r0 = 2.0 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.05 | ||
distribute vaccine locally = false | ||
|
||
/* end */ |
16 changes: 16 additions & 0 deletions
16
...ons/lesson_09_experiments/src/main/resources/output/experiements_example_9_D_output_2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* start code_ref=experiements_example_9_D_output_2|code_cap=The last two scenarios.*/ | ||
Model Actor initializing | ||
r0 = 2.0 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.1 | ||
distribute vaccine locally = true | ||
|
||
Model Actor initializing | ||
r0 = 2.5 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.1 | ||
distribute vaccine locally = true | ||
|
||
/* end */ |
21 changes: 21 additions & 0 deletions
21
...ssons/lesson_09_experiments/src/main/resources/output/experiements_example_9_E_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* start code_ref=experiements_example_9_E_output|code_cap=The output from the four threads running the twelve scenarios is a bit jumbled and hard to follow. This will get resolved later with improved output handling.*/ | ||
Model Actor initializing | ||
Model Actor initializing | ||
r0 = 1.5 | ||
Model Actor initializing | ||
Model Actor initializing | ||
r0 = 1.5 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
r0 = 2.5 | ||
school closing infection rate = 0.05 | ||
asymptomatic days = 4.0 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
r0 = 2.0 | ||
school closing infection rate = 0.1 | ||
distribute vaccine locally = false | ||
|
||
... | ||
|
||
/* end */ |
13 changes: 13 additions & 0 deletions
13
...essons/lesson_09_experiments/src/main/resources/output/experiments_example_9_A_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* start code_ref=experiments_example_9_A_output|code_cap=The output of the experiment version is the same as the simulation since the experiment contains exactly one scenario.*/ | ||
Model Actor initializing | ||
r0 = 1.5 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.05 | ||
distribute vaccine locally = true | ||
|
||
1 of 1 scenario, 100% complete. Expected experiment completion in 0:00:00 | ||
Experiment completion of 1 scenario in 0:00:00: | ||
SUCCEDED : 1 | ||
end of experiment status console | ||
/* end */ |
44 changes: 44 additions & 0 deletions
44
tutorials/lessons/lesson_09_experiments/src/main/resources/output/experiments_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* start code_ref=experiments_output|code_cap=The model actor writes output for each of the five scenarios corresponding to the five values of the R0 dimension.*/ | ||
Model Actor initializing | ||
r0 = 0.5 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.05 | ||
distribute vaccine locally = true | ||
|
||
Model Actor initializing | ||
r0 = 0.75 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.05 | ||
distribute vaccine locally = true | ||
|
||
Model Actor initializing | ||
r0 = 1.0 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.05 | ||
distribute vaccine locally = true | ||
|
||
Model Actor initializing | ||
r0 = 1.5 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.05 | ||
distribute vaccine locally = true | ||
|
||
Model Actor initializing | ||
r0 = 2.0 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.05 | ||
distribute vaccine locally = true | ||
|
||
Model Actor initializing | ||
r0 = 2.5 | ||
asymptomatic days = 4.0 | ||
symptomatic days = 12.0 | ||
school closing infection rate = 0.05 | ||
distribute vaccine locally = true | ||
|
||
/* end */ |
1 change: 1 addition & 0 deletions
1
...ials/lessons/lesson_10_output/src/main/java/gov/hhs/aspr/ms/gcm/lessons/Example_10_B.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
package gov.hhs.aspr.ms.gcm.lessons; | ||
|
||
import java.util.ArrayList; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tutorials/lessons/lesson_10_output/src/main/resources/output/output_consumer_B_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* start code_ref=output_consumer_B_output|code_cap=The output is still a bit scrambled, but each row now has the relevant scenario id.*/ | ||
scenario 1: Model Actor initializing | ||
scenario 2: Model Actor initializing | ||
scenario 3: Model Actor initializing | ||
scenario 0: Model Actor initializing | ||
scenario 3: r0 = 1.5 | ||
scenario 0: r0 = 1.5 | ||
scenario 2: r0 = 2.5 | ||
scenario 2: asymptomatic days = 4.0 | ||
scenario 1: r0 = 2.0 | ||
scenario 2: symptomatic days = 12.0 | ||
scenario 1: asymptomatic days = 4.0 | ||
scenario 0: asymptomatic days = 4.0 | ||
scenario 2: school closing infection rate = 0.05 | ||
scenario 3: asymptomatic days = 4.0 | ||
scenario 2: distribute vaccine locally = false | ||
scenario 0: symptomatic days = 12.0 | ||
scenario 1: symptomatic days = 12.0 | ||
scenario 0: school closing infection rate = 0.05 | ||
scenario 1: school closing infection rate = 0.05 | ||
scenario 3: symptomatic days = 12.0 | ||
scenario 3: school closing infection rate = 0.1 | ||
scenario 1: distribute vaccine locally = false | ||
scenario 0: distribute vaccine locally = false | ||
scenario 3: distribute vaccine locally = false | ||
scenario 5: Model Actor initializing | ||
scenario 4: Model Actor initializing | ||
scenario 5: r0 = 2.5 | ||
scenario 4: r0 = 2.0 | ||
|
||
... | ||
|
||
/* end */ |
20 changes: 20 additions & 0 deletions
20
tutorials/lessons/lesson_10_output/src/main/resources/output/output_consumer_C_output_1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* start code_ref=output_consumer_C_output_1|code_cap=The first output lines for OutputConsumer_C.*/ | ||
|
||
the experiment is open | ||
scenario 0 is open | ||
scenario 1 is open | ||
scenario 2 is open | ||
scenario 3 is open | ||
scenario 0: Model Actor initializing | ||
scenario 2: Model Actor initializing | ||
scenario 1: Model Actor initializing | ||
scenario 2: r0 = 2.5 | ||
scenario 3: Model Actor initializing | ||
scenario 2: asymptomatic days = 4.0 | ||
scenario 1: r0 = 2.0 | ||
scenario 0: r0 = 1.5 | ||
scenario 2: symptomatic days = 12.0 | ||
|
||
... | ||
|
||
/* end */ |
Oops, something went wrong.