#include <stage.hh>
Definition at line 1628 of file stage.hh.
PowerPack::PowerPack |
( |
Model * |
mod | ) |
|
PowerPack::~PowerPack |
( |
| ) |
|
void Stg::PowerPack::ChargeStart |
( |
| ) |
|
|
inline |
void Stg::PowerPack::ChargeStop |
( |
| ) |
|
|
inline |
Lose energy as work or heat, and record the event
Definition at line 256 of file powerpack.cc.
joules_t PowerPack::GetCapacity |
( |
| ) |
const |
bool Stg::PowerPack::GetCharging |
( |
| ) |
const |
|
inline |
Returns true iff the device received energy at the last timestep
Definition at line 1728 of file stage.hh.
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
Definition at line 1713 of file stage.hh.
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 | ) |
|
Subtract from the energy store
Definition at line 171 of file powerpack.cc.
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.
bool Stg::PowerPack::charging |
|
protected |
TRUE iff the device is receiving energy
Definition at line 1673 of file stage.hh.
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
Definition at line 1664 of file stage.hh.
The documentation for this class was generated from the following files: