p_cpu->setState(state);
}
-Action *Host::execute(double size) {
- xbt_assert(0,"FIXME: DEADCODE");
- return p_cpu->execute(size);
-}
-Action *Host::sleep(double duration) {
- xbt_assert(0,"FIXME: DEADCODE");
- return p_cpu->sleep(duration);
-}
-
simgrid::surf::Storage *Host::findStorageOnMountList(const char* mount)
{
e_surf_resource_state_t getState();
void setState(e_surf_resource_state_t state);
- /**
- * @brief Execute some quantity of computation
- *
- * @param flops_amount The value of the processing amount (in flop) needed to process
- * @return The CpuAction corresponding to the processing
- * @see Cpu
- */
- Action *execute(double flops_amount);
-
- /**
- * @brief Make a process sleep for duration seconds
- *
- * @param duration The number of seconds to sleep
- * @return The CpuAction corresponding to the sleeping
- * @see Cpu
- */
- Action *sleep(double duration);
-
/** @brief Return the storage of corresponding mount point */
virtual simgrid::surf::Storage *findStorageOnMountList(const char* storage);
p_action->setAffinity(cpu, mask);
}
-/* Adding a task to a VM updates the VCPU task on its physical machine. */
-Action *VMHL13::execute(double size)
-{
- double old_cost = p_action->getCost();
- double new_cost = old_cost + size;
-
- XBT_DEBUG("VM(%s)@PM(%s): update dummy action's cost (%f -> %f)",
- getName(), p_hostPM->getName().c_str(),
- old_cost, new_cost);
-
- p_action->setCost(new_cost);
-
- return p_cpu->execute(size);
-}
-
-Action *VMHL13::sleep(double duration) {
- return p_cpu->sleep(duration);
-}
}
}
//FIXME: remove
void updateState(tmgr_trace_event_t event_type, double value, double date);
bool isUsed();
-
- Action *execute(double size);
- Action *sleep(double duration);
};
/**********