SimGrid  3.18
Versatile Simulation of Distributed Systems
simgrid::surf::HostImpl Class Reference

Detailed Description

SURF Host interface class.

An host represents a machine with a aggregation of a Cpu, a RoutingEdge and a Storage

#include <HostImpl.hpp>

Inheritance diagram for simgrid::surf::HostImpl:
simgrid::surf::PropertyHolder

Public Member Functions

 HostImpl (s4u::Host *host)
 
virtual ~HostImpl ()=default
 
virtual void getAttachedStorageList (std::vector< const char *> *storages)
 Get the vector of storages (by names) attached to the Host. More...
 
simgrid::s4u::HostgetHost ()
 
- Public Member Functions inherited from simgrid::surf::PropertyHolder
 PropertyHolder ()=default
 
 ~PropertyHolder ()
 
const char * getProperty (std::string key)
 Return the property associated to the provided key (or nullptr if not existing) More...
 
void setProperty (std::string id, std::string value)
 Change the value of a given key in the property set. More...
 
std::map< std::string, std::string > * getProperties ()
 Return the whole set of properties. More...
 

Public Attributes

std::map< std::string, simgrid::surf::StorageImpl * > storage_
 
simgrid::s4u::Hostpiface_ = nullptr
 

Constructor & Destructor Documentation

◆ HostImpl()

simgrid::surf::HostImpl::HostImpl ( s4u::Host host)
explicit

◆ ~HostImpl()

virtual simgrid::surf::HostImpl::~HostImpl ( )
virtualdefault

Member Function Documentation

◆ getAttachedStorageList()

void simgrid::surf::HostImpl::getAttachedStorageList ( std::vector< const char *> *  storages)
virtual

Get the vector of storages (by names) attached to the Host.

◆ getHost()

simgrid::s4u::Host* simgrid::surf::HostImpl::getHost ( )
inline

Member Data Documentation

◆ storage_

std::map<std::string, simgrid::surf::StorageImpl*> simgrid::surf::HostImpl::storage_

◆ piface_

simgrid::s4u::Host* simgrid::surf::HostImpl::piface_ = nullptr

The documentation for this class was generated from the following files: