Chronos Plugins 5.9.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. | |
virtual void | PostValidate () |
Called after the schedule construction is completed. | |
void | Execute () |
Do whatever you have to do with your parameters. | |
string | GetTaskAction () |
Description of the tasks's action (for hints/time table) | |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.ITask |
Protected Member Functions | |
void | CheckForCoffeeMachine (IDevice yourDevice) |
It makes no sense to use any other "Autosampler" than our fake coffee machine here. | |
Protected Attributes | |
MockDevice | mDevice |
Properties | |
IConsumableManipulator | Consumables [get, set] |
You will get an instance of a helper class that helps your task to find the correct consumable puddle. | |
Properties inherited from AxelSemrau.Chronos.Plugin.Consumables.IConsumer |
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().
|
abstract |
Do whatever you have to do with your parameters.
Implements AxelSemrau.Chronos.Plugin.ITask.
|
abstract |
Description of the tasks's action (for hints/time table)
Implements AxelSemrau.Chronos.Plugin.ITask.
|
virtual |
Called after the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Reimplemented in MockPlugin.Tasks.BrewCoffee, and MockPlugin.Tasks.BrewFrappuccino.
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.CoffeeMachineDoesNotWorkProperly.Execute(), MockPlugin.Tasks.PretendCoffeeMachineIsBroken.Execute(), MockPlugin.Tasks.BrewCoffee.RegisterCoffeeConsumption(), and MockPlugin.Tasks.BrewFrappuccino.RegisterConsumption().
|
getset |
You will get an instance of a helper class that helps your task to find the correct consumable puddle.
You can use this indepenedently of active consumables manager - if there is none, you'll just get a dummy here. This will be set to different instances for validation and execution time. Please use this in ITask.PostValidate() (which may be called repeatedly), not ITask.PreValidate().
Implements AxelSemrau.Chronos.Plugin.Consumables.IConsumer.
Definition at line 64 of file MockUseDeviceTasks.cs.
Referenced by MockPlugin.Tasks.BrewCoffee.RegisterCoffeeConsumption(), and MockPlugin.Tasks.BrewFrappuccino.RegisterConsumption().