SimGrid  3.13
Versatile Simulation of Distributed Systems
Hosts

Functions for managing the Hosts. More...

Functions

SD_link_tSD_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)
 

Detailed Description

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.

See also
sg_host_t

Function Documentation

SD_link_t* SD_route_get_list ( sg_host_t  src,
sg_host_t  dst 
)

Returns the route between two workstations.

Use SD_route_get_size() to know the array size.

Parameters
srca host
dstanother host
Returns
an array of the SD_link_t composing the route
See also
SD_route_get_size(), SD_link_t
int SD_route_get_size ( sg_host_t  src,
sg_host_t  dst 
)

Returns the number of links on the route between two workstations.

Parameters
srca workstation
dstanother workstation
Returns
the number of links on the route between these two workstations
See also
SD_route_get_list()
double SD_route_get_latency ( sg_host_t  src,
sg_host_t  dst 
)

Returns the latency of the route between two workstations.

Parameters
srcthe first workstation
dstthe second workstation
Returns
the latency of the route between the two workstations (in seconds)
See also
SD_route_get_bandwidth()
double SD_route_get_bandwidth ( sg_host_t  src,
sg_host_t  dst 
)

Returns the bandwidth of the route between two workstations, i.e.

the minimum link bandwidth of all between the workstations.

Parameters
srcthe first workstation
dstthe second workstation
Returns
the bandwidth of the route between the two workstations (in bytes/second)
See also
SD_route_get_latency()
const char* SD_storage_get_host ( SD_storage_t  storage)