![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <Node.h>
Public Member Functions | |
void | addElement (Element *element) |
void | eraseElement (Element *element) |
Element * | getAnOtherElement (Element *element) |
vector< Element * > * | getElements () |
int | getId () |
string & | getName () |
int | getNumMatrixCol () |
int | getNumMatrixRow () |
int | getNumOfElements () |
double | getVoltage () |
bool | isGround () |
bool | isRemovable () |
Node (string name, int id) | |
void | setGround (bool isground) |
void | setId (int id) |
void | setNumMatrixCol (int num) |
void | setNumMatrixRow (int num) |
void | setRemovability (bool isremovable) |
void | setVoltage (double voltage) |
Private Attributes | |
vector< Element * > * | elements |
int | id |
bool | isground |
bool | isremovable |
string | name |
int | num_matrixCol |
int | num_matrixRow |
double | voltage |
void Node::addElement | ( | Element * | element | ) |
Definition at line 42 of file Node.cpp.
Referenced by Circuit::addElement(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), MSDevice_ElecHybrid::notifyMove(), and Circuit::replaceAndDeleteNode().
void Node::eraseElement | ( | Element * | element | ) |
Definition at line 46 of file Node.cpp.
Referenced by MSDevice_ElecHybrid::deleteVehicleFromCircuit(), MSDevice_ElecHybrid::notifyMove(), Circuit::replaceAndDeleteNode(), and MSOverheadWire::~MSOverheadWire().
Definition at line 107 of file Node.cpp.
Referenced by Circuit::deployResults().
vector< Element * > * Node::getElements | ( | ) |
Definition at line 99 of file Node.cpp.
Referenced by Circuit::checkCircuit(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), MSDevice_ElecHybrid::notifyMove(), and MSOverheadWire::~MSOverheadWire().
int Node::getId | ( | ) |
Definition at line 75 of file Node.cpp.
Referenced by Circuit::checkCircuit(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), and Circuit::replaceAndDeleteNode().
double Node::getVoltage | ( | ) |
Definition at line 51 of file Node.cpp.
Referenced by Circuit::deployResults(), GUIOverheadWire::drawGL(), Element::getVoltage(), and Circuit::getVoltage().
bool Node::isGround | ( | ) |
Definition at line 67 of file Node.cpp.
Referenced by Circuit::checkCircuit().
|
inline |
Definition at line 60 of file Node.h.
Referenced by Circuit::deployResults().
void Node::setGround | ( | bool | isground | ) |
Definition at line 71 of file Node.cpp.
Referenced by Circuit::addNode().
void Node::setId | ( | int | id | ) |
Definition at line 79 of file Node.cpp.
Referenced by MSDevice_ElecHybrid::deleteVehicleFromCircuit(), and Circuit::replaceAndDeleteNode().
void Node::setVoltage | ( | double | voltage | ) |
Definition at line 55 of file Node.cpp.
Referenced by Circuit::deployResults().