Package fr.imag.adele.apam.declarations

Examples of fr.imag.adele.apam.declarations.CompositeDeclaration


   *
   */
  private static class SystemRootImplementation extends BaseApformComponent<CompositeType, ImplementationDeclaration> implements ApformImplementation {

    public SystemRootImplementation(String name) {
      super(new CompositeDeclaration(name, null, new ImplementationReference<ImplementationDeclaration>("Root Main Implem")));
    }
View Full Code Here


                        componentDescription.addAttribute(new Attribute("specification",implementation.getSpecification().getName()));
                    }
                }

                if (declaration instanceof CompositeDeclaration) {
                    CompositeDeclaration composite = (CompositeDeclaration) declaration;
                    if (composite.getSpecification() != null && composite.getMainComponent() != null) {
                        componentDescription.addAttribute(new Attribute("main",composite.getMainComponent().getName()));
                    }
                }

                if (declaration instanceof InstanceDeclaration) {
                    InstanceDeclaration instance = (InstanceDeclaration) declaration;
View Full Code Here

        String  versionRange                     = parseString(name, element, ATT_REQUIRE_VERSION, false);
        VersionedReference<SpecificationDeclaration> specificationVersion  = specification != null ? VersionedReference.range(specification,versionRange) : null;
   
        ComponentReference<?> implementation   = parseAnyComponentReference(name, element, ATT_MAIN_IMPLEMENTATION, false);

        CompositeDeclaration declaration = new CompositeDeclaration(name, specificationVersion, implementation);

        parseComponent(element, declaration);
    parseCompositeContent(element, declaration);

    return declaration;
View Full Code Here

              String range                         = property(CST.REQUIRE_VERSION);
              VersionedReference<SpecificationDeclaration> specificationVersion  = specification != null ? VersionedReference.range(specification,range) : null;

              ComponentReference<?> main = reference(CST.APAM_MAIN_COMPONENT,ComponentKind.COMPONENT);

              component = new CompositeDeclaration(componentName,specificationVersion,main);
            }
            else {

              SpecificationReference specification            = reference(CST.PROVIDE_SPECIFICATION, ComponentKind.SPECIFICATION);
              String range                         = property(CST.REQUIRE_VERSION);
View Full Code Here

     */
    private int numInstances;

    public ApamOnlyCompositeType(String name, String specificationName, String mainName, Set<ManagerModel> models, Map<String, String> properties) {

      super(new CompositeDeclaration(name, specificationName != null && !specificationName.trim().isEmpty() ? VersionedReference.any(new SpecificationReference(specificationName)) : null, new ComponentReference<ComponentDeclaration>(mainName)));
     
      if (properties != null) {
        declaration.getProperties().putAll(properties);
      }

View Full Code Here

        }

    if (component instanceof CompositeDeclaration) {
      property(CST.APAM_COMPOSITE,flag(true));

      CompositeDeclaration composite = (CompositeDeclaration) component;
      if (composite.getMainComponent() != null) {
        property(CST.APAM_MAIN_COMPONENT, composite.getMainComponent().getName());
      }
    }

    /*
     * Predefined properties
View Full Code Here

    public ApamMachineFactoryImpl(BundleContext context) {

  my_context = context;

  // create my unique declaration
  declaration = new CompositeDeclaration(PROP_MY_NAME, null, null);
  declaration.setInstantiable(false);
    }
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.declarations.CompositeDeclaration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.