FlightGear next
FGElectricalSupplier Class Reference

#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
 
FGElectricalComponentget_input (const int i)
 
void add_input (FGElectricalComponent *c)
 
int get_num_outputs () const
 
FGElectricalComponentget_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
 

Detailed Description

Definition at line 93 of file electrical.hxx.

Member Enumeration Documentation

◆ FGSupplierType

Enumerator
FG_BATTERY 
FG_ALTERNATOR 
FG_EXTERNAL 
FG_UNKNOWN 

Definition at line 96 of file electrical.hxx.

Constructor & Destructor Documentation

◆ FGElectricalSupplier()

FGElectricalSupplier::FGElectricalSupplier ( SGPropertyNode * node)

Definition at line 49 of file electrical.cxx.

◆ ~FGElectricalSupplier()

FGElectricalSupplier::~FGElectricalSupplier ( )
inline

Definition at line 123 of file electrical.hxx.

Member Function Documentation

◆ apply_load()

float FGElectricalSupplier::apply_load ( float amps,
float dt )

Definition at line 90 of file electrical.cxx.

◆ get_charge_amps()

float FGElectricalSupplier::get_charge_amps ( ) const
inline

Definition at line 129 of file electrical.hxx.

◆ get_model()

FGSupplierType FGElectricalSupplier::get_model ( ) const
inline

Definition at line 125 of file electrical.hxx.

◆ get_output_amps()

float FGElectricalSupplier::get_output_amps ( )

Definition at line 161 of file electrical.cxx.

◆ get_output_volts()

float FGElectricalSupplier::get_output_volts ( )

Definition at line 129 of file electrical.cxx.


The documentation for this class was generated from the following files: