public TrainRunSection(Route route, ServiceIntention train, SectionEdge section)
 {
     RouteId        = route.Id;
     RoutePathId    = section.RoutePath;
     SequenceNumber = section.SequenceNumber;
     if (train.SectionRequirements != null && section.SectionMarker != null)
     {
         SectionRequirement = train.SectionRequirementsDic.ContainsKey(section.SectionMarker)
             ? section.SectionMarker
             : null;
     }
 }
Example #2
0
 public TrainRun(ServiceIntention train, Route route)
 {
     Train = train;
     Route = route;
 }