THROW_IMPOSSIBLE; /* This model does not implement parallel tasks */
}
-Action *HostCLM03::execute(double size) {
- return p_cpu->execute(size);
-}
-
-Action *HostCLM03::sleep(double duration) {
- return p_cpu->sleep(duration);
-}
-
/**********
* Action *
**********/
~HostCLM03();
void updateState(tmgr_trace_event_t event_type, double value, double date) override;
- virtual Action *execute(double size) override;
- virtual Action *sleep(double duration) override;
-
bool isUsed() override;
xbt_dynar_t getVms();
p_cpu->setState(state);
}
+Action *Host::execute(double size) {
+ return p_cpu->execute(size);
+}
+Action *Host::sleep(double duration) {
+ return p_cpu->sleep(duration);
+}
+
+
simgrid::surf::Storage *Host::findStorageOnMountList(const char* mount)
{
simgrid::surf::Storage *st = NULL;
* @return The CpuAction corresponding to the processing
* @see Cpu
*/
- virtual Action *execute(double flops_amount)=0;
+ Action *execute(double flops_amount);
/**
* @brief Make a process sleep for duration seconds
* @return The CpuAction corresponding to the sleeping
* @see Cpu
*/
- virtual Action *sleep(double duration)=0;
+ Action *sleep(double duration);
/** @brief Return the storage of corresponding mount point */
virtual simgrid::surf::Storage *findStorageOnMountList(const char* storage);
/************
* Resource *
************/
-
-HostL07::HostL07(HostModel *model, const char* name, xbt_dict_t props, RoutingEdge *netElm, Cpu *cpu)
- : Host(model, name, props, NULL, netElm, cpu)
-{
-}
-
-HostL07::~HostL07()
-{
-}
-
CpuL07::CpuL07(CpuL07Model *model, const char* name,
double speedInitial, double speedScale, tmgr_trace_t speedTrace,
int core, e_surf_resource_state_t state_initial, tmgr_trace_t state_trace)
class HostL07 : public Host {
public:
- HostL07(HostModel *model, const char* name, xbt_dict_t props, RoutingEdge *netElm, Cpu *cpu);
- ~HostL07();
+ HostL07(HostModel *model, const char* name, xbt_dict_t props, RoutingEdge *netElm, Cpu *cpu)
+ : Host(model, name, props, NULL, netElm, cpu)
+ {}
+ ~HostL07()
+ {}
bool isUsed() override {DIE_IMPOSSIBLE;};
void updateState(tmgr_trace_event_t /*event_type*/, double /*value*/, double /*date*/) override {DIE_IMPOSSIBLE;};
- Action *execute(double size) override {return p_cpu->execute(size);};
- Action *sleep(double duration) override {return p_cpu->sleep(duration);};
};
class CpuL07 : public Cpu {