igu-algos / LearningGoal
Class: LearningGoal
Represents a learning goal or lesson that can be associated with exercises and other learning goals.
Constructors
Constructor
new LearningGoal(
id,name,isLesson,data?):LearningGoal
Creates a new learning goal instance.
Parameters
id
string
name
string
isLesson
boolean
data?
Returns
LearningGoal
Properties
data?
readonlyoptionaldata:object
Index Signature
[key: string]: unknown
id
readonlyid:string
isLesson
readonlyisLesson:boolean
name
readonlyname:string
Accessors
associatedLearningGoals
Get Signature
get associatedLearningGoals():
undefined|LearningGoal[]
Gets the list of learning goals associated with this goal.
Returns
undefined | LearningGoal[]
blockedBy
Get Signature
get blockedBy():
undefined|LearningGoal[]
Gets the list of learning goals that block this goal.
Returns
undefined | LearningGoal[]
Methods
setAssociatedLearningGoals()
setAssociatedLearningGoals(
goals):void
Sets the learning goals associated with this goal.
Parameters
goals
LearningGoal[]
Returns
void
setBlockedBy()
setBlockedBy(
goals):void
Sets the learning goals that block this goal.
Parameters
goals
LearningGoal[]
Returns
void
makeLearningGoalsFromDataDict()
staticmakeLearningGoalsFromDataDict(dataDict):LearningGoal[]
Creates multiple learning goals from a dictionary of configuration data.
Parameters
dataDict
Returns
LearningGoal[]