Stg::PowerPack Class Reference
#include <stage.hh>
Constructor & Destructor Documentation
PowerPack::PowerPack | ( | Model * | mod | ) |
PowerPack::~PowerPack | ( | ) |
Member Function Documentation
void PowerPack::Add | ( | joules_t | j | ) |
Add to the energy store
void Stg::PowerPack::ChargeStart | ( | ) | [inline] |
void Stg::PowerPack::ChargeStop | ( | ) | [inline] |
void PowerPack::Dissipate | ( | joules_t | j | ) |
Lose energy as work or heat
Lose energy as work or heat, and record the event
joules_t PowerPack::GetCapacity | ( | ) | const |
bool Stg::PowerPack::GetCharging | ( | ) | const [inline] |
Returns true iff the device received energy at the last timestep
joules_t PowerPack::GetDissipated | ( | ) | const |
joules_t PowerPack::GetStored | ( | ) | const |
void Stg::PowerPack::Print | ( | const char * | prefix | ) | const [inline] |
Print human-readable status on stdout, prefixed with the argument string, or NULL
double Stg::PowerPack::ProportionRemaining | ( | ) | const [inline] |
joules_t PowerPack::RemainingCapacity | ( | ) | const |
Returns the energy capacity minus the current amount stored
void PowerPack::SetCapacity | ( | joules_t | j | ) |
void PowerPack::SetStored | ( | joules_t | j | ) |
void PowerPack::Subtract | ( | joules_t | j | ) |
Subtract from the energy store
Transfer some stored energy to another power pack
void PowerPack::Visualize | ( | Camera * | cam | ) |
OpenGL visualization of the powerpack state
Member Data Documentation
joules_t Stg::PowerPack::capacity [protected] |
Energy capacity
bool Stg::PowerPack::charging [protected] |
TRUE iff the device is receiving energy
joules_t Stg::PowerPack::dissipated [protected] |
Energy dissipated
joules_t PowerPack::global_capacity = 0.0 [static] |
joules_t PowerPack::global_dissipated = 0.0 [static] |
joules_t PowerPack::global_input = 0.0 [static] |
joules_t PowerPack::global_stored = 0.0 [static] |
joules_t Stg::PowerPack::last_joules [protected] |
usec_t Stg::PowerPack::last_time [protected] |
watts_t Stg::PowerPack::last_watts [protected] |
Model* Stg::PowerPack::mod [protected] |
The model that owns this object
StripPlotVis Stg::PowerPack::output_vis [protected] |
joules_t Stg::PowerPack::stored [protected] |
Energy stored
StripPlotVis Stg::PowerPack::stored_vis [protected] |
The documentation for this class was generated from the following files:
Generated on Thu Dec 29 2011 16:43:40 for Stage by 1.7.5.1