#include <stage.hh>
Definition at line 1548 of file stage.hh.
◆ PowerPack()
PowerPack::PowerPack |
( |
Model * |
mod | ) |
|
|
explicit |
◆ ~PowerPack()
PowerPack::~PowerPack |
( |
| ) |
|
◆ Add()
◆ ChargeStart()
void Stg::PowerPack::ChargeStart |
( |
| ) |
|
|
inline |
◆ ChargeStop()
void Stg::PowerPack::ChargeStop |
( |
| ) |
|
|
inline |
◆ Dissipate() [1/2]
◆ Dissipate() [2/2]
Lose energy as work or heat, and record the event
Definition at line 246 of file powerpack.cc.
◆ GetCapacity()
joules_t PowerPack::GetCapacity |
( |
| ) |
const |
◆ GetCharging()
bool Stg::PowerPack::GetCharging |
( |
| ) |
const |
|
inline |
Returns true iff the device received energy at the last timestep
Definition at line 1640 of file stage.hh.
◆ GetDissipated()
joules_t PowerPack::GetDissipated |
( |
| ) |
const |
◆ GetStored()
◆ Print()
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 1625 of file stage.hh.
◆ ProportionRemaining()
double Stg::PowerPack::ProportionRemaining |
( |
| ) |
const |
|
inline |
◆ RemainingCapacity()
joules_t PowerPack::RemainingCapacity |
( |
| ) |
const |
Returns the energy capacity minus the current amount stored
Definition at line 148 of file powerpack.cc.
◆ SetCapacity()
void PowerPack::SetCapacity |
( |
joules_t |
j | ) |
|
◆ SetStored()
◆ Subtract()
Subtract from the energy store
Definition at line 163 of file powerpack.cc.
◆ TransferTo()
Transfer some stored energy to another power pack
Definition at line 177 of file powerpack.cc.
◆ Visualize()
void PowerPack::Visualize |
( |
Camera * |
cam | ) |
|
OpenGL visualization of the powerpack state
Definition at line 47 of file powerpack.cc.
◆ Canvas
◆ WorldGui
◆ capacity
◆ charging
bool Stg::PowerPack::charging |
|
protected |
TRUE iff the device is receiving energy
Definition at line 1587 of file stage.hh.
◆ dissipated
◆ event_vis
◆ global_capacity
joules_t PowerPack::global_capacity = 0.0 |
|
static |
◆ global_dissipated
joules_t PowerPack::global_dissipated = 0.0 |
|
static |
◆ global_input
◆ global_stored
◆ last_joules
◆ last_time
usec_t Stg::PowerPack::last_time |
|
protected |
◆ last_watts
◆ mod
Model* Stg::PowerPack::mod |
|
protected |
The model that owns this object
Definition at line 1578 of file stage.hh.
◆ output_vis
◆ stored
◆ stored_vis
The documentation for this class was generated from the following files: