StopStrategyFactory Class Reference

Creates different instances of StopStrategy. 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.
 
StopStrategyPtr getStopStrategy (ApplicationStopperPtr appStopper)
 Creates a StopStrategy that simply tries to stop the application.
 

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 48 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 42 of file StopStrategyFactory.cpp.

◆ 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 36 of file StopStrategyFactory.cpp.


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