Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.CompositeType


      }
      return;
  }

  String compoTypeName = args[0];
  CompositeType compo = apam.getCompositeType(compoTypeName);
  if (compoTypeName == null) {
      out.println("No such compositeType : " + compoTypeName);
      return;
  }
  printCompositeType(out, compo, "");
View Full Code Here


      out.println("\n");
  }
    }

    private void dumpCompoType(PrintWriter out, String name) {
  CompositeType compType = apam.getCompositeType(name);
  if (compType == null) {
      out.println("No such application :" + name);
      return;
  }
  printCompositeType(out, compType, "");
View Full Code Here

    /* (non-Javadoc)
     * @see fr.imag.adele.apam.jmx.ApamJMX#put(java.lang.String, java.lang.String)
     */
    @Override
    public String put(String componentName, String compositeTarget) {
        CompositeType target = null;
        String text="";
        if ("root".equals(compositeTarget)) {
            text+=("\nResolving " + componentName + " on the root composite");
        } else {
            target = apam.getCompositeType(compositeTarget);
View Full Code Here

     */
    @Override
    public String launch(String componentName, String compositeTarget) {
        String text="";
        Composite target = null;
        CompositeType targetType = null;

        if ("root".equals(compositeTarget)) {
            text+=("\nResolving " + componentName + " on the root composite");
        } else {
            target = apam.getComposite(compositeTarget);
View Full Code Here

     * @see fr.imag.adele.apam.jmx.ApamJMX#compoType(java.lang.String)
     */
    @Override
    public String compoType(String name) {
        String text="";
        CompositeType compo = apam.getCompositeType(name);
        if (name == null) {
            text+=("\nNo such composite : " + name);
            return text;
        }
        return text+="\n"+printCompositeType(compo, "");
View Full Code Here

        return text;
    }

    private String dumpCompoType(String name) {
        String text="";
        CompositeType compType = apam.getCompositeType(name);
        if (compType == null) {
            text+=("\nNo such application :" + name);
            return text;
        }
        return text+="\n"+printCompositeType(compType, "");
View Full Code Here

      else if (Model.COMPOSITES.equals(key)) {
        // look for obr repositories in other composites
        String[] otherCompositesRepositories = configuration.getProperty(COMPOSITES).split("\\s+");

        for (String composite : otherCompositesRepositories) {
          CompositeType importedContext = obrManager.getApam().getCompositeType(composite);
          Model importedModel = importedContext != null ? obrManager.getModel(importedContext) : null;
          if (importedContext != null && importedModel != null) {
            repositories.addAll(importedModel.getRepositoryLocations());
          } else {
            // If the compositeType is not present, do nothing
View Full Code Here

     * instance (and the component must be visible in its enclosing composite type), or
     * directly the composite type that must be used as context.
     *
     */
    Component source    = relation.getLinkSource();
    CompositeType context   = null;
   
    if (relation.isRelation()) {
     
      switch (relation.getRelationDefinition().getSourceKind()) {
      case INSTANCE:
View Full Code Here


  @Override
  public synchronized void setInitialConfig(URL modelLocation) throws IOException {
   
    CompositeType compositeType = CompositeTypeImpl.getRootCompositeType();
    Model model = Model.loadRootModel(this,m_context,modelLocation);
    obrManagers.put(compositeType, new OBRManager(this, compositeType, model));
  }
View Full Code Here

  @Override
  public Set<String> getCompositeRepositories(String compositeName) {
    Set<String> result = new HashSet<String>();
   
    CompositeType context = !compositeName.equals("root") ?
        apam.getCompositeType(compositeName) :
        CompositeTypeImpl.getRootCompositeType();
       
    if (context == null)
      return result;
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.CompositeType

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.