#include <BusPowerListener.h>
Public Member Functions | |
BusPowerListener (ElectricalModel *model, double cint=1E-1, std::string model_name="") | |
void | outputEvent (adevs::Event< adevs::PortValue< BasicEvent * > >, double) |
void | stateChange (adevs::Atomic< adevs::PortValue< BasicEvent * > > *model, double t) |
This listener records real and reactive demand for power at the loads.
Definition at line 11 of file BusPowerListener.h.
BusPowerListener::BusPowerListener | ( | ElectricalModel * | model, | |
double | cint = 1E-1 , |
|||
std::string | model_name = "" | |||
) |
The listener will record power demand at the buses in the provided ElectricalModel model. Values are recorded at most at intervals cint. Data is stored in model_name+"_all_P.dat". and model_name+"_all_Q.dat".