Chronos Plugins 5.9.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 () | |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.Consumables.IManageConsumables |
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. | |
Properties inherited from AxelSemrau.Chronos.Plugin.Consumables.IManageConsumables | |
Properties inherited from AxelSemrau.Chronos.Plugin.IDirectDeviceAccess |
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 16 of file CoffeeConsumableManager.cs.
|
private |
Definition at line 31 of file CoffeeConsumableManager.cs.
References MockPlugin.Consumables.CoffeeConsumableManager.mKnownCoffeeMakers, MockPlugin.Consumables.CoffeeConsumableManager.mPerDeviceConsumables, and MockPlugin.Consumables.CoffeeConsumableManager.PoolsChanged().
MockPlugin.Consumables.CoffeeConsumableManager.CoffeeConsumableManager | ( | ) |
Definition at line 40 of file CoffeeConsumableManager.cs.
References MockPlugin.Consumables.CoffeeConsumableManager.ConfiguredDevices, AxelSemrau.Chronos.Plugin.Helpers.Debug, MockPlugin.Consumables.CoffeeConsumableManager.mPools, AxelSemrau.Chronos.Plugin.Name, and MockPlugin.Consumables.CoffeeConsumableManager.Pools.
Referenced by MockPlugin.Consumables.CoffeeConsumableManager.Clone().
IManageConsumables MockPlugin.Consumables.CoffeeConsumableManager.Clone | ( | ) |
Will be cloned for schedule validation.
Implements AxelSemrau.Chronos.Plugin.Consumables.IManageConsumables.
Definition at line 26 of file CoffeeConsumableManager.cs.
References MockPlugin.Consumables.CoffeeConsumableManager.CoffeeConsumableManager().
|
static |
Definition at line 86 of file CoffeeConsumableManager.cs.
Referenced by MockPlugin.Tasks.BrewCoffee.RegisterCoffeeConsumption(), and MockPlugin.Tasks.BrewFrappuccino.RegisterConsumption().
|
private |
Definition at line 77 of file CoffeeConsumableManager.cs.
References MockPlugin.Consumables.CoffeeConsumableManager.mPerDeviceConsumables, and MockPlugin.Consumables.CoffeeConsumableManager.mPools.
Referenced by MockPlugin.Consumables.CoffeeConsumableManager.CoffeeConsumableManager(), and MockPlugin.Consumables.CoffeeConsumableManager.UpdateDeviceConsumables().
|
private |
Definition at line 62 of file CoffeeConsumableManager.cs.
References MockPlugin.Consumables.CoffeeConsumableManager.mConfiguredDevices, MockPlugin.Consumables.CoffeeConsumableManager.mKnownCoffeeMakers, MockPlugin.Consumables.CoffeeConsumableManager.mPerDeviceConsumables, and MockPlugin.Consumables.CoffeeConsumableManager.PoolsChanged().
|
private |
Definition at line 18 of file CoffeeConsumableManager.cs.
Referenced by MockPlugin.Consumables.CoffeeConsumableManager.UpdateDeviceConsumables().
|
private |
Definition at line 59 of file CoffeeConsumableManager.cs.
Referenced by MockPlugin.Consumables.CoffeeConsumableManager.CoffeeConsumableManager(), and MockPlugin.Consumables.CoffeeConsumableManager.UpdateDeviceConsumables().
|
private |
|
private |
Definition at line 19 of file CoffeeConsumableManager.cs.
Referenced by MockPlugin.Consumables.CoffeeConsumableManager.CoffeeConsumableManager(), and MockPlugin.Consumables.CoffeeConsumableManager.PoolsChanged().
|
set |
List of IDevice for all configured devices in Chronos.
Use with caution!
Implements AxelSemrau.Chronos.Plugin.IDirectDeviceAccess.
Definition at line 50 of file CoffeeConsumableManager.cs.
Referenced by MockPlugin.Consumables.CoffeeConsumableManager.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 20 of file CoffeeConsumableManager.cs.
Referenced by MockPlugin.Consumables.CoffeeConsumableManager.CoffeeConsumableManager(), and MockPlugin.Consumables.CoffeeConsumableViewModel.RebuildLists().