#include <GridWise2.h>
Public Member Functions | |
| GridFriendly2Network (ElectricalData *data) | |
| 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) |
| ~GridFriendly2Network () | |
| 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 GridFriendly2Sensors and GridFriendly2Loads for the supplied electrical data.
Definition at line 98 of file GridWise2.h.
| GridFriendly2Network::GridFriendly2Network | ( | ElectricalData * | data | ) |
Create grid friendly loads and sensors for the supplied electrical network.
Definition at line 9 of file GridFriendly2Network.cpp.
References ElectricalData::getNodeCount().
| void GridFriendly2Network::getComponents | ( | adevs::Set< adevs::Devs< adevs::PortValue< BasicEvent * > > * > & | c | ) |
Get the components of this network.
| void GridFriendly2Network::getSensors | ( | std::list< Sensor * > & | sensors | ) |
Fill the supplied list with Sensors for this network. The returned objects are owned by the caller.
| void GridFriendly2Network::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.
1.6.1