- Implement a couple of helper methods into Dynamic(Sub)Request to

make life easier to Scheduler
- Go on implementing a bit more of Scheduler::step_forward()
- Remove "places" from SubRequest


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@778 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-07-18 15:52:55 +00:00
parent 53073295d5
commit 14b5b66b3c
13 changed files with 163 additions and 89 deletions

View file

@ -1086,11 +1086,10 @@ TextSimulation::on_add_subrequest(const Tokens& arguments)
CommandParameter<int> resource_key(_("resource key"), 0, INT_MAX, true, 0);
CommandParameter<int> duration(_("duration"), 0, INT_MAX, true, 0);
CommandParameter<int> places(_("places"), 0, INT_MAX, false, 1);
History& h = Simulation::get_instance().get_history();
h.add_subrequest(*r, resource_key.value, duration.value, places.value);
h.add_subrequest(*r, resource_key.value, duration.value);
}
void