58 double operationsComputed = (res_dem)->current_performance.at(
cap)*(Scheduler::instance().clock() -
executedSince_);
60 if((res_dem)->capacity.at(
cap) > operationsComputed){
61 (res_dem)->capacity.at(
cap) -= operationsComputed;
63 (res_dem)->capacity.at(
cap) = 0;
double getMIPS(int rd, int cap)
bool operator==(const TaskAlloc &other) const
void setCoreScheduler(CoreScheduler *cs)
std::vector< ResDemand * > res_demands
TaskAlloc(CloudTask *ct, int rd, int cap)
CoreScheduler * getCoreScheduler()
void setComputingRate(double rate)