コード例 #1
0
 public AirwayParser(
     AirwayType airwayType,
     SectorElementCollection elements,
     IEventLogger eventLogger
     )
 {
     this.airwayType  = airwayType;
     this.elements    = elements;
     this.eventLogger = eventLogger;
 }
コード例 #2
0
 private static AirwaySegment GetAirway(AirwayType type, string startPointIdentifier, string endPointIdentifier)
 {
     return(new(
                "test",
                type,
                new Point(startPointIdentifier),
                new Point(endPointIdentifier),
                DefinitionFactory.Make(),
                DocblockFactory.Make(),
                CommentFactory.Make()
                ));
 }
コード例 #3
0
 public static AirwaySegment Make(AirwayType type = AirwayType.LOW, string identifier = null)
 {
     return(new Faker <AirwaySegment>()
            .CustomInstantiator(
                f => new AirwaySegment(
                    identifier ?? $"{(type == AirwayType.HIGH ? "U" : "")}{f.Random.ArrayElement(Identifiers)}",
                    type,
                    PointFactory.Make(),
                    PointFactory.Make(),
                    DefinitionFactory.Make(),
                    DocblockFactory.Make(),
                    CommentFactory.Make()
                    )
                ));
 }
コード例 #4
0
 public AirwaySegment(
     string identifier,
     AirwayType type,
     Point startPoint,
     Point endPoint,
     Definition definition,
     Docblock docblock,
     Comment inlineComment
     )
     : base(definition, docblock, inlineComment)
 {
     Identifier = identifier;
     Type       = type;
     StartPoint = startPoint;
     EndPoint   = endPoint;
 }