#include <stage.hh>
Constructor & Destructor Documentation
PowerPack::PowerPack |
( |
Model * |
mod | ) |
|
PowerPack::~PowerPack |
( |
| ) |
|
Member Function Documentation
void Stg::PowerPack::ChargeStart |
( |
| ) |
|
|
inline |
void Stg::PowerPack::ChargeStop |
( |
| ) |
|
|
inline |
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 |
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 | ) |
|
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
bool Stg::PowerPack::charging |
|
protected |
TRUE iff the device is receiving energy
joules_t PowerPack::global_capacity = 0.0 |
|
static |
joules_t PowerPack::global_dissipated = 0.0 |
|
static |
usec_t Stg::PowerPack::last_time |
|
protected |
Model* Stg::PowerPack::mod |
|
protected |
The model that owns this object
The documentation for this class was generated from the following files: