* This ignores any potential external load coming from a trace.
* @param core The number of core of this Cpu
*/
- virtual Cpu* create_cpu(s4u::Host* host, const std::vector<double>& speed_per_pstate, int core) = 0;
+ virtual Cpu* create_cpu(s4u::Host* host, const std::vector<double>& speed_per_pstate) = 0;
void update_actions_state_lazy(double now, double delta) override;
void update_actions_state_full(double now, double delta) override;
* Resource *
************/
-class XBT_PUBLIC Cpu : public Resource {
+class XBT_PUBLIC Cpu : public Resource_T<Cpu> {
friend vm::VirtualMachineImpl; // Resets the VCPU
s4u::Host* piface_;
Cpu* set_core_count(int core_count);
virtual int get_core_count();
+ void seal() override;
+
/** @brief Get a forecast of the speed (in flops/s) if the load were as provided.
*
* The provided load should encompasses both the application's activities and the external load that come from a