SimGrid  3.9.90
Versatile Simulation of Distributed Systems
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
surf_workstation_model_extension_public Struct Reference

Workstation model extension public. More...

#include <surf.h>

Data Fields

surf_action_t(* execute )(void *workstation, double size)
 
surf_action_t(* sleep )(void *workstation, double duration)
 
e_surf_resource_state_t(* get_state )(void *workstation)
 
double(* get_speed )(void *workstation, double load)
 
double(* get_available_speed )(void *workstation)
 
double(* get_current_power_peak )(void *workstation)
 
double(* get_power_peak_at )(void *workstation, int pstate_index)
 
int(* get_nb_pstates )(void *workstation)
 
void(* set_power_peak_at )(void *workstation, int pstate_index)
 
double(* get_consumed_energy )(void *workstation)
 
xbt_dynar_t(* get_route )(void *workstation_src, void *workstation_dst)
 
double(* get_link_bandwidth )(const void *link)
 
double(* get_link_latency )(const void *link)
 

Detailed Description

Workstation model extension public.

Public functions specific to the workstation model.

Field Documentation

surf_action_t(* surf_workstation_model_extension_public::execute)(void *workstation, double size)
                  Execute a computation amount on a workstation

and create the corresponding action

surf_action_t(* surf_workstation_model_extension_public::sleep)(void *workstation, double duration)

Make a workstation sleep during a given duration

e_surf_resource_state_t(* surf_workstation_model_extension_public::get_state)(void *workstation)

Return the CPU state of a workstation

double(* surf_workstation_model_extension_public::get_speed)(void *workstation, double load)

Return the speed of a workstation

double(* surf_workstation_model_extension_public::get_available_speed)(void *workstation)

Return tha available speed of a workstation

double(* surf_workstation_model_extension_public::get_current_power_peak)(void *workstation)

Return the current CPU speed of a workstation

double(* surf_workstation_model_extension_public::get_power_peak_at)(void *workstation, int pstate_index)

Return the speed of a workstation for a specific pstate, (where higher pstate values represent lower processor speeds)

int(* surf_workstation_model_extension_public::get_nb_pstates)(void *workstation)

Return the number of pstates defined for a workstation (default is 1)

void(* surf_workstation_model_extension_public::set_power_peak_at)(void *workstation, int pstate_index)

Set the processor speed of a workstation to the speed associated with the pstate_index pstate

double(* surf_workstation_model_extension_public::get_consumed_energy)(void *workstation)

Return the total energy consumed by a workstation

xbt_dynar_t(* surf_workstation_model_extension_public::get_route)(void *workstation_src, void *workstation_dst)

Get the list of links between two ws

double(* surf_workstation_model_extension_public::get_link_bandwidth)(const void *link)

Return the current bandwidth of a network link

double(* surf_workstation_model_extension_public::get_link_latency)(const void *link)

Return the current latency of a network link


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