Skip to content

Commit 18d0488

Browse files
author
Frankie Robertson
committed
Fix dispatch for criteria
1 parent 98c3b06 commit 18d0488

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/next_item_rules/prelude/abstract.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ $(TYPEDEF)
3232
Abstract base type all criteria should inherit from
3333
"""
3434
abstract type CriterionBase <: CatConfigBase end
35-
abstract type ItemCriterionBase <: CatConfigBase end
35+
abstract type SubItemCriterionBase <: CatConfigBase end
3636

37-
abstract type ItemCriterion <: ItemCriterionBase end
37+
abstract type ItemCriterion <: CatConfigBase end
3838

3939
"""
4040
$(TYPEDEF)
@@ -44,17 +44,17 @@ abstract type StateCriterion <: CriterionBase end
4444
"""
4545
$(TYPEDEF)
4646
"""
47-
abstract type PointwiseItemCriterion <: ItemCriterionBase end
47+
abstract type PointwiseItemCriterion <: SubItemCriterionBase end
4848

4949
"""
5050
$(TYPEDEF)
5151
"""
52-
abstract type ItemCategoryCriterion <: ItemCriterionBase end
52+
abstract type ItemCategoryCriterion <: SubItemCriterionBase end
5353

5454
"""
5555
$(TYPEDEF)
5656
"""
57-
abstract type PointwiseItemCategoryCriterion <: ItemCriterionBase end
57+
abstract type PointwiseItemCategoryCriterion <: SubItemCriterionBase end
5858

5959
abstract type MatrixScalarizer end
6060
abstract type StateMultiCriterion end

src/next_item_rules/prelude/criteria.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function compute_criteria(
9090
end
9191

9292
function compute_criterion(
93-
ppic::ItemCriterionBase, tracked_responses::TrackedResponses, item_idx, args...)
93+
ppic::SubItemCriterionBase, tracked_responses::TrackedResponses, item_idx, args...)
9494
compute_criterion(ppic, ItemResponse(tracked_responses.item_bank, item_idx), args...)
9595
end
9696

0 commit comments

Comments
 (0)