class Approach {
    constructor() {
        this.transitions = [];
        this.wayPoints = [];
        this.transitions = [];
    }
    get type() {
        switch (this.name.split(" ")[0]) {
            case "VOR":
                return ApproachType.APPROACH_TYPE_VOR;
                break;
            case "NDB":
                return ApproachType.APPROACH_TYPE_NDB;
                break;
            case "ILS":
                return ApproachType.APPROACH_TYPE_ILS;
                break;
            case "LOC":
                return ApproachType.APPROACH_TYPE_LOCALIZER;
                break;
            case "SDF":
                return ApproachType.APPROACH_TYPE_SDF;
                break;
            case "LDA":
                return ApproachType.APPROACH_TYPE_LDA;
                break;
            case "RNAV":
                return ApproachType.APPROACH_TYPE_RNAV;
                break;
            case "BLOC":
                return ApproachType.APPROACH_TYPE_LOCALIZER_BACK_COURSE;
                break;
            case "GPS":
                return ApproachType.APPROACH_TYPE_GPS;
                break;
            default:
                return ApproachType.APPROACH_TYPE_UNKNOWN;
                break;
        }
    }
    isLocalizer() {
        if (this.type == ApproachType.APPROACH_TYPE_ILS || this.type == ApproachType.APPROACH_TYPE_LOCALIZER || this.type == ApproachType.APPROACH_TYPE_LOCALIZER_BACK_COURSE)
            return true;
        return false;
    }
}
class ApproachWayPoint extends WayPoint {
}
class Transition {
    constructor() {
        this.waypoints = [];
    }
}
//# sourceMappingURL=Approach.js.map