protected:
virtual ~Host(); // Call destroy() instead of manually deleting it.
- void set_netpoint(kernel::routing::NetPoint* netpoint) { pimpl_netpoint_ = netpoint; }
+ Host* set_netpoint(kernel::routing::NetPoint* netpoint);
#endif
public:
bool is_on() const;
const char* get_property(const std::string& key) const;
- void set_property(const std::string& key, const std::string& value);
+ Host* set_property(const std::string& key, const std::string& value);
const std::unordered_map<std::string, std::string>* get_properties() const;
- void set_properties(const std::unordered_map<std::string, std::string>& properties);
+ Host* set_properties(const std::unordered_map<std::string, std::string>& properties);
void set_state_profile(kernel::profile::Profile* p);
void set_speed_profile(kernel::profile::Profile* p);
* This accounts for external load (see @ref simgrid::surf::Cpu::set_speed_profile()).
*/
double get_available_speed() const;
+
/** Returns the number of core of the processor. */
int get_core_count() const;
+ Host* set_core_count(int core_count);
+
/** Returns the current computation load (in flops per second)
*
* The external load (coming from an availability trace) is not taken in account.
int get_pstate() const;
std::vector<Disk*> get_disks() const;
+ Disk* create_disk(const std::string& name, double read_bandwidth, double write_bandwidth);
void add_disk(const Disk* disk);
void remove_disk(const std::string& disk_name);