Versions Compared

Key

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

...

PlantUML Macro
@startuml
participant CLAMP_GUI
participant CLAMP_Runtime
participant Participant
database Database

CLAMP_GUI -> CLAMP_Runtime: [REST] Read all versions of Control Loop Instance
CLAMP_Runtime -> Database: Read all versions of Control Loop Instance
CLAMP_Runtime -> CLAMP_GUI: [REST] All versions of Control Loop Instance returned
CLAMP_GUI -> CLAMP_GUI: Select version of Control Loop Instance for Instantiation Participants
CLAMP_GUI -> CLAMP_Runtime: [REST] Instantiate selected version of Control Loop Instance on Participants

alt Selected version of Control Loop Instance version not instantiated on Participants
  CLAMP_Runtime -> Database: Read version of Control Loop Type Instance Version
  CLAMP_Runtime -> Participants: [DMaaP] Update Participants with version of Control Loop Instance Version
  CLAMP_Runtime -> CLAMP_GUI: [REST] Instantiation of Version of Control Loop Instance version instantiation ordered on participants
else Selected version of Control Loop Instance version instantiated on Participants
  CLAMP_Runtime -> CLAMP_GUI: [REST] Version of Control Loop Instance already instantiated on participants 
end

== Participant Responses ==
Participants -> CLAMP_Runtime: [DMaaP] Result of UpdateInstantiation withof Control Loop Type Definition and values for Common Parametersversion of Control Loop Instance on participant
CLAMP_Runtime -> Database: Store result of Instantiation of version of Control Loop TypeInstance Definition Update on Participantparticipant

== Supervision ==
loop forever
  CLAMP_Runtime -> Database: Read Control Loop Type DefinitionsInstances
  loop over each Control Loop Type DefinitionInstance
    alt Control Loop Type DefinitionInstance Participant CommissionInstantiation underway
	  CLAMP_Runtime -> Database: read result of Control Loop Type DefinitionInstantiation Updates from Participant
      alt Updates completed on all participants
	    CLAMP_Runtime -> Database: set Control Loop Type DefinitionInstance as CommissionedInstantiated on Participants
      else Updates not completed
        alt CommissioningInstantiation of Control Loop Type DefinitionInstance on participants timed out
	      CLAMP_Runtime -> Database: set Control Loop TypeInstance Definition commissioningInstantiation as timed out on Participants
	      CLAMP_Runtime -> CLAMP_Runtime: Log error
        else Wait for updates to complete
        end
      end 
    else Control Loop Type DefinitionInstance Participant CommissionInstantiation not underway
    end
  end
@enduml

...