Ejemplo n.º 1
0
 /// <summary>
 /// Zet de occupying tram. Gebruik `null` om de tram leeg te maken.
 /// </summary>
 /// <param name="tram"></param>
 public bool SetOccupyingTram(Tram tram)
 {
     if (Status == SectorStatus.Locked || Status == SectorStatus.Occupied)
     {
         return(false);
     }
     else
     {
         Status        = SectorStatus.Occupied;
         OccupyingTram = tram;
         return(true);
     }
 }
Ejemplo n.º 2
0
 public BeheerSector(int number, int trackNumber, SectorStatus status, Tram tram) : base(number, trackNumber, status, tram)
 {
 }