Mathematik.js 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.cast_de_nrw_schule_svws_core_abschluss_gost_belegpruefung_Mathematik = exports.Mathematik = void 0;
  4. const GostFachbereich_1 = require("../../../../core/types/gost/GostFachbereich");
  5. const GostSchriftlichkeit_1 = require("../../../../core/types/gost/GostSchriftlichkeit");
  6. const GostHalbjahr_1 = require("../../../../core/types/gost/GostHalbjahr");
  7. const GostBelegpruefung_1 = require("../../../../core/abschluss/gost/GostBelegpruefung");
  8. const GostBelegungsfehler_1 = require("../../../../core/abschluss/gost/GostBelegungsfehler");
  9. class Mathematik extends GostBelegpruefung_1.GostBelegpruefung {
  10. mathematik = null;
  11. /**
  12. * Erstellt eine neue Belegprüfung für das Fach Mathematik.
  13. *
  14. * @param manager der Daten-Manager für die Abiturdaten
  15. * @param pruefungs_art die Art der durchzuführenden Prüfung (z.B. EF.1 oder GESAMT)
  16. */
  17. constructor(manager, pruefungs_art) {
  18. super(manager, pruefungs_art);
  19. }
  20. init() {
  21. this.mathematik = this.manager.getFachbelegung(GostFachbereich_1.GostFachbereich.MATHEMATIK);
  22. }
  23. pruefeEF1() {
  24. if ((this.mathematik === null) || !this.manager.pruefeBelegungMitSchriftlichkeitEinzeln(this.mathematik, GostSchriftlichkeit_1.GostSchriftlichkeit.BELIEBIG, GostHalbjahr_1.GostHalbjahr.EF1)) {
  25. this.addFehler(GostBelegungsfehler_1.GostBelegungsfehler.M_10);
  26. return;
  27. }
  28. if (!this.manager.pruefeBelegungMitSchriftlichkeitEinzeln(this.mathematik, GostSchriftlichkeit_1.GostSchriftlichkeit.SCHRIFTLICH, GostHalbjahr_1.GostHalbjahr.EF1))
  29. this.addFehler(GostBelegungsfehler_1.GostBelegungsfehler.M_11);
  30. }
  31. pruefeGesamt() {
  32. if (this.mathematik === null) {
  33. this.addFehler(GostBelegungsfehler_1.GostBelegungsfehler.M_10);
  34. return;
  35. }
  36. if (!this.manager.pruefeBelegung(this.mathematik, GostHalbjahr_1.GostHalbjahr.EF1, GostHalbjahr_1.GostHalbjahr.EF2, GostHalbjahr_1.GostHalbjahr.Q11, GostHalbjahr_1.GostHalbjahr.Q12, GostHalbjahr_1.GostHalbjahr.Q21, GostHalbjahr_1.GostHalbjahr.Q22))
  37. this.addFehler(GostBelegungsfehler_1.GostBelegungsfehler.M_10);
  38. if (!this.manager.pruefeBelegungMitSchriftlichkeit(this.mathematik, GostSchriftlichkeit_1.GostSchriftlichkeit.SCHRIFTLICH, GostHalbjahr_1.GostHalbjahr.EF1, GostHalbjahr_1.GostHalbjahr.EF2, GostHalbjahr_1.GostHalbjahr.Q11, GostHalbjahr_1.GostHalbjahr.Q12, GostHalbjahr_1.GostHalbjahr.Q21))
  39. this.addFehler(GostBelegungsfehler_1.GostBelegungsfehler.M_11);
  40. }
  41. isTranspiledInstanceOf(name) {
  42. return ['de.nrw.schule.svws.core.abschluss.gost.belegpruefung.Mathematik', 'de.nrw.schule.svws.core.abschluss.gost.GostBelegpruefung'].includes(name);
  43. }
  44. }
  45. exports.Mathematik = Mathematik;
  46. function cast_de_nrw_schule_svws_core_abschluss_gost_belegpruefung_Mathematik(obj) {
  47. return obj;
  48. }
  49. exports.cast_de_nrw_schule_svws_core_abschluss_gost_belegpruefung_Mathematik = cast_de_nrw_schule_svws_core_abschluss_gost_belegpruefung_Mathematik;
  50. //# sourceMappingURL=Mathematik.js.map