コード例 #1
0
ファイル: ToscaProcessor.java プロジェクト: kiuby88/tomat
 private MatchingDictionary createRequirementIdsNodeTemplateIdsDictionary(
     List<AgnosticComponent> agnosticComponents) {
   MatchingDictionary dictionary = new MatchingDictionary();
   for (AgnosticComponent agnosticComponent : agnosticComponents)
     dictionary.addDictionaryEntrys(agnosticComponent.getRequirementsIds(), agnosticComponent);
   return dictionary;
 }
コード例 #2
0
ファイル: ToscaProcessor.java プロジェクト: kiuby88/tomat
 private AgnosticComponent buildAgnosticComponent(TNodeTemplate nodeTemplate)
     throws AgnosticPropertyException, NodeTemplateTypeNotSupportedException,
         TopologyTemplateFormatException {
   AgnosticComponent agnosticComponent =
       AgnosticComponentProvider.createAgnosticComponent(nodeTemplate);
   agnosticComponent.setAgnosticDeploymentArtifacts(getAgnosticDeploymentArtifacts(nodeTemplate));
   return agnosticComponent;
 }