![]() |
VR-Forces 4.8 Class Documentation
|
Common functionality for a checkpoint manager, Will not present any dialogs to the user via this class. More...

Classes | |
| struct | AvailableSnapshot |
| Organized by simulation time, the back-ends that will support resetting to that simulation time (and those that will not) More... | |
Public Types | |
| typedef std::map< double, AvailableSnapshot > | AvailableSnapshots |
Public Member Functions | |
| DtVrfCheckpointManager (makVrv::DtDe &) | |
| virtual | ~DtVrfCheckpointManager () |
| virtual void | requestSnapshots (const DtSimulationAddress &addr=DtSimSendToAll) |
| Requests snapshots from specified back-end. More... | |
| virtual void | schedulePeriodicSnapshoting (bool enabled, double simTime, int numberOfSnapshotsToKeep) |
| Enables/disables periodic snapshoting at the specified time interval and save window (in number of snapshots, 0 means all) More... | |
| virtual void | processSnapshotsResponse (DtSimMessage *) |
| virtual bool | rollbackTo (double simTime=-1) |
| Rolls back to given snapshot, or, if snapshot is -1, last snapshot. Returns true if snapshot exists. More... | |
| virtual bool | haveSnapshotsThatCanBeRolledBack () const |
| Returns true if there are any snapshots that can be rolled back to. More... | |
| virtual void | clearSnapshots () |
| Signals to clear out all snapshots. More... | |
| virtual bool | saveCheckpoints (const std::set< double > &) |
| Given a list of sim times to save as an on disk checkpoint, send a message to queue them up to be saved. More... | |
| virtual bool | saveCheckpoint (double) |
| virtual bool | saveCheckpoints () |
| Saves all snapshots for currently unsaved snapshot states. More... | |
| virtual bool | takeSnapshot (bool force=false) |
| Creates a snapshot at the current sim clock time and returns whether or not this scenario is saved on disk. More... | |
| virtual bool | takeBaseSnapshot () |
| Makes this snapshot the new base snapshot. More... | |
| virtual bool | snapshotFor (double simTime, AvailableSnapshot &) const |
| Returns the available snapshot (if exists) at sim time. More... | |
| virtual bool | hasBaseSnapshot (double simTime=-1) const |
| Returns true if has a base snapshot at sim time. If sim time is -1, looks for any base snapshot. More... | |
| virtual bool | hasSnapshot (double simTime) const |
| Returns true if there is a snapshot at the specified sim time. More... | |
| virtual bool | hasFixedSnapshot (double simTime) const |
| Returns true if there is a non periodic snapshot at the given sim time. More... | |
| virtual bool | hasPeriodicSnapshot (double simTime) const |
| Returns true if there is a periodic snapshot at the given sim time. More... | |
| virtual bool | hasSavedScenarioForSnapshot (double simTime) const |
| Returns true if the snapshot at the sim time has been saved. More... | |
| virtual bool | hasUnaskedUnsavedSavedScenarioForSnapshot (double simTime) const |
| Has an unasked unsaved snapshot at the given sim time. More... | |
| virtual bool | isSavingCheckpoints () const |
| Returns true if there are items scheduled to save. More... | |
| virtual void | setAskedToSaveAtThisSimTime (double simTime, bool) |
| Sets whether or not the given sim time has been asked to save. More... | |
| const std::set< double > & | periodicSnapshots () const |
| const std::set< double > & | scheduledToSave () const |
| const AvailableSnapshots & | availableSnapshots () const |
| virtual DtFilename | scenarioNameForCheckpoint (double) const |
| If saved, returns the scenario filename at the given checkpoint time. More... | |
| virtual double | round (double simTime) const |
| Convert sim time to a time that can be snapshoted to. More... | |
| virtual void | setScenarioAsSaved (const DtFilename &) |
| If there is a snapshot at the sim time of this scenario, set it as saved. More... | |
| virtual void | clearAllSnapshots () |
| Sends message to clear all snapshots from all back-ends. More... | |
| virtual double | firstLoadableSimTime () const |
| Returns the first loadable sim time (or -1 if no time available);. More... | |
| virtual double | baseSnapshotTime () const |
| The time that will be shown as the "base" snapshot (the snapshot that when rewinding to beginning will set to) More... | |
| virtual void | updateCheckpointsSavedStatus () |
| Goes through all checkpoints and updates their saved status. More... | |
| DtScenarioSnapshotsWidget * | scenarioSnapshotsWidget () |
| virtual void | scenarioSnapshots () |
| Displays a dialog that allows user to see scenario snapshots. More... | |
| virtual void | deleteCheckpoints () |
| Displays a dialog that allows user to delete checkpoints in current scenario directory. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtVrfCheckpointManager & | instance (makVrv::DtDe &de) |
| Returns instance of the messager. More... | |
| static void | init (makVrv::DtDe &) |
Public Attributes | |
| boost::signals2::signal< void(const AvailableSnapshots &, const AvailableSnapshots &)> | signal_snapshotsChanged |
| Signal sent when snapshots have changed. First parameter is those added, second is removed. More... | |
| boost::signals2::signal< void()> | signal_snapshotsCleared |
| boost::signals2::signal< void(double)> | signal_savedScenarioCheckpoint |
| boost::signals2::signal< void(const std::set< double > &, const std::set< double > &)> | signal_saveStateChanged |
| boost::signals2::signal< void(const std::set< double > &)> | signal_savedCheckpointsCleared |
| Signal sent when snapshots to be saved are cleared for saving. More... | |
| boost::signals2::signal< void(const std::set< double > &)> | signal_savingCheckpoints |
| boost::signals2::signal< void(double, double)> | signal_baseScenarioSnapshotTimeChanged |
Protected Types | |
| typedef std::map< double, int > | BackendSnapshot |
| typedef std::map< std::string, BackendSnapshot > | SnapshotIdsByBackend |
Protected Slots | |
| virtual void | scenarioSnapshotsWidgetDestroyed () |
Protected Member Functions | |
| virtual DtDeleteCheckpointsDialog * | createDeleteCheckpointsDialog (QWidget *p, const Qt::WindowFlags &f) |
| virtual bool | scenarioExists (double simTime, DtFilename *foundFile=0) const |
| Returns true if there is a scenario (with the current scenario name) in the userData directory with the given scenario name. More... | |
| virtual void | slot_backendRemoved (const DtVrfBackendState &) |
| virtual void | removeBackend (const std::string &addr, bool sendMessage) |
| virtual void | mergeBackendSnapshots (const std::string &addr, const DtIfSnapshotsResponse::SnapshotStatus &) |
| virtual double | removeSnapshot (const std::string &addr, double snapshotTime) |
| virtual double | addSnapshot (const std::string &addr, const DtIfSnapshotsResponse::Snapshot &, const std::set< std::string > &otherBes, std::set< std::string > &stillUnavailable) |
| virtual void | processScenarioSnapshotSaved (DtSimMessage *) |
| virtual void | checkNeedsPeriodicSave (const std::set< double > &) |
| Checks to see if any if the items in this list can be sent for a periodic save, and, if does, save them. More... | |
| virtual void | updatePeriodicCheckpointFrequency (int periodicCheckpointFrequency) |
| virtual void | simulationSettingsChanged () |
| virtual DtScenarioSnapshotsWidget * | createScenarioSnapshotsWidget (QWidget *p, const Qt::WindowFlags &f) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| AvailableSnapshots | myAvailableSnapshots |
| makVrv::DtSignalConnectionManager | myConnections |
| SnapshotIdsByBackend | mySnapshotIdsByBackend |
| std::set< double > | myPeriodicSnapshots |
| std::set< double > | myScheduledToSave |
| std::set< double > | mySnapshotsThatCanBeRolledBackTo |
| double | myBaseSnapshotTime |
| std::map< std::string, bool > | myHasBaseSnapshot |
| int | myPeriodicCheckpointFrequency |
| DtScenarioSnapshotsWidget * | myScenarioSnapshotsWidget |
Common functionality for a checkpoint manager, Will not present any dialogs to the user via this class.
Use the DtVrfCheckpointManager for that
| typedef std::map<double, AvailableSnapshot> makVrf::DtVrfCheckpointManager::AvailableSnapshots |
|
protected |
|
protected |
| makVrf::DtVrfCheckpointManager::DtVrfCheckpointManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
Returns instance of the messager.
|
static |
|
virtual |
Requests snapshots from specified back-end.
Request will clear out current map (if DtSimSendToAll) and replace with new information
|
virtual |
Enables/disables periodic snapshoting at the specified time interval and save window (in number of snapshots, 0 means all)
|
virtual |
Rolls back to given snapshot, or, if snapshot is -1, last snapshot. Returns true if snapshot exists.
|
virtual |
Returns true if there are any snapshots that can be rolled back to.
|
virtual |
Signals to clear out all snapshots.
Given a list of sim times to save as an on disk checkpoint, send a message to queue them up to be saved.
|
virtual |
Saves all snapshots for currently unsaved snapshot states.
Creates a snapshot at the current sim clock time and returns whether or not this scenario is saved on disk.
If there is already a snapshot do not send snapshot again unless force is true
|
virtual |
Makes this snapshot the new base snapshot.
|
virtual |
Returns the available snapshot (if exists) at sim time.
Returns true if has a base snapshot at sim time. If sim time is -1, looks for any base snapshot.
Returns true if there is a snapshot at the specified sim time.
Returns true if there is a non periodic snapshot at the given sim time.
Returns true if there is a periodic snapshot at the given sim time.
|
virtual |
Returns true if the snapshot at the sim time has been saved.
|
virtual |
Has an unasked unsaved snapshot at the given sim time.
|
virtual |
Returns true if there are items scheduled to save.
|
virtual |
Sets whether or not the given sim time has been asked to save.
|
inline |
|
inline |
|
inline |
|
virtual |
If saved, returns the scenario filename at the given checkpoint time.
Convert sim time to a time that can be snapshoted to.
|
virtual |
If there is a snapshot at the sim time of this scenario, set it as saved.
|
virtual |
Sends message to clear all snapshots from all back-ends.
|
virtual |
Returns the first loadable sim time (or -1 if no time available);.
|
inlinevirtual |
The time that will be shown as the "base" snapshot (the snapshot that when rewinding to beginning will set to)
|
virtual |
Goes through all checkpoints and updates their saved status.
Any that have changed will be signalled out as added/removed from save
|
inline |
|
virtual |
Displays a dialog that allows user to see scenario snapshots.
|
virtual |
Displays a dialog that allows user to delete checkpoints in current scenario directory.
|
protectedvirtualslot |
|
protectedvirtual |
|
protectedvirtual |
Returns true if there is a scenario (with the current scenario name) in the userData directory with the given scenario name.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Checks to see if any if the items in this list can be sent for a periodic save, and, if does, save them.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signals2::signal<void(const AvailableSnapshots&, const AvailableSnapshots&)> makVrf::DtVrfCheckpointManager::signal_snapshotsChanged |
Signal sent when snapshots have changed. First parameter is those added, second is removed.
| boost::signals2::signal<void()> makVrf::DtVrfCheckpointManager::signal_snapshotsCleared |
| boost::signals2::signal<void (double)> makVrf::DtVrfCheckpointManager::signal_savedScenarioCheckpoint |
| boost::signals2::signal<void (const std::set<double>&, const std::set<double>&)> makVrf::DtVrfCheckpointManager::signal_saveStateChanged |
| boost::signals2::signal<void (const std::set<double>&)> makVrf::DtVrfCheckpointManager::signal_savedCheckpointsCleared |
Signal sent when snapshots to be saved are cleared for saving.
| boost::signals2::signal<void (const std::set<double>&)> makVrf::DtVrfCheckpointManager::signal_savingCheckpoints |
| boost::signals2::signal<void (double, double)> makVrf::DtVrfCheckpointManager::signal_baseScenarioSnapshotTimeChanged |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |