#include <stage.hh>
PowerPack::PowerPack | ( | Model * | mod | ) |
Definition at line 18 of file powerpack.cc.
Definition at line 43 of file powerpack.cc.
void PowerPack::Add | ( | joules_t | j | ) |
Add to the energy store
Definition at line 162 of file powerpack.cc.
void Stg::PowerPack::ChargeStart | ( | ) | [inline] |
void Stg::PowerPack::ChargeStop | ( | ) | [inline] |
void PowerPack::Dissipate | ( | joules_t | j | ) |
Lose energy as work or heat
Definition at line 244 of file powerpack.cc.
void PowerPack::Dissipate | ( | joules_t | j, |
const Pose & | p | ||
) |
Lose energy as work or heat, and record the event
Definition at line 256 of file powerpack.cc.
joules_t PowerPack::GetCapacity | ( | ) | const |
Definition at line 222 of file powerpack.cc.
bool Stg::PowerPack::GetCharging | ( | ) | const [inline] |
joules_t PowerPack::GetDissipated | ( | ) | const |
Definition at line 232 of file powerpack.cc.
joules_t PowerPack::GetStored | ( | ) | const |
Definition at line 227 of file powerpack.cc.
void Stg::PowerPack::Print | ( | const char * | prefix | ) | const [inline] |
double Stg::PowerPack::ProportionRemaining | ( | ) | const [inline] |
joules_t PowerPack::RemainingCapacity | ( | ) | const |
Returns the energy capacity minus the current amount stored
Definition at line 157 of file powerpack.cc.
void PowerPack::SetCapacity | ( | joules_t | j | ) |
Definition at line 208 of file powerpack.cc.
void PowerPack::SetStored | ( | joules_t | j | ) |
Definition at line 237 of file powerpack.cc.
void PowerPack::Subtract | ( | joules_t | j | ) |
Subtract from the energy store
Definition at line 171 of file powerpack.cc.
void PowerPack::TransferTo | ( | PowerPack * | dest, |
joules_t | amount | ||
) |
Transfer some stored energy to another power pack
Definition at line 185 of file powerpack.cc.
void PowerPack::Visualize | ( | Camera * | cam | ) |
OpenGL visualization of the powerpack state
Definition at line 52 of file powerpack.cc.
joules_t Stg::PowerPack::capacity [protected] |
bool Stg::PowerPack::charging [protected] |
joules_t Stg::PowerPack::dissipated [protected] |
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] |
StripPlotVis Stg::PowerPack::output_vis [protected] |
joules_t Stg::PowerPack::stored [protected] |
StripPlotVis Stg::PowerPack::stored_vis [protected] |