StopStrategyFactory Class Reference

Creates different instances of StopStrategy. This Factory creates different types of stop-strategies. More...

#include <ArmarXCore/util/ScenarioManagerCommon/executor/StopStrategyFactory.h>

Public Member Functions

StopStrategyPtr getKillStrategy (ApplicationStopperPtr appStopper)
 
StopStrategyPtr getStopAndKillStrategy (ApplicationStopperPtr appStopper, int delay)
 Creates a StopStrategy that first tries to stop the application, the waits a certain amount of time, then kills the application. More...
 
StopStrategyPtr getStopStrategy (ApplicationStopperPtr appStopper)
 Creates a StopStrategy that simply tries to stop the application. More...
 

Detailed Description

Creates different instances of StopStrategy. This Factory creates different types of stop-strategies.

Definition at line 39 of file StopStrategyFactory.h.

Member Function Documentation

◆ getKillStrategy()

StopStrategyPtr getKillStrategy ( ApplicationStopperPtr  appStopper)

Definition at line 45 of file StopStrategyFactory.cpp.

◆ getStopAndKillStrategy()

StopStrategyPtr getStopAndKillStrategy ( ApplicationStopperPtr  appStopper,
int  delay 
)

Creates a StopStrategy that first tries to stop the application, the waits a certain amount of time, then kills the application.

Parameters
appStopperstopper used by the strategy to stop the application
delaydelay between stop and kill
Returns
the created strategy

Definition at line 40 of file StopStrategyFactory.cpp.

+ Here is the caller graph for this function:

◆ getStopStrategy()

StopStrategyPtr getStopStrategy ( ApplicationStopperPtr  appStopper)

Creates a StopStrategy that simply tries to stop the application.

Parameters
appStopperstopper used by the strategy to stop the application
Returns
the created strategy

Definition at line 35 of file StopStrategyFactory.cpp.

+ Here is the caller graph for this function:

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