Hostname: page-component-7b7567c8c-2n9c9 Total loading time: 0 Render date: 2026-11-17T00:18:26.202Z Has data issue: false hasContentIssue false

Refactoring the Whitby Intelligent Tutoring System for Clean Architecture

Published online by Cambridge University Press:  02 November 2021

PAUL S. BROWN
Affiliation:
University of Leeds, Leeds, UK (e-mail: sc16pb@leeds.ac.uk; v.g.dimitrova@leeds.ac.uk)
VANIA DIMITROVA
Affiliation:
University of Leeds, Leeds, UK (e-mail: sc16pb@leeds.ac.uk; v.g.dimitrova@leeds.ac.uk)
GLEN HART
Affiliation:
Defence Science and Technology Laboratory [dstl]
ANTHONY G. COHN
Affiliation:
University of Leeds Qingdao University of Science and Technology Tongji University Shandong University (e-mail: a.g.cohn@leeds.ac.uk)
PAULO MOURA
Affiliation:
Center for Research in Advanced Computing Systems, INESC-TEC, Portugal (e-mail: pmoura@logtalk.org)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Whitby is the server-side of an Intelligent Tutoring System application for learning System-Theoretic Process Analysis (STPA), a methodology used to ensure the safety of anything that can be represented with a systems model. The underlying logic driving the reasoning behind Whitby is Situation Calculus, which is a many-sorted logic with situation, action, and object sorts. The Situation Calculus is applied to Ontology Authoring and Contingent Scaffolding: the primary activities within Whitby. Thus many fluents and actions are aggregated in Whitby from these two sub-applications and from Whitby itself, but all are available through a common situation query interface that does not depend upon any of the fluents or actions. Each STPA project in Whitby is a single situation term, which is queried for fluents that include the ontology, and to determine what pedagogical interventions to offer. Initially Whitby was written in Prolog using a module system. In the interest of a cleaner architecture and implementation with improved code reuse and extensibility, the initial application was refactored into Logtalk. This refactoring includes decoupling the Situation Calculus reasoner, Ontology Authoring framework, and Contingent Scaffolding framework into third-party libraries that can be reused in other applications. This extraction was achieved by inverting dependencies via Logtalk protocols and categories, which are reusable interfaces and components that provide functionally cohesive sets of predicate declarations and predicate definitions. In this paper the architectures of two iterations of Whitby are evaluated with respect to the motivations behind the refactor: clean architecture enabling code reuse and extensibility.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NCCreative Common License - SA
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike licence (http://creativecommons.org/licenses/by-nc-sa/4.0/), which permits non-commercial re-use, distribution, and reproduction in any medium, provided the same Creative Commons licence is used to distribute the re-used or adapted article and the original article is properly cited. The written permission of Cambridge University Press must be obtained prior to any commercial use.
Copyright
© The Author(s), 2021. Published by Cambridge University Press