Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
Loading...
Searching...
No Matches
Connections911 Class Reference
Inheritance diagram for Connections911:
Collaboration diagram for Connections911:

Public Member Functions

virtual void setup () override
 
virtual void loadParameters () override
 
virtual void printParameters () const override
 
virtual bool updateConnections (AllVertices &vertices) override
 Update the connections status in every epoch.
 
BGSIZE getEdgeToClosestResponder (const Call &call, BGSIZE vertexIdx)
 
string changedEdgesToXML (bool added)
 Returns the complete list of all deleted or added edges as a string.
 
string erasedVerticesToXML ()
 Returns the complete list of deleted vertices as a string.
 
- Public Member Functions inherited from Connections
virtual ~Connections ()=default
 Destructor.
 
AllEdgesgetEdges () const
 Returns reference to Synapses/Edges.
 
EdgeIndexMapgetEdgeIndexMap () const
 Returns a reference to the EdgeIndexMap.
 
void createEdgeIndexMap ()
 Calls Synapses to create EdgeIndexMap and stores it as a member variable.
 
virtual void registerGraphProperties ()
 Register edge properties with the GraphManager.
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 
virtual void updateSynapsesWeights ()
 

Static Public Member Functions

static ConnectionsCreate ()
 

Public Attributes

vector< vertexType > oldTypeMap_
 Records typeMap history for recorders.
 

Additional Inherited Members

- Protected Attributes inherited from Connections
unique_ptr< AllEdgesedges_
 
unique_ptr< EdgeIndexMapsynapseIndexMap_
 
log4cplus::Logger fileLogger_
 
log4cplus::Logger edgeLogger_
 

Detailed Description

Definition at line 22 of file Connections911.h.

Member Function Documentation

◆ changedEdgesToXML()

string Connections911::changedEdgesToXML ( bool added)

Returns the complete list of all deleted or added edges as a string.

Returns the complete list of all deleted or added edges as a string.

Returns
xml representation of all deleted or added edges

Definition at line 372 of file Connections911.cpp.

◆ Create()

static Connections * Connections911::Create ( )
inlinestatic

Creates an instance of the class.

Returns
Reference to the instance of the class.

Definition at line 31 of file Connections911.h.

◆ erasedVerticesToXML()

string Connections911::erasedVerticesToXML ( )

Returns the complete list of deleted vertices as a string.

Returns the complete list of deleted vertices as a string.

Returns
xml representation of all deleted vertices

Definition at line 396 of file Connections911.cpp.

◆ getEdgeToClosestResponder()

BGSIZE Connections911::getEdgeToClosestResponder ( const Call & call,
BGSIZE vertexIdx )

Finds the outgoing edge from the given vertex to the Responder closest to the emergency call location

Parameters
callThe call that needs a Responder
vertexIdxThe index of the vertex serving the call (A PSAP)
Returns
The index of the outgoing edge to the closest Responder

Finds the outgoing edge from the given vertex to the Responder closest to the emergency call location

Definition at line 94 of file Connections911.cpp.

◆ loadParameters()

void Connections911::loadParameters ( )
overridevirtual

Load member variables from configuration file. Registered to OperationManager as Operations::op::loadParameters

Implements Connections.

Definition at line 44 of file Connections911.cpp.

◆ printParameters()

void Connections911::printParameters ( ) const
overridevirtual

Prints out all parameters to logging file. Registered to OperationManager as Operation::printParameters

Implements Connections.

Definition at line 52 of file Connections911.cpp.

◆ setup()

void Connections911::setup ( )
overridevirtual

Setup the internal structure of the class (allocate memories and initialize them). Initialize the network characterized by parameters: number of maximum connections per vertex, connection radius threshold

Implements Connections.

Definition at line 15 of file Connections911.cpp.

◆ updateConnections()

bool Connections911::updateConnections ( AllVertices & vertices)
overridevirtual

Update the connections status in every epoch.

Update the connections status in every epoch. Uses the parent definition for USE_GPU

Parameters
verticesThe Vertex list to search from.
Returns
true if successful, false otherwise.

Reimplemented from Connections.

Definition at line 66 of file Connections911.cpp.

Member Data Documentation

◆ oldTypeMap_

vector<vertexType> Connections911::oldTypeMap_

Records typeMap history for recorders.

Definition at line 36 of file Connections911.h.


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