|
FlightGear next
|
#include <electrical.hxx>
Inherits FGElectricalComponent.
Public Types | |
| enum | FGSupplierType { FG_BATTERY , FG_ALTERNATOR , FG_EXTERNAL , FG_UNKNOWN } |
Public Types inherited from FGElectricalComponent | |
| enum | FGElectricalComponentType { FG_UNKNOWN , FG_SUPPLIER , FG_BUS , FG_OUTPUT , FG_CONNECTOR } |
Public Member Functions | |
| FGElectricalSupplier (SGPropertyNode *node) | |
| ~FGElectricalSupplier () | |
| FGSupplierType | get_model () const |
| float | apply_load (float amps, float dt) |
| float | get_output_volts () |
| float | get_output_amps () |
| float | get_charge_amps () const |
Public Member Functions inherited from FGElectricalComponent | |
| FGElectricalComponent () | |
| virtual | ~FGElectricalComponent ()=default |
| const std::string & | get_name () |
| int | get_kind () const |
| float | get_volts () const |
| void | set_volts (float val) |
| float | get_load_amps () const |
| void | set_load_amps (float val) |
| float | get_available_amps () const |
| void | set_available_amps (float val) |
| int | get_num_inputs () const |
| FGElectricalComponent * | get_input (const int i) |
| void | add_input (FGElectricalComponent *c) |
| int | get_num_outputs () const |
| FGElectricalComponent * | get_output (const int i) |
| void | add_output (FGElectricalComponent *c) |
| void | add_prop (const std::string &s) |
| void | publishVoltageToProps () const |
Additional Inherited Members | |
Protected Types inherited from FGElectricalComponent | |
| using | comp_list = std::vector<FGElectricalComponent*> |
Protected Attributes inherited from FGElectricalComponent | |
| int | kind |
| std::string | name |
| float | volts |
| float | load_amps |
| float | available_amps |
| comp_list | inputs |
| comp_list | outputs |
| simgear::PropertyList | props |
Definition at line 93 of file electrical.hxx.
| Enumerator | |
|---|---|
| FG_BATTERY | |
| FG_ALTERNATOR | |
| FG_EXTERNAL | |
| FG_UNKNOWN | |
Definition at line 96 of file electrical.hxx.
| FGElectricalSupplier::FGElectricalSupplier | ( | SGPropertyNode * | node | ) |
Definition at line 49 of file electrical.cxx.
|
inline |
Definition at line 123 of file electrical.hxx.
| float FGElectricalSupplier::apply_load | ( | float | amps, |
| float | dt ) |
Definition at line 90 of file electrical.cxx.
|
inline |
Definition at line 129 of file electrical.hxx.
|
inline |
Definition at line 125 of file electrical.hxx.
| float FGElectricalSupplier::get_output_amps | ( | ) |
Definition at line 161 of file electrical.cxx.
| float FGElectricalSupplier::get_output_volts | ( | ) |
Definition at line 129 of file electrical.cxx.