PilotEfficiencyPolicy
PilotEfficiencyPolicy
Policy that gets efficiency from the PilotCommand result and sets the resource status. Efficiency is given in percent.
- class DIRAC.ResourceStatusSystem.Policy.PilotEfficiencyPolicy.PilotEfficiencyPolicy
Bases:
PolicyBase
PilotEfficiencyPolicy class, extends PolicyBase
- __init__()
Constructor
- evaluate()
Before use, call setCommand.
Invoking super(PolicyCLASS, self).evaluate will invoke the command (if necessary) as it is provided and returns the results.
- setCommand(policyCommand)
Set self.command.
- Params:
commandIn
: a command object