Examples of ArchitectureElement


Examples of archmapper.main.model.architecture.ArchitectureElement

    ImplementableArchitectureElementMapping mapping = archMapping.getComponentOrConnectorMappingByName(componentOrConnectorName);
    if (mapping != null) {
      return mapping;
    }
   
    ArchitectureElement archElem = arch.getComponentOrConnectorByName(componentOrConnectorName);
    if (archElem == null) {
      return null;
    }
   
    // we have to create a new mapping
View Full Code Here

Examples of archmapper.main.model.architecture.ArchitectureElement

   * @return the type, or null, if the artifact definition has no type or
   *       an invalid type.
   */
  public ImplementationArtifactType getTypeOf(ImplementationArtifactDefinition artifactDefinition) {
    if (artifactDefinition.getType() != null) {
      ArchitectureElement archElem = arch.getComponentOrConnectorByName(artifactDefinition.getParent().getName());
      if (archElem != null) {
        ImplementableTypeMapping typeMapping = styleMapping.getImplementableTypeMapping(archElem.getStyleType());

        if (typeMapping != null) {
          return typeMapping.getImplementationArtifactType(artifactDefinition.getType());
        }
      }
View Full Code Here

Examples of archmapper.main.model.architecture.ArchitectureElement

    Configuration conf = getArchitecture(request);
    if (styleMapping == null || conf == null) {
      return;
    }
   
    ArchitectureElement archElem = getParentComponentOrConnector(request.getNode(), conf);
    if (archElem != null) {
      ImplementableTypeMapping typeMapping = styleMapping.getImplementableTypeMapping(archElem.getStyleType());
     
      if (typeMapping != null) {
        List<? extends ImplementationArtifactType> types = typeMapping.getClassTypes();
       
        if (artifactType.equals("interfaceDefinition")) {
View Full Code Here

Examples of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.ArchitectureElement

      //list of architectures
      return (Object[])m_EntityArchList.get(e.getName().toUpperCase()).toArray();
    }
    //architecture
    else if (parentElement instanceof ArchitectureElement) {
      ArchitectureElement arch = (ArchitectureElement) parentElement;
      Vector<VhdlOutlineElement> childInstantiations=new Vector<VhdlOutlineElement>();
      OutlineElement[] children= arch.getChildren();
      //return all the instantiations
      for(int i=0; i< children.length;i++){
        if (children[i] instanceof EntityInstElement) {
          //do not add recursive children
          EntityInstElement e = (EntityInstElement)children[i];
          if(e.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase())==false){
            childInstantiations.add(e);
          }
        }
        if (children[i] instanceof ComponentInstElement) {
          //do not add recursive children
          ComponentInstElement comp = (ComponentInstElement)children[i];
          if(comp.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase())==false){
            childInstantiations.add(comp);
          }         
        }
      }
      return (Object[]) childInstantiations.toArray();
View Full Code Here

Examples of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.ArchitectureElement

      //list of architectures
      return (archList.size() != 0);
    }
    //architecture
    else if (element instanceof ArchitectureElement) {
      ArchitectureElement arch = (ArchitectureElement) element;     
      OutlineElement[] children= arch.getChildren();     
      //return all the instantiations
      for(int i=0; i< children.length;i++){
        if (children[i] instanceof EntityInstElement) {
          EntityInstElement entityInst = (EntityInstElement)children[i];
          //if we hit one instantiation, we've got children
          //beware of recursive definitions
          if(entityInst.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase()) == false){
            return true;
          }
        }
        if (children[i] instanceof ComponentInstElement) {
          ComponentInstElement componentInst = (ComponentInstElement)children[i];
          //if we hit one instantiation, we've got children
          //beware of recursive definitions
          if(componentInst.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase()) == false){
            return true;
          }         
        }
      }
      return false;
View Full Code Here

Examples of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.ArchitectureElement

    //scan for architectures   
    topLevelElements = database.findTopLevelElements("");
    for (int i=0;i<topLevelElements.length;i++){
      //architectures
      if (topLevelElements[i] instanceof ArchitectureElement) {
        ArchitectureElement arch = (ArchitectureElement) topLevelElements[i];
        String archEntityName=arch.GetEntityName().toUpperCase();
        //if the entity name exists, get its list otherwise create a list
        if(m_EntityArchList.containsKey(archEntityName)){         
          archList=m_EntityArchList.get(archEntityName);
        }
        else{
View Full Code Here

Examples of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.ArchitectureElement

              }
            }
          }
          // jump to architecture
           if(elements[i] instanceof ArchitectureElement ){
             ArchitectureElement architureElement =(ArchitectureElement)elements[i];
             if(architureElement.GetEntityName().equalsIgnoreCase(selectionText)){
               editor.showElement(architureElement);
             }
           }
          
           if(elements[i] instanceof PackageDeclElement ){
View Full Code Here

Examples of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.ArchitectureElement

          if(children[i].getName().equalsIgnoreCase(name)){
            results.add(children[i]);
          }
        }
        if (currentElement instanceof ArchitectureElement) {
          ArchitectureElement arch = (ArchitectureElement) currentElement;
          entityName=arch.GetEntityName();
         
        }       
        currentElement=currentElement.getParent();
      }     
     
View Full Code Here

Examples of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.ArchitectureElement

            ((VhdlHierarchyProvider)(prov)).scanOutline(new VhdlDocument(editor.getHdlDocument().getProject(),outlineElement.getFile()));
            //VerilogPlugin.println("VhdlHierarchyProvider!!! "+ componenttype);
            if(componenttype.startsWith("componentInst#")) {
              componenttype = componenttype.substring(14);
              //VerilogPlugin.println("comptype: "+ componenttype);
              ArchitectureElement el = ((VhdlHierarchyProvider)(prov)).getArchElement(componenttype);
              if(el!=null) {
                //VerilogPlugin.println("showelement "+el);
                editor.showElement(el);
              }
            }
            if(componenttype.startsWith("entityInst#")) {
              EntityInstElement entityInst = (EntityInstElement)outlineElement;
             
              ArchitectureElement el = ((VhdlHierarchyProvider)(prov)).getArchElement(entityInst.GetEntityName());
              if(el!=null) {
                editor.showElement(el);
              }
            }
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.