modules/shared/crash_tests.mjs

export { CrashTest };

/**
 * Class representing a crash test
 */
class CrashTest {
    /**
     * ODB test
     * @type {string}
     */
    static get ODB() {
        return "ODB";
    }
    /**
     * FFB test
     * @type {string}
     */
    static get FFB() {
        return "FFB";
    }
    /**
     * MPDB test
     * @type {string}
     */
    static get MPDB() {
        return "MPDB";
    }
    /**
     * MDB test
     * @type {string}
     */
    static get MDB() {
        return "MDB";
    }
    /**
     * Far Side test
     * @type {string}
     */
    static get FAR_SIDE() {
        return "Far Side";
    }
    /**
     * Side Pole test
     * @type {string}
     */
    static get SIDE_POLE() {
        return "Side Pole";
    }
    /**
     * SOB test
     * @type {string}
     */
    static get SOB() {
        return "SOB";
    }

    /**
     * Return an array of all the available crash test strings
     * @returns {string[]}
     * @example
     * let crash_tests = CrashTest.GetAll();
     */
    static GetAll() {
        return [
            CrashTest.ODB,
            CrashTest.FFB,
            CrashTest.MPDB,
            CrashTest.MDB,
            CrashTest.FAR_SIDE,
            CrashTest.SIDE_POLE,
            CrashTest.SOB
        ];
    }
}