A base class for simulation timestamps regarding workflow tasks. More...

#include <SimulationTimestampTypes.h>

Inheritance diagram for wrench::SimulationTimestampTask:
wrench::SimulationTimestampPair wrench::SimulationTimestampType wrench::SimulationTimestampTaskCompletion wrench::SimulationTimestampTaskFailure wrench::SimulationTimestampTaskStart wrench::SimulationTimestampTaskTermination

Public Member Functions

SimulationTimestampTaskgetEndpoint () override
 retrieves the corresponding SimulationTimestampTask object More...
 
WorkflowTaskgetTask ()
 Retrieves the WorkflowTask associated with this timestamp. More...
 
- Public Member Functions inherited from wrench::SimulationTimestampPair
 SimulationTimestampPair ()
 Constructor.
 
 SimulationTimestampPair (SimulationTimestampPair *endpoint)
 Constructor. More...
 
- Public Member Functions inherited from wrench::SimulationTimestampType
 SimulationTimestampType ()
 
More...
 
double getDate ()
 Retrieve the date recorded for this timestamp. More...
 

Protected Member Functions

 SimulationTimestampTask (WorkflowTask *)
 Constructor. More...
 
void setEndpoints ()
 Sets the endpoint of the calling object (SimulationTimestampTaskFailure, SimulationTimestampTaskTerminated, SimulationTimestampTaskStart) with a SimulationTimestampTaskStart object.
 

Static Protected Attributes

static std::map< std::string, SimulationTimestampTask * > pending_task_timestamps
 A static map of SimulationTimestampTaskStart objects that have yet to matched with SimulationTimestampTaskFailure, SimulationTimestampTaskTerminated, SimulationTimestampTaskCompletion timestamps.
 

Additional Inherited Members

- Protected Attributes inherited from wrench::SimulationTimestampPair
SimulationTimestampPairendpoint = nullptr
 An optional associated "endpoint" simulation timestamp.
 

Detailed Description

A base class for simulation timestamps regarding workflow tasks.

Constructor & Destructor Documentation

◆ SimulationTimestampTask()

wrench::SimulationTimestampTask::SimulationTimestampTask ( WorkflowTask task)
explicitprotected

Constructor.

Parameters
taska pointer to the WorkflowTask associated with this timestamp
Exceptions
std::invalid_argument

Member Function Documentation

◆ getEndpoint()

SimulationTimestampTask * wrench::SimulationTimestampTask::getEndpoint ( )
overridevirtual

retrieves the corresponding SimulationTimestampTask object

Returns
a pointer to the start or end SimulationTimestampTask object

Reimplemented from wrench::SimulationTimestampPair.

◆ getTask()

WorkflowTask * wrench::SimulationTimestampTask::getTask ( )

Retrieves the WorkflowTask associated with this timestamp.

Returns
a pointer to the WorkflowTask associated with this timestamp

The documentation for this class was generated from the following files: