Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PlantUML Macro
@startuml
participant CLAMP_Runtime
database Database

== Control Loop Instance Statistics ==

loop forever
  CLAMP_Runtime -> Database: Read Control Loop Instance Statistics
  CLAMP_Runtime -> CLAMP_Runtime: Summarise Control Loop Instance Statistics
  CLAMP_Runtime -> Database: Store summarised Control Loop Instance Statistics
  CLAMP_Runtime -> Database: Delete Control Loop Instance Statistics on which retention period has expired
end

== Participant Statistics ==

loop forever
  CLAMP_Runtime -> Database: Read Participant Statistics
  loop Over each Participant
    alt Participant has not reported in last reporting window
       CLAMP_Runtime -> CLAMP_Runtime: LogSummarise Participant as having missed a report
     Statistics
  CLAMP_Runtime -> Database: IncrementStore missedsummarised report counter on ParticipantParticipant Statistics
  CLAMP_Runtime -> Database:   altDelete Participant hasStatistics exceededon alarmwhich thresholdretention onperiod missedhas expired
end

@enduml

4. Supervision Dialogues

Supervision dialogues are used to check the state of Control Loop Instances and Participants.

4.1 Supervise Participants

PlantUML Macro
@startuml
participant CLAMP_Runtime
database Database

loop forever
  report counter
          CLAMP_Runtime -> CLAMP_Runtime: Raise a Participant Offline alarm on participant
          CLAMP_Runtime -> Database: Mark participant as being offline
       end
    else Participant has reported in last reporting windowRead Participant Statistics
  loop     CLAMP_Runtime -> Database: Clear missed report counter on Over each Participant
       alt Participant markedhas asnot beingreported offline
in last reporting window
       CLAMP_Runtime -> CLAMP_Runtime: ClearLog Participant as Offlinehaving alarmmissed ona participantreport
          CLAMP_Runtime -> Database: Increment Markmissed participantreport ascounter beingon onlineParticipant
       alt end
Participant has exceeded alarm end
threshold  end
end

@enduml

4. Supervision Dialogues

Supervision dialogues are used to check the state of Control Loop Instances and Participants.

4.1 Supervise Participants

PlantUML Macro
@startuml
participant CLAMP_Runtime
database Database

loop forever
  CLAMP_Runtime -> Database: Read Participants

on missed report counter
          CLAMP_Runtime -> CLAMP_Runtime: Raise Summarisea Participant ControlOffline Loopalarm Instanceon Statisticsparticipant
          CLAMP_Runtime -> Database: Store summarised Control Loop Instance Statistics
   Mark participant as being offline
       end
    else Participant has reported in last reporting window
       CLAMP_Runtime -> Database: Delete Control Loop Instance Statistics on which retention period has expired
end

== Participant Statistics ==

loop forever
  CLAMP_Runtime -> Database: Read Participant Statistics
 Clear missed report counter on Participant
       alt Participant marked as being offline
          CLAMP_Runtime -> CLAMP_Runtime: SummariseClear Participant Statistics
 Offline alarm on participant
          CLAMP_Runtime -> Database: Mark Storeparticipant summarisedas Participantbeing Statisticsonline
  CLAMP_Runtime -> Database: Delete Participant Statisticsend
 on which retention periodend
 has expiredend
end

@enduml