Finding and registering the classes implementing the translation

Registered by Ton Ngo on 2014-06-27

The generator for HOT is designed as follows, in similar fashion to the Heat resources. Each TOSCA type has a separate translator class to implement the translation. They are derived from the HotResource class (hot_resource.py). They are kept in 2 designated directories, one for the base type and one for the custom type. This allows for new TOSCA node type to be added without changing the existing code base
In the current code, this set of classes is coded as a dictionary in tranlsate_node_template.py for expediency. This should be changed to a registry that checks for the 2 directories above for available translation classes when the translator is run.

Blueprint information

Status:
Not started
Approver:
Sahdev Zala
Priority:
Low
Drafter:
Ton Ngo
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Not started
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.