Eclipse SUMO - Simulation of Urban MObility
|
#include <Node.h>
Public Member Functions | |
void | addElement (Element *element) |
void | eraseElement (Element *element) |
Element * | getAnOtherElement (Element *element) |
std::vector< Element * > * | getElements () |
int | getId () |
std::string & | getName () |
int | getNumMatrixCol () |
int | getNumMatrixRow () |
int | getNumOfElements () |
double | getVoltage () |
bool | isGround () |
bool | isRemovable () const |
Node (std::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 volt) |
Private Attributes | |
std::vector< Element * > * | elements |
int | id |
bool | isground |
bool | isremovable |
std::string | name |
int | num_matrixCol |
int | num_matrixRow |
double | voltage |
Node::Node | ( | std::string | name, |
int | id | ||
) |
Definition at line 32 of file Node.cpp.
References elements, id, isground, isremovable, name, num_matrixCol, num_matrixRow, and voltage.
void Node::addElement | ( | Element * | element | ) |
Definition at line 44 of file Node.cpp.
References elements.
Referenced by Circuit::addElement(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), MSDevice_ElecHybrid::notifyMove(), and Circuit::replaceAndDeleteNode().
void Node::eraseElement | ( | Element * | element | ) |
Definition at line 48 of file Node.cpp.
References elements.
Referenced by MSDevice_ElecHybrid::deleteVehicleFromCircuit(), Circuit::eraseElement(), MSDevice_ElecHybrid::notifyMove(), and Circuit::replaceAndDeleteNode().
Definition at line 109 of file Node.cpp.
References getElements().
Referenced by Circuit::deployResults().
std::vector< Element * > * Node::getElements | ( | ) |
Definition at line 101 of file Node.cpp.
References elements.
Referenced by Circuit::checkCircuit(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), getAnOtherElement(), MSDevice_ElecHybrid::notifyMove(), and MSOverheadWire::~MSOverheadWire().
int Node::getId | ( | ) |
Definition at line 77 of file Node.cpp.
References id.
Referenced by Circuit::checkCircuit(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), and Circuit::replaceAndDeleteNode().
int Node::getNumMatrixCol | ( | ) |
Definition at line 97 of file Node.cpp.
References num_matrixCol.
int Node::getNumMatrixRow | ( | ) |
Definition at line 89 of file Node.cpp.
References num_matrixRow.
double Node::getVoltage | ( | ) |
Definition at line 53 of file Node.cpp.
References voltage.
Referenced by Circuit::deployResults(), GUIOverheadWire::drawGL(), Element::getVoltage(), and Circuit::getVoltage().
bool Node::isGround | ( | ) |
Definition at line 69 of file Node.cpp.
References isground.
Referenced by Circuit::checkCircuit().
|
inline |
Definition at line 68 of file Node.h.
References isremovable.
Referenced by Circuit::deployResults().
void Node::setGround | ( | bool | isground | ) |
Definition at line 73 of file Node.cpp.
References isground.
Referenced by Circuit::addNode().
void Node::setId | ( | int | id | ) |
Definition at line 81 of file Node.cpp.
Referenced by MSDevice_ElecHybrid::deleteVehicleFromCircuit(), and Circuit::replaceAndDeleteNode().
void Node::setNumMatrixCol | ( | int | num | ) |
Definition at line 93 of file Node.cpp.
References num_matrixCol.
void Node::setNumMatrixRow | ( | int | num | ) |
Definition at line 85 of file Node.cpp.
References num_matrixRow.
void Node::setRemovability | ( | bool | isremovable | ) |
Definition at line 105 of file Node.cpp.
References isremovable.
void Node::setVoltage | ( | double | volt | ) |
Definition at line 57 of file Node.cpp.
References voltage.
Referenced by Circuit::deployResults().
|
private |
Definition at line 49 of file Node.h.
Referenced by addElement(), eraseElement(), getElements(), getNumOfElements(), and Node().
|
private |
Definition at line 42 of file Node.h.
Referenced by isGround(), Node(), and setGround().
|
private |
Definition at line 43 of file Node.h.
Referenced by isRemovable(), Node(), and setRemovability().
|
private |
|
private |
Definition at line 47 of file Node.h.
Referenced by getNumMatrixCol(), Node(), and setNumMatrixCol().
|
private |
Definition at line 46 of file Node.h.
Referenced by getNumMatrixRow(), Node(), and setNumMatrixRow().
|
private |
Definition at line 48 of file Node.h.
Referenced by getVoltage(), Node(), and setVoltage().