| Summary: | Trigger not initiating Inoculator Modifier | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Technology] STEM | Reporter: | Traci Arthur-Hartranft <traci.arthur-hartranft> | ||||||
| Component: | Simulation | Assignee: | Project Inbox <stem.simulation-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Stefan Edlund <sedlund> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | sedlund, traci.arthur-hartranft | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 1.1.2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Traci Arthur-Hartranft
Assigning to me. I will try and reproduce. Also, it helps if you attach the problem scenario to this bug. Created attachment 180599 [details]
the scenario with an Inoculator that should be triggered after 2 days is included
Not certain the export worked correctly but hopefully this will help. I tried out inoculating with 5% from the very beginning without a trigger/modifier and that worked.
This is fixed, decorateGraph() is now always called on the decorator after an attribute has been modified. For infectors/inoculators, this will reinfect/inoculate population members. So if you set the inoculation percentage to say 5 %, there will be a daily inoculation rate of 5 % applied whenever the predicate is true. For disease models, we don't want to call decorateGraph() again since this will cause new disease model labels to be created. However, I now check if there's already labels created in the disease model code and just return if that's the case. Attached an example scenario where 100 % of the population is inoculated after 15 days in one region. Created attachment 180713 [details]
A test project inoculating 100 % of the population after 15 days
Complete |