WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
wrench::SimulationTimestampTask Class Reference

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...
 
std::shared_ptr< WorkflowTaskgetTask ()
 Retrieves the WorkflowTask associated with this timestamp. More...
 
- Public Member Functions inherited from wrench::SimulationTimestampPair
 SimulationTimestampPair ()
 Constructor.
 
 SimulationTimestampPair (double date, 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 (double date, std::shared_ptr< WorkflowTask >task)
 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.
 
- Protected Attributes inherited from wrench::SimulationTimestampType
double date = -0.1
 Date.
 

Detailed Description

A base class for simulation timestamps regarding workflow tasks.

Constructor & Destructor Documentation

◆ SimulationTimestampTask()

wrench::SimulationTimestampTask::SimulationTimestampTask ( double  date,
std::shared_ptr< WorkflowTask task 
)
protected

Constructor.

Parameters
datethe date
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()

std::shared_ptr< 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: