Stg::PowerPack Class Reference
#include <stage.hh>
Constructor & Destructor Documentation
| PowerPack::PowerPack | ( | Model * | mod | ) | 
| PowerPack::~PowerPack | ( | ) | 
Member Function Documentation
| void PowerPack::Add | ( | stg_joules_t | j | ) | 
Add to the energy store
| void Stg::PowerPack::ChargeStart | ( | ) |  [inline] | 
| void Stg::PowerPack::ChargeStop | ( | ) |  [inline] | 
| void PowerPack::Dissipate | ( | stg_joules_t | j, | |
| const Pose & | p | |||
| ) | 
Lose energy as work or heat, and record the event
| void PowerPack::Dissipate | ( | stg_joules_t | j | ) | 
Lose energy as work or heat
| stg_joules_t PowerPack::GetCapacity | ( | ) | const | 
| bool Stg::PowerPack::GetCharging | ( | ) | const  [inline] | 
Returns true iff the device received energy at the last timestep
| stg_joules_t PowerPack::GetDissipated | ( | ) | const | 
| stg_joules_t PowerPack::GetStored | ( | ) | const | 
| void Stg::PowerPack::Print | ( | const char * | prefix | ) | const  [inline] | 
| void PowerPack::Print | ( | char * | prefix | ) | const | 
Print human-readable status on stdout, prefixed with the argument string
| double Stg::PowerPack::ProportionRemaining | ( | ) | const  [inline] | 
| stg_joules_t PowerPack::RemainingCapacity | ( | ) | const | 
Returns the energy capacity minus the current amount stored
| void PowerPack::SetCapacity | ( | stg_joules_t | j | ) | 
| void PowerPack::SetStored | ( | stg_joules_t | j | ) | 
| void PowerPack::Subtract | ( | stg_joules_t | j | ) | 
Subtract from the energy store
| void PowerPack::TransferTo | ( | PowerPack * | dest, | |
| stg_joules_t | amount | |||
| ) | 
Transfer some stored energy to another power pack
| void PowerPack::Visualize | ( | Camera * | cam | ) | 
OpenGL visualization of the powerpack state
Member Data Documentation
| stg_joules_t Stg::PowerPack::capacity  [protected] | 
Energy capacity
| bool Stg::PowerPack::charging  [protected] | 
TRUE iff the device is receiving energy
| stg_joules_t Stg::PowerPack::dissipated  [protected] | 
Energy dissipated
| stg_joules_t PowerPack::global_capacity = 0.0  [static, protected] | 
| stg_joules_t PowerPack::global_dissipated = 0.0  [static, protected] | 
| stg_joules_t PowerPack::global_input = 0.0  [static, protected] | 
| stg_joules_t PowerPack::global_stored = 0.0  [static, protected] | 
| stg_joules_t Stg::PowerPack::last_joules  [protected] | 
| stg_usec_t Stg::PowerPack::last_time  [protected] | 
| stg_watts_t Stg::PowerPack::last_watts  [protected] | 
| Model* Stg::PowerPack::mod  [protected] | 
The model that owns this object
| StripPlotVis Stg::PowerPack::output_vis  [protected] | 
| stg_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 Tue Oct 20 15:42:06 2009 for Stage by
 1.6.1
 1.6.1 
