Skip to content

Commit

Permalink
Create abstract class for spacing algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
l3kn committed Mar 11, 2024
1 parent 530832d commit 5efbaf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion org-fc-algo-sm2.el
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ INTERVAL is by a random factor between `org-fc-algo-sm2-fuzz-min' and

;;;; Main Algorithm Interface

(defclass org-fc-algo-sm2 (eieio-singleton) ())
(defclass org-fc-algo-sm2 (eieio-singleton org-fc-algo) ())

(cl-defmethod org-fc-algo-headers ((_algo org-fc-algo-sm2))
'(position ease box interval due))
Expand Down
5 changes: 5 additions & 0 deletions org-fc-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ If point is not inside a flashcard entry, an error is raised."

;;; Classes

(defclass org-fc-algo ()
()
"Spacing algorithm interface."
:abstract t)

(defclass org-fc-file ()
((path
:initarg :path
Expand Down

0 comments on commit 5efbaf3

Please sign in to comment.