-
Notifications
You must be signed in to change notification settings - Fork 3
/
InterventionTeams.kt
40 lines (32 loc) · 1.37 KB
/
InterventionTeams.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package uk.gov.justice.hmpps.architecture
import com.structurizr.model.Model
import com.structurizr.model.Person
import com.structurizr.view.ViewSet
class InterventionTeams private constructor() {
companion object : HMPPSSoftwareSystem {
lateinit var interventionServicesTeam: Person
lateinit var npsTreatmentManager: Person
lateinit var contractManagerForCRC: Person
lateinit var crcTreatmentManager: Person
lateinit var crcProgrammeManager: Person
override fun defineModelEntities(model: Model) {
interventionServicesTeam = model.addPerson(
"Intervention Services Team",
"They accredit intervention programmes and do business development of the interventions"
)
npsTreatmentManager = model.addPerson("NPS treatment manager")
contractManagerForCRC = model.addPerson("Contract Manager for CRCs")
crcTreatmentManager = model.addPerson("CRC treatment manager")
.apply { Tags.PROVIDER.addTo(this) }
crcProgrammeManager = model.addPerson(
"CRC programme manager",
"People who provide interventions on behalf of Community Rehabilitation Companies"
).apply { Tags.PROVIDER.addTo(this) }
crcProgrammeManager.interactsWith(contractManagerForCRC, "sends rate card brochure to")
}
override fun defineRelationships() {
}
override fun defineViews(views: ViewSet) {
}
}
}