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

Detailed Description

Definition at line 39 of file Node.h.

Constructor & Destructor Documentation

◆ Node()

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.

Member Function Documentation

◆ addElement()

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

Here is the caller graph for this function:

◆ eraseElement()

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

Here is the caller graph for this function:

◆ getAnOtherElement()

Element * Node::getAnOtherElement ( Element element)

Definition at line 109 of file Node.cpp.

References getElements().

Referenced by Circuit::deployResults().

Here is the caller graph for this function:

◆ getElements()

std::vector< Element * > * Node::getElements ( )

Definition at line 101 of file Node.cpp.

References elements.

Referenced by Circuit::checkCircuit(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), Circuit::deployResults(), getAnOtherElement(), MSDevice_ElecHybrid::notifyMove(), and MSOverheadWire::~MSOverheadWire().

Here is the caller graph for this function:

◆ getId()

int Node::getId ( )

Definition at line 77 of file Node.cpp.

References id.

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

Here is the caller graph for this function:

◆ getName()

std::string & Node::getName ( )

Definition at line 65 of file Node.cpp.

References name.

◆ getNumMatrixCol()

int Node::getNumMatrixCol ( )

Definition at line 97 of file Node.cpp.

References num_matrixCol.

◆ getNumMatrixRow()

int Node::getNumMatrixRow ( )

Definition at line 89 of file Node.cpp.

References num_matrixRow.

◆ getNumOfElements()

int Node::getNumOfElements ( )

Definition at line 61 of file Node.cpp.

References elements.

◆ getVoltage()

double Node::getVoltage ( )

Definition at line 53 of file Node.cpp.

References voltage.

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 69 of file Node.cpp.

References isground.

Referenced by Circuit::checkCircuit().

Here is the caller graph for this function:

◆ isRemovable()

bool Node::isRemovable ( ) const
inline

Definition at line 68 of file Node.h.

References isremovable.

Referenced by Circuit::deployResults().

Here is the caller graph for this function:

◆ setGround()

void Node::setGround ( bool  isground)

Definition at line 73 of file Node.cpp.

References isground.

Referenced by Circuit::addNode().

Here is the caller graph for this function:

◆ setId()

void Node::setId ( int  id)

Definition at line 81 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 93 of file Node.cpp.

References num_matrixCol.

◆ setNumMatrixRow()

void Node::setNumMatrixRow ( int  num)

Definition at line 85 of file Node.cpp.

References num_matrixRow.

◆ setRemovability()

void Node::setRemovability ( bool  isremovable)

Definition at line 105 of file Node.cpp.

References isremovable.

◆ setVoltage()

void Node::setVoltage ( double  volt)

Definition at line 57 of file Node.cpp.

References voltage.

Referenced by Circuit::deployResults().

Here is the caller graph for this function:

Field Documentation

◆ elements

std::vector<Element*>* Node::elements
private

Definition at line 49 of file Node.h.

Referenced by addElement(), eraseElement(), getElements(), getNumOfElements(), and Node().

◆ id

int Node::id
private

Definition at line 45 of file Node.h.

Referenced by getId(), and Node().

◆ isground

bool Node::isground
private

Definition at line 42 of file Node.h.

Referenced by isGround(), Node(), and setGround().

◆ isremovable

bool Node::isremovable
private

Definition at line 43 of file Node.h.

Referenced by isRemovable(), Node(), and setRemovability().

◆ name

std::string Node::name
private

Definition at line 44 of file Node.h.

Referenced by getName(), and Node().

◆ num_matrixCol

int Node::num_matrixCol
private

Definition at line 47 of file Node.h.

Referenced by getNumMatrixCol(), Node(), and setNumMatrixCol().

◆ num_matrixRow

int Node::num_matrixRow
private

Definition at line 46 of file Node.h.

Referenced by getNumMatrixRow(), Node(), and setNumMatrixRow().

◆ voltage

double Node::voltage
private

Definition at line 48 of file Node.h.

Referenced by getVoltage(), Node(), and setVoltage().


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