Chronos Plugins
5.2.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
Base class for our example, just contains some empty default implementations and a check for the right device type. More...
Public Member Functions | |
void | SetDevice (IDevice yourDevice) |
virtual void | PreValidate () |
Called before the schedule construction is completed. More... | |
virtual void | PostValidate () |
Called after the schedule construction is completed. More... | |
abstract void | Execute () |
Do whatever you have to do with your parameters. More... | |
abstract string | GetTaskAction () |
Description of the tasks's action (for hints/time table) More... | |
Protected Member Functions | |
void | CheckForCoffeeMachine (IDevice yourDevice) |
It makes no sense to use any other "Autosampler" than our fake coffee machine here. More... | |
Protected Attributes | |
MockDevice | mDevice |
Properties | |
IConsumableManipulator | Consumables [get, set] |
![]() | |
IConsumableManipulator | Consumables [set] |
You will get an instance of a helper class that helps your task to find the correct consumable puddle. More... | |
Base class for our example, just contains some empty default implementations and a check for the right device type.
Definition at line 26 of file MockUseDeviceTasks.cs.
|
protected |
It makes no sense to use any other "Autosampler" than our fake coffee machine here.
yourDevice |
Definition at line 34 of file MockUseDeviceTasks.cs.
References MockPlugin.Tasks.CoffeeMachineBaseTask.mDevice.
Referenced by MockPlugin.Tasks.CoffeeMachineBaseTask.SetDevice().
|
pure virtual |
Do whatever you have to do with your parameters.
Implements AxelSemrau.Chronos.Plugin.ITask.
Implemented in MockPlugin.Tasks.PretendCoffeeMachineIsBroken, MockPlugin.Tasks.BrewFrappuccino, and MockPlugin.Tasks.BrewCoffee.
|
pure virtual |
Description of the tasks's action (for hints/time table)
Implements AxelSemrau.Chronos.Plugin.ITask.
Implemented in MockPlugin.Tasks.PretendCoffeeMachineIsBroken, MockPlugin.Tasks.BrewFrappuccino, and MockPlugin.Tasks.BrewCoffee.
|
virtual |
Called after the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Reimplemented in MockPlugin.Tasks.BrewFrappuccino, and MockPlugin.Tasks.BrewCoffee.
Definition at line 57 of file MockUseDeviceTasks.cs.
|
virtual |
Called before the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 53 of file MockUseDeviceTasks.cs.
void MockPlugin.Tasks.CoffeeMachineBaseTask.SetDevice | ( | IDevice | yourDevice | ) |
Definition at line 48 of file MockUseDeviceTasks.cs.
References MockPlugin.Tasks.CoffeeMachineBaseTask.CheckForCoffeeMachine().
|
protected |
Definition at line 28 of file MockUseDeviceTasks.cs.
Referenced by MockPlugin.Tasks.CoffeeMachineBaseTask.CheckForCoffeeMachine(), MockPlugin.Tasks.BrewCoffee.Execute(), MockPlugin.Tasks.BrewFrappuccino.Execute(), MockPlugin.Tasks.PretendCoffeeMachineIsBroken.Execute(), MockPlugin.Tasks.BrewCoffee.RegisterCoffeeConsumption(), and MockPlugin.Tasks.BrewFrappuccino.RegisterConsumption().
|
getset |
Definition at line 64 of file MockUseDeviceTasks.cs.
Referenced by MockPlugin.Tasks.BrewCoffee.RegisterCoffeeConsumption(), and MockPlugin.Tasks.BrewFrappuccino.RegisterConsumption().