|
Chronos Plugins 5.11.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
Calls a method of the device class with one if its task parameters. More...
Public Member Functions | |
| override void | Execute () |
| Do something with our device: The resulting message box is displayed by the device. | |
| override void | PostValidate () |
| Called after the schedule construction is completed. | |
| override string | GetTaskAction () |
| Show this task's action in the timetable. | |
| Public Member Functions inherited from MockPlugin.Tasks.CoffeeMachineBaseTask | |
| void | SetDevice (IDevice yourDevice) |
| virtual void | PreValidate () |
| Called before 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.ITaskForDevice | |
| void | SetDevice (IDevice yourDevice) |
| Will be called by chronos when building the schedule. | |
Properties | |
| string | Message = LocalizeMockPlugin.BrewCoffee_mMessage_Do_you_want_sugar_ [get, set] |
| Trivial property which can be changed in the method editor. | |
| Properties inherited from MockPlugin.Tasks.CoffeeMachineBaseTask | |
| IConsumableManipulator | Consumables [get, set] |
| You will get an instance of a helper class that helps your task to find the correct consumable puddle. | |
Private Member Functions | |
| void | RegisterCoffeeConsumption () |
| Inform the consumables tracker of the needed coffee amount. | |
Additional Inherited Members | |
| Protected Member Functions inherited from MockPlugin.Tasks.CoffeeMachineBaseTask | |
| void | CheckForCoffeeMachine (IDevice yourDevice) |
| It makes no sense to use any other "Autosampler" than our fake coffee machine here. | |
| Protected Attributes inherited from MockPlugin.Tasks.CoffeeMachineBaseTask | |
| MockDevice | mDevice |
Calls a method of the device class with one if its task parameters.
This is a simple example of a task that makes use of the device. It has some ordinary properties and feeds these values into some operation on the device.
Definition at line 91 of file MockUseDeviceTasks.cs.
| override void MockPlugin.Tasks.BrewCoffee.Execute | ( | ) |
Do something with our device: The resulting message box is displayed by the device.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 96 of file MockUseDeviceTasks.cs.
References MockPlugin.Tasks.CoffeeMachineBaseTask.mDevice, Message, and RegisterCoffeeConsumption().
| override string MockPlugin.Tasks.BrewCoffee.GetTaskAction | ( | ) |
Show this task's action in the timetable.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 119 of file MockUseDeviceTasks.cs.
|
virtual |
Called after the schedule construction is completed.
Reimplemented from MockPlugin.Tasks.CoffeeMachineBaseTask.
Definition at line 102 of file MockUseDeviceTasks.cs.
References RegisterCoffeeConsumption().
|
private |
Inform the consumables tracker of the needed coffee amount.
Definition at line 110 of file MockUseDeviceTasks.cs.
References MockPlugin.Tasks.CoffeeMachineBaseTask.Consumables, MockPlugin.Consumables.CoffeeConsumableManager.GetLocationIdentifier(), and MockPlugin.Tasks.CoffeeMachineBaseTask.mDevice.
Referenced by Execute(), and PostValidate().
|
getset |
Trivial property which can be changed in the method editor.
Definition at line 127 of file MockUseDeviceTasks.cs.
Referenced by Execute().