1 #ifndef CYCLUS_SRC_SIM_INIT_H_ 2 #define CYCLUS_SRC_SIM_INIT_H_ 4 #include <boost/uuid/uuid_io.hpp> 45 boost::uuids::uuid new_sim_id);
83 void LoadSolverInfo();
84 void LoadPrototypes();
85 void LoadInitialAgents();
86 void LoadInventories();
87 void LoadBuildSched();
88 void LoadDecomSched();
92 ExchangeSolver* LoadGreedySolver(
bool exclusive, std::set<std::string> tables);
93 ExchangeSolver* LoadCoinSolver(
bool exclusive, std::set<std::string> tables);
100 std::map<int, Agent*> agents_;
105 boost::uuids::uuid simid_;
113 #endif // CYCLUS_SRC_SIM_INIT_H_ Timer * timer()
Returns the initialized timer.
boost::shared_ptr< Composition > Ptr
double b(int nuc)
Computes the scattering length [cm] from the coherent and incoherent components.
boost::shared_ptr< Material > Ptr
std::string name(int nuc)
Context * context()
Returns the initialized context.
boost::shared_ptr< Product > Ptr
static Product::Ptr BuildProduct(QueryableBackend *b, int resid)
Convenience function for reconstructing an untracked product object with the given resource state id ...
void Branch(QueryableBackend *b, boost::uuids::uuid prev_sim_id, int t, boost::uuids::uuid new_sim_id)
NOT IMPLEMENTED.
void Restart(QueryableBackend *b, boost::uuids::uuid sim_id, int t)
EXPERIMENTAL (might not work properly).
static void Snapshot(Context *ctx)
Records a snapshot of the current state of the simulation being managed by ctx into the simulation's ...
Collects and manages output data generation for the cyclus core and agents during a simulation...
Container for a static simulation-global parameters that both describe the simulation and affect its ...
A simulation context provides access to necessary simulation-global functions and state...
boost::shared_ptr< Resource > Ptr
The abstract base class used by all types of agents that live and interact in a simulation.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
static Material::Ptr BuildMaterial(QueryableBackend *b, int resid)
Convenience function for reconstructing an untracked material object with the given resource state id...
a very simple interface for solving translated resource exchanges
Handles initialization of a simulation from the output database.
void Init(Recorder *r, QueryableBackend *b)
Initialize a simulation with data from b for simulation id in r.
Interface implemented by backends that support rudimentary querying.
static void SnapAgent(Agent *m)
Records a snapshot of the agent's current internal state into the simulation's output database...
Recorder * recorder()
Returns the initialized recorder with registered backends.
Controls simulation timestepping and inter-timestep phases.