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

Public Member Functions

virtual void setupVertices ()
 
virtual void createAllVertices (Layout &layout)
 
virtual void loadParameters ()
 
virtual void printParameters () const override
 
virtual string toString (int index) const
 
virtual void loadEpochInputs (uint64_t currentStep, uint64_t endStep) override
 
virtual void registerHistoryVariables () override
 unused virtual function placeholder
 
CircularBuffer< Call > & getQueue (int vIdx)
 
int & droppedCalls (int vIdx)
 
int & receivedCalls (int vIdx)
 
int busyServers (int vIdx) const
 
virtual void advanceVertices (AllEdges &edges, const EdgeIndexMap &edgeIndexMap) override
 
- Public Member Functions inherited from AllVertices
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 

Static Public Member Functions

static AllVerticesCreate ()
 

Friends

class Xml911Recorder
 

Additional Inherited Members

- Public Attributes inherited from AllVertices
vector< BGFLOAT > summationPoints_
 
- Protected Attributes inherited from AllVertices
int size_
 Total number of vertices.
 
log4cplus::Logger fileLogger_
 
log4cplus::Logger vertexLogger_
 

Detailed Description

Definition at line 78 of file All911Vertices.h.

Member Function Documentation

◆ advanceVertices()

void All911Vertices::advanceVertices ( AllEdges & edges,
const EdgeIndexMap & edgeIndexMap )
overridevirtual

Update internal state of the indexed Vertex (called by every simulation step). Notify outgoing edges if vertex has fired.

Parameters
edgesThe Edge list to search from.
edgeIndexMapReference to the EdgeIndexMap.

Implements AllVertices.

Definition at line 165 of file All911Vertices.cpp.

◆ busyServers()

int All911Vertices::busyServers ( int vIdx) const

Accessor for the number of busy servers in a given vertex

Parameters
vIdxThe index of the vertex
Returns
The number of busy servers in the given vertex

Definition at line 156 of file All911Vertices.cpp.

◆ Create()

static AllVertices * All911Vertices::Create ( )
inlinestatic

Creates an instance of the class.

Returns
Reference to the instance of the class.

Definition at line 90 of file All911Vertices.h.

◆ createAllVertices()

void All911Vertices::createAllVertices ( Layout & layout)
virtual

Creates all the Vertices and assigns initial data for them.

Parameters
layoutLayout information of the network.

Implements AllVertices.

Definition at line 54 of file All911Vertices.cpp.

◆ droppedCalls()

int & All911Vertices::droppedCalls ( int vIdx)

Accessor for the droppedCalls counter of a vertex

Parameters
vIdxThe index of the vertex
Returns
A reference to the droppedCalls counter of the vertex

Definition at line 144 of file All911Vertices.cpp.

◆ getQueue()

CircularBuffer< Call > & All911Vertices::getQueue ( int vIdx)

Accessor for the waiting queue of a vertex

Parameters
vIdxThe index of the vertex
Returns
The waiting queue for the given vertex

Definition at line 138 of file All911Vertices.cpp.

◆ loadEpochInputs()

void All911Vertices::loadEpochInputs ( uint64_t currentStep,
uint64_t endStep )
overridevirtual

Loads all inputs scheduled to occur in the upcoming epoch. These are inputs occurring in between curStep (inclusive) and endStep (exclusive)

Reimplemented from AllVertices.

Definition at line 121 of file All911Vertices.cpp.

◆ loadParameters()

void All911Vertices::loadParameters ( )
virtual

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

Implements AllVertices.

Definition at line 101 of file All911Vertices.cpp.

◆ printParameters()

void All911Vertices::printParameters ( ) const
overridevirtual

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

Reimplemented from AllVertices.

Definition at line 109 of file All911Vertices.cpp.

◆ receivedCalls()

int & All911Vertices::receivedCalls ( int vIdx)

Accessor for the receivedCalls counter of a vertex

Parameters
vIdxThe index of the vertex
Returns
A reference to the receivedCalls counter of the vertex

Definition at line 150 of file All911Vertices.cpp.

◆ registerHistoryVariables()

virtual void All911Vertices::registerHistoryVariables ( )
inlineoverridevirtual

unused virtual function placeholder

Implements AllVertices.

Definition at line 124 of file All911Vertices.h.

◆ setupVertices()

void All911Vertices::setupVertices ( )
virtual

Setup the internal structure of the class. Allocate memories to store all vertices' states.

Reimplemented from AllVertices.

Definition at line 18 of file All911Vertices.cpp.

◆ toString()

string All911Vertices::toString ( int index) const
virtual

Outputs state of the vertex chosen as a string.

Parameters
indexindex of the vertex (in vertices) to output info from.
Returns
the complete state of the vertex.

Implements AllVertices.

Definition at line 114 of file All911Vertices.cpp.

Friends And Related Symbol Documentation

◆ Xml911Recorder

friend class Xml911Recorder
friend

Definition at line 81 of file All911Vertices.h.


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