Exemple #1
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"DISPLAY:{this.ControlledSector}:{this.CompareSectorFirst}:{this.CompareSectorSecond}");
 }
Exemple #2
0
 public LowArtccCollector(SectorElementCollection sectorElements)
 {
     this.sectorElements = sectorElements;
 }
 public override string GetCompileData(SectorElementCollection elements)
 {
     return("");
 }
Exemple #4
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{this.Identifier} {this.Frequency} {this.Coordinate.ToString()}");
 }
Exemple #5
0
 public SidsCollector(SectorElementCollection sectorElements, OutputGroupRepository repository)
 {
     this.sectorElements = sectorElements;
     this.repository     = repository;
 }
 public ActiveRunwaysCollector(SectorElementCollection sectorElements)
 {
     this.sectorElements = sectorElements;
 }
Exemple #7
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{this.Identifier} {this.StartPoint} {this.EndPoint}");
 }
Exemple #8
0
 public HeaderCollector(SectorElementCollection sectorElements)
 {
     this.sectorElements = sectorElements;
 }
 public AirportsCollector(SectorElementCollection sectorElements)
 {
     this.sectorElements = sectorElements;
 }
 public DataParserFactory(SectorElementCollection sectorElements, IEventLogger logger)
 {
     this.sectorElements = sectorElements;
     this.logger         = logger;
 }
Exemple #11
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{CentrelineSegment}");
 }
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{this.Coordinate.latitude}:{this.Coordinate.longitude}:{this.Title}:{this.Text}");
 }
 private static bool ColourValid(string colour, SectorElementCollection sectorElements)
 {
     return(colour == null || ColourValidator.ColourValid(sectorElements, colour));
 }
Exemple #14
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{this.FirstPoint} {this.SecondPoint} {Colour ?? ""}".Trim());
 }
Exemple #15
0
 protected AbstractParserTestCase()
 {
     logger = new Moq.Mock <IEventLogger>();
     sectorElementCollection = new SectorElementCollection();
 }
 public SectorElementCollectionTest()
 {
     collection = new SectorElementCollection();
 }
 public LowAirwaysCollector(SectorElementCollection sectorElements)
 {
     this.sectorElements = sectorElements;
 }
 public void Validate(SectorElementCollection sectorElements, CompilerArguments args, IEventLogger events)
 {
     TestAirwayCategory(sectorElements.LowAirways, sectorElements, events);
     TestAirwayCategory(sectorElements.HighAirways, sectorElements, events);
 }
 private static bool PointsValid(Point point1, Point point2, SectorElementCollection sectorElements)
 {
     return(RoutePointValidator.ValidatePoint(point1, sectorElements) &&
            RoutePointValidator.ValidatePoint(point2, sectorElements));
 }
 public SidStarsCollector(SectorElementCollection sectorElements)
 {
     this.sectorElements = sectorElements;
 }
 public override string GetCompileData(SectorElementCollection elements)
 {
     return(this.AirportIcao);
 }
 public override string GetCompileData(SectorElementCollection elements)
 {
     return(this.Miles.ToString("n2"));
 }
Exemple #23
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return(this.Callsign);
 }
 public static bool ColourValid(SectorElementCollection sectorElements, string colour)
 {
     return(IsValidColourInteger(colour) || ColourIsDefined(sectorElements, colour));
 }
Exemple #25
0
        public override string GetCompileData(SectorElementCollection elements)
        {
            string name = IsExtended ? "Extended centrelines" : "Centrelines";

            return($"{name} {CentrelineSegment}");
        }
Exemple #26
0
 public AirspaceCollector(SectorElementCollection sectorElements, OutputGroupRepository outputGroups)
 {
     this.sectorElements = sectorElements;
     this.outputGroups   = outputGroups;
 }
 public GroundNetworkCollector(SectorElementCollection sectorElements)
 {
     this.sectorElements = sectorElements;
 }
 public VorsCollector(SectorElementCollection sectorElements)
 {
     this.sectorElements = sectorElements;
 }
Exemple #29
0
 public ColourValidatorTest()
 {
     sectorElements = new SectorElementCollection();
     sectorElements.Add(ColourFactory.Make("colour1"));
     sectorElements.Add(ColourFactory.Make("colour2"));
 }
Exemple #30
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return(this.Longitude);
 }