public void ReceiveTram(string tramNumber, bool repairstatus, bool cleanstatus, string statusDescription, DepotDTO depot) { if (CheckIfTramIsAllowed(tramNumber, _tramlogic)) { TramDTO tram = _tramlogic.GetTram(tramNumber); changeTramStatus(tram, repairstatus, cleanstatus, _tramlogic, statusDescription); //AllocationManager.AllocateTramToService(tram, _repairServiceLogic, _cleaningServiceLogic); AllocationManager.AllocateToRandomTrack(tram, depot.DepotTracks, _tracklogic); } else { //not needed yet } }
public void ReceiveTram(Tram tram, bool defect, bool cleaning) { //kijken of de tram bij onze remise naar binnen mag komen if (CheckIfTramIsAllowed(tram)) { changeTramStatus(tram, defect, cleaning); AllocationManager.AllocateTramToService(tram); AllocationManager.AllocateTramToTrack(tram); } else { //tram terugsturen / weigeren } }