Create Links model #6

Closed
opened 2024-04-09 16:06:43 +02:00 by pb · 1 comment
Owner

This class aims at reducing the current amount of code in ConsumeMxGraphModel that is 300 lines long.

The Link class must :

  • Represent ordered relations between two component in the WF : source and destination
  • Add the reference to the component's associated datacenter if needed OR raise an error if not associated with it
  • (?) Return the oriented and ordered graph given a list on links : find the last step to be executed and go back up to the first node(s)
This class aims at reducing the current amount of code in ConsumeMxGraphModel that is 300 lines long. The Link class must : - Represent ordered relations between two component in the WF : source and destination - Add the reference to the component's associated datacenter if needed OR raise an error if not associated with it - (?) Return the oriented and ordered graph given a list on links : find the last step to be executed and go back up to the first node(s)
Author
Owner

A link object is created with :

  • The objects it links : source and target
  • The ID of each object it links

If one the two object is a datacenter :

  • The attribute dclink becomes true
  • The datacenter becomes the target. Hence, a dc can never be the target then the source of a link, this chaining representing an interaction between components.

Added methods createLinks(), CheckLinks(), processLinkErrors(), isComponentSrc(), isComponentDst(), isLinkedToComputing() and isLinkedToDC() to models/workflow.go

A link object is created with : - The objects it links : source and target - The ID of each object it links If one the two object is a datacenter : - The attribute dclink becomes true - The datacenter becomes the target. Hence, a dc can never be the target then the source of a link, this chaining representing an interaction between components. Added methods createLinks(), CheckLinks(), processLinkErrors(), isComponentSrc(), isComponentDst(), isLinkedToComputing() and isLinkedToDC() to models/workflow.go
pb closed this issue 2024-04-16 17:57:49 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: core/deprecated-oc-catalog#6
No description provided.