Skip to content

Commit

Permalink
Merge pull request bright-dev#13 from scopatz/decom
Browse files Browse the repository at this point in the history
added decom
  • Loading branch information
FlanFlanagan committed Feb 19, 2015
2 parents 512c69d + fe2c0c4 commit a3d6a77
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fuelfab_facility.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ class FuelfabFacility : public cyclus::Facility {
/// @param time the time of the tock
virtual void Tock();

virtual void Build(cyclus::Agent* parent) {
Facility::Build(parent);
if (lifetime() >= 0) {
context()->SchedDecom(this, exit_time());
}
}

std::set<cyclus::RequestPortfolio<cyclus::Material>::Ptr> GetMatlRequests();

std::set<cyclus::BidPortfolio<cyclus::Material>::Ptr> GetMatlBids(
Expand Down
7 changes: 7 additions & 0 deletions src/reactor_facility.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ class ReactorFacility : public cyclus::Facility {
/// @param time the time of the tock
virtual void Tock();

virtual void Build(cyclus::Agent* parent) {
Facility::Build(parent);
if (lifetime() >= 0) {
context()->SchedDecom(this, exit_time());
}
}

std::set<cyclus::RequestPortfolio<cyclus::Material>::Ptr> GetMatlRequests();

virtual std::set<cyclus::BidPortfolio<cyclus::Material>::Ptr> GetMatlBids(cyclus::CommodMap<cyclus::Material>::type& commod_requests);
Expand Down
7 changes: 7 additions & 0 deletions src/reprocess_facility.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ class ReprocessFacility : public cyclus::Facility {
/// @param time the time of the tock
virtual void Tock();

virtual void Build(cyclus::Agent* parent) {
Facility::Build(parent);
if (lifetime() >= 0) {
context()->SchedDecom(this, exit_time());
}
}

std::set<cyclus::RequestPortfolio<cyclus::Material>::Ptr> GetMatlRequests();

std::vector<std::map<int, double>> out_eff; //isotopic efficiencies of each output
Expand Down

0 comments on commit a3d6a77

Please sign in to comment.