|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.recovery.RecoveryManager
public class RecoveryManager
Features which provides and stores all information needed to resume an application, given that it is possible to resume the application.
| Constructor Summary | |
|---|---|
RecoveryManager(Collection<? extends Device> devices,
IExecutionServicePaused sesPausedInterface)
Creates a new instance of the feature. |
|
| Method Summary | |
|---|---|
IExecutableRecoveryStrategy |
getExecRecoveryStrategy(Robot robot)
Returns the executable recovery strategy which is executed if the application is resumed. |
IRecoveryStrategy |
getRecoveryStrategy(Robot robot)
Returns the recovery strategy which is executed if the application is resumed. |
Collection<Robot> |
getRobots()
Returns all Robot's of the recovery feature. |
boolean |
isRecoveryRequired()
Determines if actions are necessary to resume the application. |
boolean |
isRecoveryRequired(Robot robot)
Determines if actions are necessary to resume the application. |
void |
setRecoveryInfo(Robot robot,
RecoveryInformation recoveryinfo)
Saves the device state which has to be recovered if the application is resumed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecoveryManager(Collection<? extends Device> devices,
IExecutionServicePaused sesPausedInterface)
devices - the devices of the controller.sesPausedInterface - interface which allows to request if the sunrise execution
service is paused.| Method Detail |
|---|
public boolean isRecoveryRequired()
IRecovery
isRecoveryRequired in interface IRecoverytrue if at least one of the robots needs to perform
actions to resume the application given that the application is
in state pause. Otherwise the function returns
false.public boolean isRecoveryRequired(Robot robot)
IRecovery
isRecoveryRequired in interface IRecoveryrobot - device under investigation.
true if the robot needs to perform actions to resume the
application given that the application is in state pause.
Otherwise the function returns false.public IRecoveryStrategy getRecoveryStrategy(Robot robot)
IRecovery
getRecoveryStrategy in interface IRecoveryrobot - device under investigation.
null.public IExecutableRecoveryStrategy getExecRecoveryStrategy(Robot robot)
robot - device under investigation.
null.
public void setRecoveryInfo(Robot robot,
RecoveryInformation recoveryinfo)
robot - The robot for which the recovery info appliesrecoveryinfo - The information that describes the state of the device that
should be restored by the recovery strategies.public Collection<Robot> getRobots()
Robot's of the recovery feature.
Robot's of the recovery feature.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||