public SidStarRouteParser(
     SectorElementCollection sectorElements,
     IEventLogger errorLog,
     SidStarType type
     )
 {
     this.sectorElements = sectorElements;
     this.errorLog       = errorLog;
     this.Type           = type;
 }
Exemplo n.º 2
0
 public SidStarRoute(
     SidStarType type,
     string identifier,
     RouteSegment initialSegment,
     List <RouteSegment> segments,
     Definition definition,
     Docblock docblock,
     Comment inlineComment
     ) : base(definition, docblock, inlineComment)
 {
     Type           = type;
     Identifier     = identifier;
     InitialSegment = initialSegment;
     Segments       = segments;
 }
Exemplo n.º 3
0
 public static SidStarRoute Make(
     SidStarType type             = SidStarType.SID,
     List <RouteSegment> segments = null,
     Definition definition        = null
     )
 {
     return(new Faker <SidStarRoute>()
            .CustomInstantiator(
                _ => new SidStarRoute(
                    type,
                    "SID STAR ROUTE",
                    RouteSegmentFactory.MakeDoublePoint(),
                    segments ?? new List <RouteSegment>()
     {
         RouteSegmentFactory.MakeDoublePoint(),
         RouteSegmentFactory.MakePointCoordinate(),
         RouteSegmentFactory.MakeCoordinatePoint()
     },
                    definition ?? DefinitionFactory.Make(),
                    DocblockFactory.Make(),
                    CommentFactory.Make()
                    )
                ));
 }