rwcarlsen/cyctest — Issue #30: 141 - Develop a more Concrete Template/Instance Tracking Method 
Author: rwcarlsen
Created: 2012-01-24 17:53:19+00:00
State: open

There is currently some ambiguity in determining which models are templates and which are instantiations. Robert developed a smart, internal way of catching this when a model first communicates, but I think that there should be a more concrete way of determining this behavior when an agent is created (which can still be internal).

Currently facilities are created from a list of templates of allowed facilities in their region. As Robert points out in the comments of r667, there may come a time where we want regions and institutions to be similarly created.

Accordingly, I propose the following: at the time of simulation initialization, we populate a template list of regions and institutions and of allowed facilities by region (this idea may be tweaked as we converse more). Then, whenever we wish for an agent to be "built" or included in the simulation, we invoke the "create" function (currently residing in the Model class) at which point the agent will be registered.

Original link: http://code.google.com/p/cyclus/issues/detail?id=141