SimGrid  3.18
Versatile Simulation of Distributed Systems
SURF C bindings

Detailed Description

Describes the c bindings of SURF.

Typedefs

typedef simgrid::surf::Modelsurf_model_t
 Model datatype. More...
 
typedef simgrid::surf::Actionsurf_action_t
 Action structure. More...
 
surf_action_t surf_model_extract_done_action_set (surf_model_t model)
 Pop an action from the done actions set. More...
 
surf_action_t surf_model_extract_failed_action_set (surf_model_t model)
 Pop an action from the failed actions set. More...
 
int surf_model_running_action_set_size (surf_model_t model)
 Get the size of the running action set of a model. More...
 
void surf_cpu_action_set_bound (surf_action_t action, double bound)
 [brief description] More...
 
double surf_network_action_get_latency_limited (surf_action_t action)
 [brief description] More...
 

Typedef Documentation

◆ surf_model_t

Model datatype.

Generic data structure for a model. The hosts, the CPUs and the network links are examples of models.

◆ surf_action_t

Action structure.

Never create s_surf_action_t by yourself ! The actions are created on the fly when you call execute or communicate on a model.

See also
e_surf_action_state_t

Function Documentation

◆ surf_model_extract_done_action_set()

surf_action_t surf_model_extract_done_action_set ( surf_model_t  model)

Pop an action from the done actions set.

Parameters
modelThe model from which the action is extracted
Returns
An action in done state

◆ surf_model_extract_failed_action_set()

surf_action_t surf_model_extract_failed_action_set ( surf_model_t  model)

Pop an action from the failed actions set.

Parameters
modelThe model from which the action is extracted
Returns
An action in failed state

◆ surf_model_running_action_set_size()

int surf_model_running_action_set_size ( surf_model_t  model)

Get the size of the running action set of a model.

Parameters
modelThe model
Returns
The size of the running action set

◆ surf_cpu_action_set_bound()

void surf_cpu_action_set_bound ( surf_action_t  action,
double  bound 
)

[brief description]

[long description]

Parameters
actionThe surf cpu action
bound[description]

◆ surf_network_action_get_latency_limited()

double surf_network_action_get_latency_limited ( surf_action_t  action)

[brief description]

[long description]

Parameters
actionThe surf network action