SimGrid
3.13
Versatile Simulation of Distributed Systems
|
Functions for managing the Hosts. More...
Functions | |
SD_link_t * | SD_route_get_list (sg_host_t src, sg_host_t dst) |
Returns the route between two workstations. More... | |
int | SD_route_get_size (sg_host_t src, sg_host_t dst) |
Returns the number of links on the route between two workstations. More... | |
double | SD_route_get_latency (sg_host_t src, sg_host_t dst) |
Returns the latency of the route between two workstations. More... | |
double | SD_route_get_bandwidth (sg_host_t src, sg_host_t dst) |
Returns the bandwidth of the route between two workstations, i.e. More... | |
const char * | SD_storage_get_host (SD_storage_t storage) |
Functions for managing the Hosts.
This section describes the functions for managing the hosts.
A host is a place where a task can be executed. A host is represented as a physical resource with computing capabilities and has a name.
The hosts are created when you call the function SD_create_environment.
Returns the route between two workstations.
Use SD_route_get_size() to know the array size.
src | a host |
dst | another host |
Returns the number of links on the route between two workstations.
src | a workstation |
dst | another workstation |
Returns the latency of the route between two workstations.
src | the first workstation |
dst | the second workstation |
Returns the bandwidth of the route between two workstations, i.e.
the minimum link bandwidth of all between the workstations.
src | the first workstation |
dst | the second workstation |
const char* SD_storage_get_host | ( | SD_storage_t | storage | ) |