model_energy.c File Reference

#include <sys/time.h>
#include <math.h>
#include <assert.h>
#include "stage_internal.h"
#include "gui.h"


Defines

#define ENERGY_FILLED   1
#define TIMING   0

Functions

void energy_connect (stg_model_t *source, stg_model_t *sink)
stg_watts_t energy_connection_sum (stg_model_t *mod, GPtrArray *cons)
void energy_disconnect (stg_model_t *source, stg_model_t *sink)
int energy_init (stg_model_t *mod)
void energy_load (stg_model_t *mod)
int energy_match (stg_model_t *mod, stg_model_t *hitmod)
int energy_render_cfg (stg_model_t *mod, void *userp)
int energy_render_data (stg_model_t *mod, void *userp)
int energy_render_data_text (stg_model_t *mod, void *userp)
int energy_shutdown (stg_model_t *mod)
int energy_startup (stg_model_t *mod)
void energy_transfer (stg_model_t *src, stg_model_t *sink)
int energy_unrender_cfg (stg_model_t *mod, void *userp)
int energy_unrender_data (stg_model_t *mod, void *userp)
int energy_unrender_data_text (stg_model_t *mod, void *userp)
int energy_update (stg_model_t *mod)

Variables

stg_rtk_fig_tfig_debug
const double STG_ENERGY_CAPACITY_DEFAULT = 10000.0
const int STG_ENERGY_FIDUCIAL_DEFAULT = 255
const double STG_ENERGY_GIVE_RATE_DEFAULT = 100.0
const double STG_ENERGY_POSEA_DEFAULT = 0.0
const double STG_ENERGY_POSEX_DEFAULT = 0.0
const double STG_ENERGY_POSEY_DEFAULT = 0.0
const double STG_ENERGY_PROBE_RANGE_DEFAULT = 0.5
const double STG_ENERGY_SIZEX_DEFAULT = 0.08
const double STG_ENERGY_SIZEY_DEFAULT = 0.18
const double STG_ENERGY_TAKE_RATE_DEFAULT = 100.0

Define Documentation

#define ENERGY_FILLED   1
 

#define TIMING   0
 


Function Documentation

void energy_connect stg_model_t source,
stg_model_t sink
 

stg_watts_t energy_connection_sum stg_model_t mod,
GPtrArray *  cons
 

void energy_disconnect stg_model_t source,
stg_model_t sink
 

int energy_init stg_model_t mod  ) 
 

void energy_load stg_model_t mod  ) 
 

int energy_match stg_model_t mod,
stg_model_t hitmod
 

int energy_render_cfg stg_model_t mod,
void *  userp
 

int energy_render_data stg_model_t mod,
void *  userp
 

int energy_render_data_text stg_model_t mod,
void *  userp
 

int energy_shutdown stg_model_t mod  ) 
 

int energy_startup stg_model_t mod  ) 
 

void energy_transfer stg_model_t src,
stg_model_t sink
 

int energy_unrender_cfg stg_model_t mod,
void *  userp
 

int energy_unrender_data stg_model_t mod,
void *  userp
 

int energy_unrender_data_text stg_model_t mod,
void *  userp
 

int energy_update stg_model_t mod  ) 
 


Variable Documentation

stg_rtk_fig_t* fig_debug
 

const double STG_ENERGY_CAPACITY_DEFAULT = 10000.0
 

const int STG_ENERGY_FIDUCIAL_DEFAULT = 255
 

const double STG_ENERGY_GIVE_RATE_DEFAULT = 100.0
 

const double STG_ENERGY_POSEA_DEFAULT = 0.0
 

const double STG_ENERGY_POSEX_DEFAULT = 0.0
 

const double STG_ENERGY_POSEY_DEFAULT = 0.0
 

const double STG_ENERGY_PROBE_RANGE_DEFAULT = 0.5
 

const double STG_ENERGY_SIZEX_DEFAULT = 0.08
 

const double STG_ENERGY_SIZEY_DEFAULT = 0.18
 

const double STG_ENERGY_TAKE_RATE_DEFAULT = 100.0
 


Generated on Thu Dec 13 14:35:18 2007 for Stage by  doxygen 1.4.6