Classes |
Public Member Functions |
Static Public Attributes |
Protected Attributes |
List of all members
Stg::PowerPack Class Reference
#include <stage.hh>
Classes | |
class | DissipationVis |
Public Member Functions | |
void | Add (joules_t j) |
void | ChargeStart () |
void | ChargeStop () |
void | Dissipate (joules_t j) |
void | Dissipate (joules_t j, const Pose &p) |
joules_t | GetCapacity () const |
bool | GetCharging () const |
joules_t | GetDissipated () const |
joules_t | GetStored () const |
PowerPack (Model *mod) | |
void | Print (const char *prefix) const |
double | ProportionRemaining () const |
joules_t | RemainingCapacity () const |
void | SetCapacity (joules_t j) |
void | SetStored (joules_t j) |
void | Subtract (joules_t j) |
void | TransferTo (PowerPack *dest, joules_t amount) |
void | Visualize (Camera *cam) |
~PowerPack () | |
Static Public Attributes | |
static joules_t | global_capacity = 0.0 |
static joules_t | global_dissipated = 0.0 |
static joules_t | global_input = 0.0 |
static joules_t | global_stored = 0.0 |
Constructor & Destructor Documentation
PowerPack::PowerPack | ( | Model * | mod | ) |
PowerPack::~PowerPack | ( | ) |
Member Function Documentation
void PowerPack::Add | ( | joules_t | j | ) |
Add to the energy store
|
inline |
|
inline |
void PowerPack::Dissipate | ( | joules_t | j | ) |
Lose energy as work or heat
Lose energy as work or heat, and record the event
joules_t PowerPack::GetCapacity | ( | ) | const |
|
inline |
Returns true iff the device received energy at the last timestep
joules_t PowerPack::GetDissipated | ( | ) | const |
joules_t PowerPack::GetStored | ( | ) | const |
|
inline |
Print human-readable status on stdout, prefixed with the argument string, or NULL
|
inline |
joules_t PowerPack::RemainingCapacity | ( | ) | const |
Returns the energy capacity minus the current amount stored
void PowerPack::SetCapacity | ( | joules_t | j | ) |
void PowerPack::SetStored | ( | joules_t | j | ) |
void PowerPack::Subtract | ( | 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
|
protected |
Energy capacity
|
protected |
TRUE iff the device is receiving energy
|
protected |
Energy dissipated
|
protected |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
The model that owns this object
|
protected |
|
protected |
Energy stored
|
protected |
The documentation for this class was generated from the following files:
Generated on Sun Apr 3 2016 18:58:58 for Stage by
