ENERGY MONITOR 0.2
Loading...
Searching...
No Matches
electric.h File Reference

electric specific classes current/voltage/power that inherit from signals class while adding thier specific properties More...

#include "signal.h"
#include "signal_operation.h"
#include <cmath>
#include <math.h>
#include <iostream>
#include <stdlib.h>

Go to the source code of this file.

Classes

class  _current
 
class  _voltage
 
class  _power
 

Macros

#define _USE_MATH_DEFINES
 

Enumerations

enum  power_type { INDUCTIVE = 1 , CAPACITIVE , RESISTIVE }
 
enum  pf_type { LAGGING = 1 , LEADING , SYNC }
 

Functions

double tarrif_calc (double energy_in_month)
 calculate energy cost based on how much energy was consumed in a month according to egyptian tarrif
 

Detailed Description

electric specific classes current/voltage/power that inherit from signals class while adding thier specific properties

Definition in file electric.h.

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 4 of file electric.h.

Enumeration Type Documentation

◆ pf_type

enum pf_type
Enumerator
LAGGING 
LEADING 
SYNC 

Definition at line 37 of file electric.h.

◆ power_type

enum power_type
Enumerator
INDUCTIVE 
CAPACITIVE 
RESISTIVE 

Definition at line 31 of file electric.h.

Function Documentation

◆ tarrif_calc()

double tarrif_calc ( double energy_in_month)
inline

calculate energy cost based on how much energy was consumed in a month according to egyptian tarrif

Parameters
energy_in_month(in Kilo Watt HOURS (KWH))
Returns
cost in EGP

Definition at line 197 of file electric.h.