-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Davide Conzon edited this page Mar 17, 2020
·
35 revisions
This project provides a serial of APIs used for the interaction of three main components (Simulation and Optimization Orchestrator, Optimization Tool and Simulation Manager) based on parameter optimization in the distributed architecture of the Simulation and Optimization Environment in the CPSWarm project.
All of these APIs are used to transfer messages between the components by integrating an XMPP client to connect with each other through the XMPP server to control the optimization progress, automatically publish their own presence status and backup the optimization status for optimization recovery. They can be divided into three main groups based on their functionalities.
- eu.cpswarm.optimization.messages
API | Description | Components involved | Type of communication | Data included |
---|---|---|---|---|
Message | Descritpion | Text text text | Text message. | Fields:
|
- eu.cpswarm.optimization.statuses
API | Description | Components involved | Type of communication | Data included |
---|---|---|---|---|
OptimizationStatusType | Emulation of the possible status of the optimization process. It’s a field of the OptimizationStatus API, but also a field of OptimizationTaskStatus API | Sent by a OT to the SOO through the OptimizationStatus message, or published by OT through its available presence when optimization status is changed | Text message. | Emulation:
|
OptimizationToolStatus | Used by OT to publish its Available presence together with its status(the serialized json string of this class instance) in case one running optimization status is changed | Published by the OT. It can be received by all components | Text message. | Fields:
|
OptimizationTaskStatus | Used by OT to record the info of each optimization process | Generated and integrated as a field in the OptimizationToolStatus by OT when publishing the OT presence status. | Text message. | Fields:
|
SOOStatus | Used by SOO to publish its Available presence together with its status (the serialized json string of this class instance) to indicate the current optimization info | Published by the SOO. It can be received by all components | Text message. | Fields:
|
SimulationManagerCapability | Used by SM to specify its capabilities, this info will be used by SOO to select the available SMs for the optimization. | Generated and integrated as a field in the SimulationManagerStatus message by SM. | Text message. | Fields:
|
SimulationManagerStatus | Used by the SM to publish its Available presence together with its status (the serialized json string of this class instance) to indicate its capability used by SOO when it starts up and if it’s configured which is useful for OT to recognize available SM. | Published by the SM, received by all components. | Text message. | Fields:
|
SimulationResult | Returns the result of a simulation performed for optimization. | Sent by a SM to the OT during optimization. | Text message. | Fields:
|
- eu.cpswarm.optimization.parameters
API | Description | Components involved | Type of communication | Data included |
---|---|---|---|---|
Message | Descritpion | Text text text | Text message. | Fields:
|
-
eu.cpswarm.optimization.messages
-
eu.cpswarm.optimization.statuses
- eu.cpswarm.optimization.parameters