Example #1
0
 void 
 OPCollMatrix::initialise()
 {
   lastEvent.resize(Sim->N, lastEventData(Sim->systemTime, eventKey(classKey(0, NONE), NONE)));
 }
 classKey getClassKey(const LocalEvent& g)
 {
   return classKey(g.getLocalID(), LOCAL);
 }
 classKey getClassKey(const System& s)
 {
   return classKey(s.getID(), SYSTEM);
 }
 classKey getClassKey(const GlobalEvent& g)
 {
   return classKey(g.getGlobalID(), GLOBAL);
 }
 classKey getClassKey(const IntEvent& i)
 {
   return classKey(i.getInteractionID(), INTERACTION);
 }