test_class.file: org.eclipse.winery.repository/src/test/java/org/eclipse/winery/repository/driverspecificationandinjection/DASpecificationTest.java
test_class.identifier: DASpecificationTest
test_class.superclass: extends TestWithGitBackedRepository
test_case.body: @Test
      public void getNodeTemplatesWithAbstractDAs() throws Exception {
          setRevisionTo("af529e513388dc9358a8f700757d8dc59aba3a55");
          ServiceTemplateId id = new ServiceTemplateId("http://winery.opentosca.org/test/servicetemplates/ponyuniverse/daspecifier", "DASpecificationTest", false);
          TTopologyTemplate topologyTemplate = this.repository.getElement(id).getTopologyTemplate();
          List<TNodeTemplate> nodeTemplateWithAbstractDA = new ArrayList<>();
          nodeTemplateWithAbstractDA.add(topologyTemplate.getNodeTemplate("shetland_pony"));
  
          List<TNodeTemplate> nodesWithAbstractDA = DASpecification.getNodeTemplatesWithAbstractDAs(topologyTemplate);
  
          assertEquals(nodeTemplateWithAbstractDA, nodesWithAbstractDA);
      }
test_case.class_method_signature: DASpecificationTest.getNodeTemplatesWithAbstractDAs()
test_case.full_signature: @Test public void getNodeTemplatesWithAbstractDAs()
test_case.identifier: getNodeTemplatesWithAbstractDAs
test_case.invocations: setRevisionTo getTopologyTemplate getElement add getNodeTemplate getNodeTemplatesWithAbstractDAs assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getNodeTemplatesWithAbstractDAs()
focal_class.file: org.eclipse.winery.repository/src/main/java/org/eclipse/winery/repository/driverspecificationandinjection/DASpecification.java
focal_class.identifier: DASpecification
focal_class.class_method_signature: DASpecification.getNodeTemplatesWithAbstractDAs(TTopologyTemplate topologyTemplate)
focal_class.full_signature: public static List<TNodeTemplate> getNodeTemplatesWithAbstractDAs(TTopologyTemplate topologyTemplate)
focal_class.identifier: getNodeTemplatesWithAbstractDAs
focal_class.modifiers: public static
focal_class.parameters: (TTopologyTemplate topologyTemplate)
focal_class.return: List<TNodeTemplate>
focal_class.signature: List<TNodeTemplate> getNodeTemplatesWithAbstractDAs(TTopologyTemplate topologyTemplate)
focal_class.class_method_signature: DASpecification.getArtifactTypeOfDA(TDeploymentArtifact deploymentArtifact)
focal_class.full_signature: public static TArtifactType getArtifactTypeOfDA(TDeploymentArtifact deploymentArtifact)
focal_class.identifier: getArtifactTypeOfDA
focal_class.modifiers: public static
focal_class.parameters: (TDeploymentArtifact deploymentArtifact)
focal_class.return: TArtifactType
focal_class.signature: TArtifactType getArtifactTypeOfDA(TDeploymentArtifact deploymentArtifact)
focal_class.class_method_signature: DASpecification.getArtifactTypeHierarchy(TArtifactType artifactType)
focal_class.full_signature: public static List<TArtifactType> getArtifactTypeHierarchy(TArtifactType artifactType)
focal_class.identifier: getArtifactTypeHierarchy
focal_class.modifiers: public static
focal_class.parameters: (TArtifactType artifactType)
focal_class.return: List<TArtifactType>
focal_class.signature: List<TArtifactType> getArtifactTypeHierarchy(TArtifactType artifactType)
focal_class.class_method_signature: DASpecification.getNodesWithSuitableConcreteDAAndTheDirectlyConnectedNode(TNodeTemplate nodeTemplate, TDeploymentArtifact deploymentArtifact, TTopologyTemplate topologyTemplate)
focal_class.full_signature: public static Map<TRelationshipTemplate, TNodeTemplate> getNodesWithSuitableConcreteDAAndTheDirectlyConnectedNode(TNodeTemplate nodeTemplate, TDeploymentArtifact deploymentArtifact, TTopologyTemplate topologyTemplate)
focal_class.identifier: getNodesWithSuitableConcreteDAAndTheDirectlyConnectedNode
focal_class.modifiers: public static
focal_class.parameters: (TNodeTemplate nodeTemplate, TDeploymentArtifact deploymentArtifact, TTopologyTemplate topologyTemplate)
focal_class.return: Map<TRelationshipTemplate, TNodeTemplate>
focal_class.signature: Map<TRelationshipTemplate, TNodeTemplate> getNodesWithSuitableConcreteDAAndTheDirectlyConnectedNode(TNodeTemplate nodeTemplate, TDeploymentArtifact deploymentArtifact, TTopologyTemplate topologyTemplate)
focal_class.class_method_signature: DASpecification.getNodesWithSuitableConcreteDAs(TNodeTemplate nodeTemplate, TDeploymentArtifact deploymentArtifact, TTopologyTemplate topologyTemplate)
focal_class.full_signature: public static TNodeTemplate getNodesWithSuitableConcreteDAs(TNodeTemplate nodeTemplate, TDeploymentArtifact deploymentArtifact, TTopologyTemplate topologyTemplate)
focal_class.identifier: getNodesWithSuitableConcreteDAs
focal_class.modifiers: public static
focal_class.parameters: (TNodeTemplate nodeTemplate, TDeploymentArtifact deploymentArtifact, TTopologyTemplate topologyTemplate)
focal_class.return: TNodeTemplate
focal_class.signature: TNodeTemplate getNodesWithSuitableConcreteDAs(TNodeTemplate nodeTemplate, TDeploymentArtifact deploymentArtifact, TTopologyTemplate topologyTemplate)
focal_class.class_method_signature: DASpecification.getSuitableConcreteDA(TDeploymentArtifact abstractDeploymentArtifact, TNodeTemplate nodeTemplate)
focal_class.full_signature: public static TDeploymentArtifact getSuitableConcreteDA(TDeploymentArtifact abstractDeploymentArtifact, TNodeTemplate nodeTemplate)
focal_class.identifier: getSuitableConcreteDA
focal_class.modifiers: public static
focal_class.parameters: (TDeploymentArtifact abstractDeploymentArtifact, TNodeTemplate nodeTemplate)
focal_class.return: TDeploymentArtifact
focal_class.signature: TDeploymentArtifact getSuitableConcreteDA(TDeploymentArtifact abstractDeploymentArtifact, TNodeTemplate nodeTemplate)
focal_class.class_method_signature: DASpecification.getmatchingNodeTypeImplementations(QName nodeTypeQName)
focal_class.full_signature: private static List<TNodeTypeImplementation> getmatchingNodeTypeImplementations(QName nodeTypeQName)
focal_class.identifier: getmatchingNodeTypeImplementations
focal_class.modifiers: private static
focal_class.parameters: (QName nodeTypeQName)
focal_class.return: List<TNodeTypeImplementation>
focal_class.signature: List<TNodeTypeImplementation> getmatchingNodeTypeImplementations(QName nodeTypeQName)
focal_class.class_method_signature: DASpecification.getConcreteDA(TDeploymentArtifact abstractDeploymentArtifact, List<TDeploymentArtifact> candidates)
focal_class.full_signature: private static TDeploymentArtifact getConcreteDA(TDeploymentArtifact abstractDeploymentArtifact, List<TDeploymentArtifact> candidates)
focal_class.identifier: getConcreteDA
focal_class.modifiers: private static
focal_class.parameters: (TDeploymentArtifact abstractDeploymentArtifact, List<TDeploymentArtifact> candidates)
focal_class.return: TDeploymentArtifact
focal_class.signature: TDeploymentArtifact getConcreteDA(TDeploymentArtifact abstractDeploymentArtifact, List<TDeploymentArtifact> candidates)
focal_class.class_method_signature: DASpecification.getBasisRelationshipType(QName relationshipTypeQName)
focal_class.full_signature: private static TRelationshipType getBasisRelationshipType(QName relationshipTypeQName)
focal_class.identifier: getBasisRelationshipType
focal_class.modifiers: private static
focal_class.parameters: (QName relationshipTypeQName)
focal_class.return: TRelationshipType
focal_class.signature: TRelationshipType getBasisRelationshipType(QName relationshipTypeQName)
focal_method.body: public static List<TNodeTemplate> getNodeTemplatesWithAbstractDAs(TTopologyTemplate topologyTemplate) {
          List<TNodeTemplate> nodeTemplates = topologyTemplate.getNodeTemplates();
          List<TNodeTemplate> nodeTemplatesWithAbstractDA = nodeTemplates.stream()
              .filter(nt -> nt.getDeploymentArtifacts() != null)
              .filter(nt -> nt.getDeploymentArtifacts().getDeploymentArtifact().stream()
                  .anyMatch(da -> getArtifactTypeOfDA(da).getAbstract() == TBoolean.YES))
              .collect(Collectors.toList());
  
          return nodeTemplatesWithAbstractDA;
      }
focal_method.class_method_signature: DASpecification.getNodeTemplatesWithAbstractDAs(TTopologyTemplate topologyTemplate)
focal_method.full_signature: public static List<TNodeTemplate> getNodeTemplatesWithAbstractDAs(TTopologyTemplate topologyTemplate)
focal_method.identifier: getNodeTemplatesWithAbstractDAs
focal_method.invocations: getNodeTemplates collect filter filter stream getDeploymentArtifacts anyMatch stream getDeploymentArtifact getDeploymentArtifacts getAbstract getArtifactTypeOfDA toList
focal_method.modifiers: public static
focal_method.parameters: (TTopologyTemplate topologyTemplate)
focal_method.return: List<TNodeTemplate>
focal_method.signature: List<TNodeTemplate> getNodeTemplatesWithAbstractDAs(TTopologyTemplate topologyTemplate)