Functions

/home/mesh/mesh/include/mesh_def_energy_resources.h File Reference

MESH energy Functions. More...

Go to the source code of this file.

Functions

double mesh_energy_resource_default_power (mesh_resource *cr)
 Returns the default computational power of the resource, using the fraction of available computational power determined by the current energy state.
double mesh_energy_resource_default (mesh_resource *cr, GSList *feature_arrays)
 This is the default energy resource timing resolution function. It finds the first feature array in feature_arrays that the resource is capable of completely executing (the resource has a feature for each non-zero feature in the consume). Then, the function uses the fraction of available computation for each feature to determine the total physical time consumed by the features.

Detailed Description

MESH energy Functions.


Function Documentation

double mesh_energy_resource_default ( mesh_resource *  cr,
GSList *  feature_arrays 
)

This is the default energy resource timing resolution function. It finds the first feature array in feature_arrays that the resource is capable of completely executing (the resource has a feature for each non-zero feature in the consume). Then, the function uses the fraction of available computation for each feature to determine the total physical time consumed by the features.

label mesh_energy_resource_default

Parameters:
cr Resource created using mesh_create_energy_resource()
feature_arrays The list of feature arrays containing a double for each resource feature precond Resource has been assigned a valid mesh_energy structure with mesh_set_energy()
Returns:
Physical time duration
See also:
mesh_set_energy()
double mesh_energy_resource_default_power ( mesh_resource *  cr  ) 

Returns the default computational power of the resource, using the fraction of available computational power determined by the current energy state.

label mesh_energy_resource_default_power

Parameters:
cr Resource created using mesh_create_energy_resource() precond Resource has been assigned a valid mesh_energy structure with mesh_set_energy()
Returns:
Fractional default computational power of the resource
See also:
mesh_set_energy()
 All Files Functions