igu-algos / ExerciseTemplate
Class: ExerciseTemplate
Represents a template for generating exercises with specific learning goals and generation strategies.
Constructors
Constructor
new ExerciseTemplate(
id,belongsTo,generator,data?):ExerciseTemplate
Creates a new exercise template with specified configuration.
Parameters
id
string
Unique identifier for the template
belongsTo
The learning goal this template contributes to
generator
Generator
The generator responsible for creating exercises from this template
data?
Optional data passed through
Returns
ExerciseTemplate
Properties
belongsTo
readonlybelongsTo:LearningGoal
data?
readonlyoptionaldata:object
Index Signature
[key: string]: unknown
generator
readonlygenerator:Generator
id
readonlyid:string
Methods
makeExerciseTemplatesFromDataDict()
staticmakeExerciseTemplatesFromDataDict(dataDict,learningGoals):ExerciseTemplate[]
Creates multiple exercise templates from a dictionary of configuration data.
Parameters
dataDict
learningGoals
Map\<string, LearningGoal>
Returns
ExerciseTemplate[]