aboutsummaryrefslogtreecommitdiff
path: root/src/dk.biks.bachelorizer/dk/biks/bachelorizer/Storage.java
blob: dd6c907c953369d78bcf9abd4761fdfcadd3ed22 (plain)
  1. // SPDX-FileCopyrightText: 2025 Jonas Smedegaard <dr@jones.dk>
  2. // SPDX-License-Identifier: GPL-3.0-or-later
  3. package dk.biks.bachelorizer;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6. /// Bachelorizer - reference storage model
  7. abstract class Storage {
  8. /// default constructor
  9. // (declared explicitly only to silence javadoc)
  10. Storage() { }
  11. /// initialization as needed
  12. void initialize() {
  13. throw new UnsupportedOperationException(
  14. "Not implemented yet");
  15. }
  16. /// add student
  17. ///
  18. /// @param name Name of student
  19. void addStudent(final String name) {
  20. throw new UnsupportedOperationException(
  21. "Not implemented yet");
  22. }
  23. /// get student name
  24. ///
  25. /// @return name of student
  26. String getStudentName() {
  27. throw new UnsupportedOperationException(
  28. "Not implemented yet");
  29. }
  30. /// resolve activity index from name
  31. ///
  32. /// @param name activity name
  33. /// @return index of activity as integer
  34. int getActivityIndeks(final String name) {
  35. throw new UnsupportedOperationException(
  36. "Not implemented yet");
  37. }
  38. /// insert activity into participation
  39. ///
  40. /// @param activityIndex index of activity
  41. void addParticipation(final int activityIndex) {
  42. throw new UnsupportedOperationException(
  43. "Not implemented yet");
  44. }
  45. /// list currently participating activities
  46. ///
  47. /// @param program programme name
  48. /// @return names of participating activities
  49. ArrayList<String> getParticipation(final String program) {
  50. throw new UnsupportedOperationException(
  51. "Not implemented yet");
  52. }
  53. /// purge participation choices
  54. void clearParticipation() {
  55. throw new UnsupportedOperationException(
  56. "Not implemented yet");
  57. }
  58. /// list activities within a program
  59. ///
  60. /// @param program programme name
  61. /// @return names of contained activities
  62. ArrayList<String> selectProgram(final String program) {
  63. throw new UnsupportedOperationException(
  64. "Not implemented yet");
  65. }
  66. /// sum of ECTS points under the given category
  67. ///
  68. /// @param program programme name
  69. /// @return ECTS points as String
  70. String getSumEcts(final String program) {
  71. throw new UnsupportedOperationException(
  72. "Not implemented yet");
  73. }
  74. /// list of available subject modules
  75. ///
  76. /// @return names of all subject modules as list of strings
  77. List<String> getAllSubjects() {
  78. throw new UnsupportedOperationException(
  79. "Not implemented yet");
  80. }
  81. /// list of available activities
  82. ///
  83. /// @return names of all activities as list of strings
  84. ArrayList<String> getAllActivities() {
  85. throw new UnsupportedOperationException(
  86. "Not implemented yet");
  87. }
  88. }