SimGrid
Data Fields
surf_model Struct Reference

Model datatypeGeneric data structure for a model. The workstations, the CPUs and the network links are examples of models. More...

#include <surf.h>

Data Fields

const char * name
s_surf_action_state_t states
e_surf_action_state_t(* action_state_get )(surf_action_t action)
void(* action_state_set )(surf_action_t action, e_surf_action_state_t state)
double(* action_get_start_time )(surf_action_t action)
double(* action_get_finish_time )(surf_action_t action)
int(* action_unref )(surf_action_t action)
void(* action_cancel )(surf_action_t action)
void(* action_recycle )(surf_action_t action)
void(* action_data_set )(surf_action_t action, void *data)
void(* suspend )(surf_action_t action)
void(* resume )(surf_action_t action)
int(* is_suspended )(surf_action_t action)
void(* set_max_duration )(surf_action_t action, double duration)
void(* set_priority )(surf_action_t action, double priority)
double(* get_remains )(surf_action_t action)

Detailed Description

Model datatype

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


Field Documentation

const char* surf_model::name

Name of this model

Any living action on this model

Return the state of an action

Change an action state

Return the start time of an action

Return the finish time of an action

Specify that we don't use that action anymore

Cancel a running action

Recycle an action

void(* surf_model::action_data_set)(surf_action_t action, void *data)

Set the user data of an action

Suspend an action

Resume a suspended action

Return whether an action is suspended

void(* surf_model::set_max_duration)(surf_action_t action, double duration)

Set the max duration of an action

void(* surf_model::set_priority)(surf_action_t action, double priority)

Set the priority of an action

Get the remains of an action


The documentation for this struct was generated from the following file:


Back to the main Simgrid Documentation page The version of Simgrid documented here is v3.6.1.
Documentation of other versions can be found in their respective archive files (directory doc/html).
Generated for SimGridAPI by doxygen