Example #1
0
 void RegisterEvents(Sim.SimCar tSim)
 {
     //tSim.RegisterEvents();
     tSim.RegisterPhevBattery(phevBattery_Changed);
     tSim.RegisterPhevStatus(phevStatus_Changed);
     tSim.RegisterProgressTotal(total_Changed);
     //tSim.RegisterProgressPhev(phev_Changed);
     tSim.RegisterProgressPnode(pnode_Changed);
     //tSim.RegisterPhevLeft(phevLeft_Changed);
     tSim.RegisterProb(prob_Calc);
     tSim.RegisterProbReset(prob_Reset);
     tSim.RegisterDayaheadProgress(dayahead_Changed);
     tSim.RegisterDayaheadInit(dayahead_Init);
     tSim.RegisterDayaheadStep(dayahead_Step);
     tSim.RegisterDayaheadExpected(dayahead_Exp);
     tSim.RegisterDayaheadSupervisor(dayahead_Supervisor);
     tSim.RegisterDayaheadAnt(dayahead_Ant);
     //tSim.TestDayahead(nSim);
     tSim.RegisterTrfCapacity(trfCapacity_Changed);
     tSim.RegisterTrfCurrent(trfCurrent_Changed);
     tSim.RegisterTrfFiltered(trfFiltered_Changed);
     //tSim.RegisterTrfUpdate(trfUpdated_Changed);
     tSim.RegisterDebug(debug_Changed);
     tSim.RegisterError(error_Changed);
     tSim.RegisterProgress(progress_Changed);
     tSim.RegisterStarted(start_Changed);
 }