The WinnerTakeAll selected a winner. More...
#include <Neuro/NeuroSimEvents.H>
Public Member Functions | |
SimEventWTAwinner (SimModule *src, const WTAwinner w, const uint shiftnum) | |
Constuctor. | |
virtual | ~SimEventWTAwinner () |
Destructor. | |
virtual std::string | toString () const |
Get a description for printing out. | |
const WTAwinner & | winner () const |
Get the winner. | |
uint | shiftNum () const |
Get the attention shift number (0-based). |
The WinnerTakeAll selected a winner.
Definition at line 63 of file NeuroSimEvents.H.
Constuctor.
Definition at line 54 of file NeuroSimEvents.C.
SimEventWTAwinner::~SimEventWTAwinner | ( | ) | [virtual] |
Destructor.
Definition at line 59 of file NeuroSimEvents.C.
uint SimEventWTAwinner::shiftNum | ( | ) | const |
Get the attention shift number (0-based).
Definition at line 73 of file NeuroSimEvents.C.
std::string SimEventWTAwinner::toString | ( | ) | const [virtual] |
Get a description for printing out.
Shows regular SimEvent info, plus winner coordinates.
Reimplemented from SimEvent.
Definition at line 62 of file NeuroSimEvents.C.
References WTAwinner::boring, Point2D< T >::i, WTAwinner::p, sformat(), and WTAwinner::sv.
const WTAwinner & SimEventWTAwinner::winner | ( | ) | const |
Get the winner.
Definition at line 70 of file NeuroSimEvents.C.