Interface IUnitProductionScheduleRepository
- Namespace
- Acuit.Pinpoint.Workstation
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
A unit production queue repository.
public interface IUnitProductionScheduleRepository
Remarks
This repository maintains the production queue as groups of unit model numbers.
Properties
ModelGroups
Gets the observable collection of model groups.
IReadOnlyNotifyCollection<IUnitProductionQueueModelGroup> ModelGroups { get; }
Property Value
Methods
RemoveOneUnit(IUnitProductionQueueModelGroup)
Remove one unit from a model group.
void RemoveOneUnit(IUnitProductionQueueModelGroup modelGroup)
Parameters
modelGroupIUnitProductionQueueModelGroupThe model group.
Remarks
This will decrement Count for modelGroup, and then remove it from
ModelGroups if the resulting count is zero.
Exceptions
- InvalidOperationException
modelGroupdoes not exist in ModelGroups.
StartMonitoring()
Start monitoring for production schedule changes.
void StartMonitoring()
Remarks
The implementation for this:
- Will be called via the main application dispatcher.
- Can be called multiple times in succession.
- Should not throw any exceptions. Expected errors, including the inability to start monitoring, should be reported via a health check.
StopMonitoring()
Stop monitoring for production schedule changes.
void StopMonitoring()
Remarks
The implementation for this:
- Will be called via the main application dispatcher.
- Can be called multiple times in succession.
- Should not throw any exceptions.