Eclipse SUMO - Simulation of Urban MObility
Node Class Reference

#include <Node.h>

Public Member Functions

void addElement (Element *element)
 
void eraseElement (Element *element)
 
ElementgetAnOtherElement (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
 

Detailed Description

Definition at line 31 of file Node.h.

Constructor & Destructor Documentation

◆ Node()

Node::Node ( string  name,
int  id 
)

Definition at line 30 of file Node.cpp.

Member Function Documentation

◆ addElement()

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().

Here is the caller graph for this function:

◆ eraseElement()

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().

Here is the caller graph for this function:

◆ getAnOtherElement()

Element * Node::getAnOtherElement ( Element element)

Definition at line 107 of file Node.cpp.

Referenced by Circuit::deployResults().

Here is the caller graph for this function:

◆ getElements()

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().

Here is the caller graph for this function:

◆ getId()

int Node::getId ( )

Definition at line 75 of file Node.cpp.

Referenced by Circuit::checkCircuit(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), and Circuit::replaceAndDeleteNode().

Here is the caller graph for this function:

◆ getName()

string & Node::getName ( )

Definition at line 63 of file Node.cpp.

◆ getNumMatrixCol()

int Node::getNumMatrixCol ( )

Definition at line 95 of file Node.cpp.

◆ getNumMatrixRow()

int Node::getNumMatrixRow ( )

Definition at line 87 of file Node.cpp.

◆ getNumOfElements()

int Node::getNumOfElements ( )

Definition at line 59 of file Node.cpp.

◆ getVoltage()

double Node::getVoltage ( )

Definition at line 51 of file Node.cpp.

Referenced by Circuit::deployResults(), GUIOverheadWire::drawGL(), Element::getVoltage(), and Circuit::getVoltage().

Here is the caller graph for this function:

◆ isGround()

bool Node::isGround ( )

Definition at line 67 of file Node.cpp.

Referenced by Circuit::checkCircuit().

Here is the caller graph for this function:

◆ isRemovable()

bool Node::isRemovable ( )
inline

Definition at line 60 of file Node.h.

Referenced by Circuit::deployResults().

Here is the caller graph for this function:

◆ setGround()

void Node::setGround ( bool  isground)

Definition at line 71 of file Node.cpp.

Referenced by Circuit::addNode().

Here is the caller graph for this function:

◆ setId()

void Node::setId ( int  id)

Definition at line 79 of file Node.cpp.

Referenced by MSDevice_ElecHybrid::deleteVehicleFromCircuit(), and Circuit::replaceAndDeleteNode().

Here is the caller graph for this function:

◆ setNumMatrixCol()

void Node::setNumMatrixCol ( int  num)

Definition at line 91 of file Node.cpp.

◆ setNumMatrixRow()

void Node::setNumMatrixRow ( int  num)

Definition at line 83 of file Node.cpp.

◆ setRemovability()

void Node::setRemovability ( bool  isremovable)

Definition at line 103 of file Node.cpp.

◆ setVoltage()

void Node::setVoltage ( double  voltage)

Definition at line 55 of file Node.cpp.

Referenced by Circuit::deployResults().

Here is the caller graph for this function:

Field Documentation

◆ elements

vector<Element*>* Node::elements
private

Definition at line 41 of file Node.h.

◆ id

int Node::id
private

Definition at line 37 of file Node.h.

◆ isground

bool Node::isground
private

Definition at line 34 of file Node.h.

◆ isremovable

bool Node::isremovable
private

Definition at line 35 of file Node.h.

◆ name

string Node::name
private

Definition at line 36 of file Node.h.

◆ num_matrixCol

int Node::num_matrixCol
private

Definition at line 39 of file Node.h.

◆ num_matrixRow

int Node::num_matrixRow
private

Definition at line 38 of file Node.h.

◆ voltage

double Node::voltage
private

Definition at line 40 of file Node.h.


The documentation for this class was generated from the following files: