package airport import ( "time" "gitty.informatik.hs-mannheim.de/3010261/pr3-code/go/06-airport/airport" ) type BaggageProcessor interface { ProcessBaggage(FlightNumber, Baggage) error } type BaggageHandlingSystem struct { processingTime time.Duration sinks map[FlightNumber]BaggageProcessor //TODO: extend baggae airport.Baggage } type LostBaggage struct { Baggage FlightNumber FlightNumber Err error } var _ BaggageProcessor = &BaggageHandlingSystem{} func NewBaggageHandlingSystem(processingTime time.Duration, sinks map[FlightNumber]BaggageProcessor) BaggageHandlingSystem { return BaggageHandlingSystem{ processingTime: processingTime, sinks: sinks, } } func (bhs *BaggageHandlingSystem) ProcessBaggage(fn FlightNumber, b Baggage) error { //TODO: implement return nil } func (bhs *BaggageHandlingSystem) CollectLostBaggage() []LostBaggage { //TODO: implement return nil } func (bhs *BaggageHandlingSystem) Start() { //TODO: implement }