#include <GridWise.h>
Public Member Functions | |
GridFriendlyNetwork (ElectricalData *data, double frac_of_load=0.0) | |
void | getSensors (std::list< Sensor * > &sensors) |
void | route (const adevs::PortValue< BasicEvent * > &value, adevs::Devs< adevs::PortValue< BasicEvent * > > *model, adevs::Bag< adevs::Event< adevs::PortValue< BasicEvent * > > > &r) |
void | getComponents (adevs::Set< adevs::Devs< adevs::PortValue< BasicEvent * > > * > &c) |
~GridFriendlyNetwork () | |
Destructor. | |
Static Public Attributes | |
static const int | sensor_trip = 0 |
Input port receives SensorEvent objects. | |
static const int | load_change = 1 |
Output port produces LoadEvent objects. | |
static const int | base_load = 2 |
Input port for a LoadEvent to change the base load. |
This model creates GridFriendlySensors and GridFriendlyLoads for the supplied electrical data.
Definition at line 75 of file GridWise.h.
GridFriendlyNetwork::GridFriendlyNetwork | ( | ElectricalData * | data, | |
double | frac_of_load = 0.0 | |||
) |
Create grid friendly loads and sensors for the supplied electrical network.
Definition at line 9 of file GridFriendlyNetwork.cpp.
References ElectricalData::getNodeCount().
void GridFriendlyNetwork::getComponents | ( | adevs::Set< adevs::Devs< adevs::PortValue< BasicEvent * > > * > & | c | ) |
Get the components of this network.
void GridFriendlyNetwork::getSensors | ( | std::list< Sensor * > & | sensors | ) |
Fill the supplied list with Sensors for this network. The returned objects are owned by the caller.
void GridFriendlyNetwork::route | ( | const adevs::PortValue< BasicEvent * > & | value, | |
adevs::Devs< adevs::PortValue< BasicEvent * > > * | model, | |||
adevs::Bag< adevs::Event< adevs::PortValue< BasicEvent * > > > & | r | |||
) |
Route input and output to and from the model's components.