#include <adapt5.h>
Public Member Functions | |
adapt5 () | |
virtual void | Step () |
Adaptive Synchronization Strategy No. 5. | |
void | setAvgRBsPerGVTIter (int avgRBs) |
Set the average number of rollbacks per GVT iteration. | |
void | setRecentAvgEventSparsity (int avgSparsity) |
Set the recent event sparsity average (in GVT ticks / event). | |
void | setTimeLeash (POSE_TimeType tl) |
Set the value of the time leash. | |
Data Fields | |
int | iter |
int | objUsage |
int | recentAvgRBLeash |
int | recentTotalRBLeash |
int | recentAvgRBLeashCount |
int | avgEventsPerRB |
int | avgRBsPerGVTIter |
int | recentAvgEventSparsity |
bool | initialAvgRBLeashCalc |
Definition at line 12 of file adapt5.h.
adapt5::adapt5 | ( | ) | [inline] |
Definition at line 18 of file adapt5.h.
References avgEventsPerRB, avgRBsPerGVTIter, initialAvgRBLeashCalc, iter, POSE_Config::max_usage, objUsage, pose_config, POSE_TimeMax, recentAvgEventSparsity, recentAvgRBLeash, recentAvgRBLeashCount, recentTotalRBLeash, POSE_Config::store_rate, strat::STRAT_T, and opt3::timeLeash.
void adapt5::Step | ( | ) | [virtual] |
Adaptive Synchronization Strategy No. 5.
Single forward execution step
Reimplemented from opt3.
Definition at line 5 of file adapt5.C.
References avgEventsPerRB, opt::avgRBoffset, avgRBsPerGVTIter, sim::basicStats, opt::CancelEvents(), sim::cancels, opt::CancelUnexecutedEvents(), CmiWallTimer(), strat::currentEvent, eventQueue::currentPtr, Event::done, strat::eq, opt::eventCount, Event::fnIdx, PVT::getGVT(), PVT::incEventCount(), PVT::incSpecEventCount(), initialAvgRBLeashCalc, int, CancelList::IsEmpty(), iter, strat::localPVT, strat::localStats, localStat::Loop(), eventQueue::mem_usage, Event::msg, objUsage, offset, rep::OVT(), strat::parent, pose_config, POSE_endtime, POSE_UnsetTS, eventQueue::RBevent, opt::rbFlag, recentAvgEventSparsity, recentAvgRBLeash, recentAvgRBLeashCount, recentTotalRBLeash, sim::ResolveFn(), opt::Rollback(), eventQueue::ShiftEvent(), opt::specEventCount, POSE_Config::stats, sim::Status(), opt3::timeLeash, Event::timestamp, POSE_Config::trace, traceUserBracketEvent(), and strat::userObj.
void adapt5::setAvgRBsPerGVTIter | ( | int | avgRBs | ) | [inline] |
Set the average number of rollbacks per GVT iteration.
Definition at line 37 of file adapt5.h.
References avgRBsPerGVTIter.
void adapt5::setRecentAvgEventSparsity | ( | int | avgSparsity | ) | [inline] |
Set the recent event sparsity average (in GVT ticks / event).
Definition at line 39 of file adapt5.h.
References recentAvgEventSparsity.
void adapt5::setTimeLeash | ( | POSE_TimeType | tl | ) | [inline] |
Set the value of the time leash.
Definition at line 41 of file adapt5.h.
References opt3::timeLeash.
Definition at line 16 of file adapt5.h.
Referenced by adapt5(), setRecentAvgEventSparsity(), and Step().