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.

Member Function Documentation

◆ getKillStrategy()

StopStrategyPtr getKillStrategy ( ApplicationStopperPtr appStopper)

◆ 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

◆ 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

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