Damage Functions Storage and Selection Mechanism #85
-
|
Going from raw damage function data to usage during simulation, current implementation utilizes two sets of structs: Another representation is f(DamageFunctionFamily | OccupancyType) where f is the damage function (x,y) paireddata. Each OccupancyType is represented as a function with a built-in hazards.Parameters selection mechanism and hard-coded raw data within the source code. Adding in additional paireddata sets with another damage driver means adding to an already 2000+ lines data store in 50+ functions. Let's restructure this store to move the raw data to the persistent storage layer and collapse the hazards.Parameters selection to a single location. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
related to #34 |
Beta Was this translation helpful? Give feedback.
-
|
Should we decouple the structure and content families? Right now, if the structure family is stochastic, the content family has to be as well, and vice versa. Should we add in the flexibility for one of them to be stochastic and one deterministic? I have configured a pair of damage functions before where the study where the structure damage function came from is different than where the content damage function came from. |
Beta Was this translation helpful? Give feedback.
-
|
After a recent refactor, the code has evolved to allow for an OccupancyTypeProvider, and we have implemented a JsonOcctypeProvider to intercede between a persistent storage layer and the code. |
Beta Was this translation helpful? Give feedback.

After a recent refactor, the code has evolved to allow for an OccupancyTypeProvider, and we have implemented a JsonOcctypeProvider to intercede between a persistent storage layer and the code.