|
Chronos Plugins 5.11.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
Keeps track of all consumables that are associated to our mock coffee machine. More...
Public Member Functions | |
| IManageConsumables | Clone () |
| Will be cloned for schedule validation. | |
| CoffeeConsumableManager () | |
Static Public Member Functions | |
| static string | GetLocationIdentifier (MockDevice dev, string ingredientName) |
Properties | |
| ReadOnlyObservableCollection< IConsumablePool > | Pools [get] |
| List of all consumable pools you manage. | |
| IEnumerable< IDevice > | ConfiguredDevices [set] |
| List of IDevice for all configured devices in Chronos. | |
Private Member Functions | |
| CoffeeConsumableManager (CoffeeConsumableManager copyFrom) | |
| void | UpdateDeviceConsumables () |
| void | PoolsChanged () |
Private Attributes | |
| IEnumerable< IDevice > | mConfiguredDevices |
| readonly ObservableCollection< IConsumablePool > | mPools = new ObservableCollection<IConsumablePool>() |
| readonly List< MockDevice > | mKnownCoffeeMakers = new List<MockDevice>() |
| readonly List< MockConsumablesForCoffeeMakerDevice > | mPerDeviceConsumables = new List<MockConsumablesForCoffeeMakerDevice>() |
Keeps track of all consumables that are associated to our mock coffee machine.
A real implementation would of course include some warning or error levels.
Definition at line 19 of file CoffeeConsumableManager.cs.
|
private |
Definition at line 34 of file CoffeeConsumableManager.cs.
References CoffeeConsumableManager(), mKnownCoffeeMakers, mPerDeviceConsumables, and PoolsChanged().
Referenced by CoffeeConsumableManager().
| MockPlugin.Consumables.CoffeeConsumableManager.CoffeeConsumableManager | ( | ) |
Definition at line 43 of file CoffeeConsumableManager.cs.
References ConfiguredDevices, AxelSemrau.Chronos.Plugin.Helpers.Debug, mPools, AxelSemrau.Chronos.Plugin.Name, and Pools.
Referenced by Clone().
| IManageConsumables MockPlugin.Consumables.CoffeeConsumableManager.Clone | ( | ) |
Will be cloned for schedule validation.
Implements AxelSemrau.Chronos.Plugin.Consumables.IManageConsumables.
Definition at line 29 of file CoffeeConsumableManager.cs.
References CoffeeConsumableManager().
|
static |
Definition at line 89 of file CoffeeConsumableManager.cs.
Referenced by MockPlugin.Tasks.BrewCoffee.RegisterCoffeeConsumption(), and MockPlugin.Tasks.BrewFrappuccino.RegisterConsumption().
|
private |
Definition at line 80 of file CoffeeConsumableManager.cs.
References mPerDeviceConsumables, and mPools.
Referenced by CoffeeConsumableManager(), and UpdateDeviceConsumables().
|
private |
Definition at line 65 of file CoffeeConsumableManager.cs.
References mConfiguredDevices, mKnownCoffeeMakers, mPerDeviceConsumables, and PoolsChanged().
|
private |
Definition at line 21 of file CoffeeConsumableManager.cs.
Referenced by UpdateDeviceConsumables().
|
private |
Definition at line 62 of file CoffeeConsumableManager.cs.
Referenced by CoffeeConsumableManager(), and UpdateDeviceConsumables().
|
private |
Definition at line 63 of file CoffeeConsumableManager.cs.
Referenced by CoffeeConsumableManager(), PoolsChanged(), and UpdateDeviceConsumables().
|
private |
Definition at line 22 of file CoffeeConsumableManager.cs.
Referenced by CoffeeConsumableManager(), and PoolsChanged().
|
set |
List of IDevice for all configured devices in Chronos.
Use with caution!
Implements AxelSemrau.Chronos.Plugin.IDirectDeviceAccess.
Definition at line 53 of file CoffeeConsumableManager.cs.
Referenced by CoffeeConsumableManager().
|
get |
List of all consumable pools you manage.
A consumable pool consists of one or more locations where a named consumable can be found.
Implements AxelSemrau.Chronos.Plugin.Consumables.IManageConsumables.
Definition at line 23 of file CoffeeConsumableManager.cs.
Referenced by CoffeeConsumableManager().