1using System.Collections.ObjectModel;
2using System.ComponentModel;
17 Puddles =
new ReadOnlyObservableCollection<IConsumablePuddle>(
mPuddles);
32 foreach (var somePuddle
in copyFrom.mPuddles.OfType<CoffeeIngredientContainer>().Select(somePuddle => somePuddle.Clone(
this)))
34 mPuddles.Add(somePuddle);
44 protected readonly ObservableCollection<IConsumablePuddle>
mPuddles =
new ObservableCollection<IConsumablePuddle>();
45 public ReadOnlyObservableCollection<IConsumablePuddle>
Puddles {
get; }
Foundation of a consumable management system. Not yet really utilized in Chronos itself,...
Classes for managing consumables of our imagined coffee machine.
A fake device. This namespace contains the fake device driver and auxiliary classes for settings,...
Information about the available consumables with a common name (like "Water" or "Liners")
Keep track of consumables levels.
Keeps track of all consumables that are associated to our mock coffee machine.
ReadOnlyObservableCollection< IConsumablePuddle > Puddles
List of all different "storages" for the consumable. Those have some "location" and can contain a def...
CoffeeIngredient Clone(CoffeeConsumableManager forManager)
virtual void OnPropertyChanged(PropertyChangedEventArgs e)
CoffeeIngredient(string ingredientName, MockDevice forDevice, CoffeeConsumableManager parentManager)
IManageConsumables ParentManager
Reference to the manager that is responsible for this consumable pool.
PropertyChangedEventHandler PropertyChanged
readonly ObservableCollection< IConsumablePuddle > mPuddles
CoffeeIngredient(CoffeeIngredient copyFrom, CoffeeConsumableManager forManager)
string ConsumableName
User readable name of the managed consumable.
A chronos plugin implementation for a fake device. We pretend we are controlling a mixture of coffee ...