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. | |
MESH energy Functions.
| 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
| 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() |
| 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
| cr | Resource created using mesh_create_energy_resource() precond Resource has been assigned a valid mesh_energy structure with mesh_set_energy() |
1.7.1