44 #instVars : [
55 ' requirementReports' ,
66 ' repository' ,
7- ' tracingPoints'
7+ ' tracingPoints' ,
8+ ' announcer'
89 ],
910 #category : ' ExecutableRequirements-Model-Report' ,
1011 #package : ' ExecutableRequirements' ,
@@ -23,6 +24,34 @@ ExReqRepositoryReport >> allValidRequirementReports [
2324 ^ self requirementReports select: [ :each | each isValid ]
2425]
2526
27+ { #category : ' as yet unclassified' }
28+ ExReqRepositoryReport >> annouceStepReportIsValid: aStepReport [
29+
30+ self announcer announce:
31+ (ExReqStepReportIsValidEvent new
32+ stepReport: aStepReport;
33+ yourself )
34+ ]
35+
36+ { #category : ' as yet unclassified' }
37+ ExReqRepositoryReport >> annouceTracingPointInstalled [
38+
39+ self announcer announce: (ExReqTracingPointInstalledEvent new )
40+ ]
41+
42+ { #category : ' as yet unclassified' }
43+ ExReqRepositoryReport >> annouceTracingPointRemoved [
44+
45+ self announcer ifNil: [ ^ self ].
46+ self announcer announce: ExReqTracingPointRemovedEvent new
47+ ]
48+
49+ { #category : ' initialization' }
50+ ExReqRepositoryReport >> announcer [
51+
52+ ^ announcer
53+ ]
54+
2655{ #category : ' as yet unclassified' }
2756ExReqRepositoryReport >> createTracingPoints [
2857
@@ -61,6 +90,7 @@ ExReqRepositoryReport >> initialize [
6190
6291 super initialize.
6392 tracingPoints := OrderedCollection new .
93+ announcer := Announcer new
6494]
6595
6696{ #category : ' as yet unclassified' }
@@ -72,6 +102,7 @@ ExReqRepositoryReport >> installTracingPoints [
72102 each postconditionTracingPoint install ].
73103 self isInstalled: true .
74104 self isRunning: true .
105+ self annouceTracingPointInstalled
75106]
76107
77108{ #category : ' testing' }
@@ -93,7 +124,7 @@ ExReqRepositoryReport >> removeTracingPoints [
93124 each preconditionTracingPoint remove.
94125 each postconditionTracingPoint remove ].
95126 self isRunning: false .
96-
127+ self annouceTracingPointRemoved
97128]
98129
99130{ #category : ' accessing' }
0 commit comments