Package de.FeatureModellingTool.FeatureModel

Examples of de.FeatureModellingTool.FeatureModel.FeatureModel


        if (drawingViewContainer != null) {
          drawingViews = drawingViewContainer.getAllDrawingViews();
        } else {
          drawingViews = new DrawingView[0];
        }
        FeatureModel fm = (FeatureModel) featureModelNGObject
            .getInterface(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_INTERFACE);
        ConstraintModel cm = (ConstraintModel) featureModelNGObject
            .getInterface(de.FeatureModellingTool.FeatureModel.Manager.CONSTRAINT_MODEL_INTERFACE);
        InteractionModel im = (InteractionModel) featureModelNGObject
            .getInterface(de.FeatureModellingTool.FeatureModel.Manager.INTERACTION_MODEL_INTERFACE);
        // gh start
        CustomizationModel customizationModel = (CustomizationModel) featureModelNGObject
            .getInterface(de.FeatureModellingTool.FeatureModel.Manager.CUSTOMIZATION_MODEL_INTERFACE);
        // gh end
        String index = fm.getName();
        index += " " + drawingViews.length;
        for (int i = 0; i < drawingViews.length; i++) {
          index += " " + drawingViews[i].getDrawing().getTitle();
        }
        if (fileModel == null) {
View Full Code Here


            CustomizationVersionTreeNode cvtn = (CustomizationVersionTreeNode) getContext().getValue(INNER_SELECTEDNODE);
            if (cvtn == null || cvtn.getChildCount() > 0) {
                return;
            }

            FeatureModel fm = (FeatureModel) getContext().getValue("fm");
            FeatureEditor featureEditor = (FeatureEditor) getContext().getValue("fe");
            FeatureModelEditor fme = (FeatureModelEditor) getContext().getValue("fme");
            ConstraintModel cm = (ConstraintModel) getContext().getValue("cm");
            ConstraintModelEditor cme = (ConstraintModelEditor) getContext().getValue("cme");
            CompositeConstraintEditor cce = (CompositeConstraintEditor) getContext().getValue("cce");
View Full Code Here

        else
          drawingViews = new DrawingView[0];

        ByteArrayOutputStream bufferStream = new ByteArrayOutputStream();

        FeatureModel fm = (FeatureModel) featureModelNGObject
            .getInterface(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_INTERFACE);
        ConstraintModel cm = (ConstraintModel) featureModelNGObject
            .getInterface(de.FeatureModellingTool.FeatureModel.Manager.CONSTRAINT_MODEL_INTERFACE);
        InteractionModel im = (InteractionModel) featureModelNGObject
            .getInterface(de.FeatureModellingTool.FeatureModel.Manager.INTERACTION_MODEL_INTERFACE);
        // gh start
        CustomizationModel customizationModel = (CustomizationModel) featureModelNGObject
            .getInterface(de.FeatureModellingTool.FeatureModel.Manager.CUSTOMIZATION_MODEL_INTERFACE);
        // gh end

        // begin д����Ŀ�����ļ�
        StorableOutput textOutput = new StorableOutput(bufferStream);

        textOutput.writeString(fm.getName());
        textOutput.writeInt(drawingViews.length);
        for (int i = 0; i < drawingViews.length; i++) {
          textOutput.writeString(drawingViews[i].getDrawing()
              .getTitle());
        }
        textOutput.close();

        ZipEntry indexZipEntry = new ZipEntry("index.txt");
        zipOutStream.putNextEntry(indexZipEntry);
        bufferStream.writeTo(zipOutStream);
        zipOutStream.closeEntry();
        // end д����Ŀ�����ļ�

        bufferStream.reset();

        // begin д������ģ�������ļ�
        FmdlParser parser = new FmdlParserPrototype();
        parser.saveFmdl(bufferStream, fm);
        ZipEntry fmZipEntry = new ZipEntry(fm.getName() + ".fm");
        zipOutStream.putNextEntry(fmZipEntry);
        bufferStream.writeTo(zipOutStream);
        zipOutStream.closeEntry();
        // end д������ģ�������ļ�

        bufferStream.reset();

        // begin д��Լ��ģ�������ļ�
        parser.saveCmdl(bufferStream, cm, fm);
        ZipEntry cmZipEntry = new ZipEntry(fm.getName() + ".cm");
        zipOutStream.putNextEntry(cmZipEntry);
        bufferStream.writeTo(zipOutStream);
        zipOutStream.closeEntry();
        // end д��Լ��ģ�������ļ�

        bufferStream.reset();

        // begin д�뽻��ģ�������ļ�
        parser.saveImdl(bufferStream, im, fm);
        ZipEntry imZipEntry = new ZipEntry(fm.getName() + ".im");
        zipOutStream.putNextEntry(imZipEntry);
        bufferStream.writeTo(zipOutStream);
        zipOutStream.closeEntry();
        // end д�뽻��ģ�������ļ�
View Full Code Here

    @Override
    public String toString() {
  if (isVirtualRoot){
            String name = "";
           
            FeatureModel fm = getFeatureModel();
            if(fm != null){
                name = fm.getName();
            }
           
      return "FeatureModel: " + name;
        }
  else if (nodeType.equals(FeatureNode.NODE_TYPE_NORMAL))
View Full Code Here

  List<Feature> listFeature;
  if (isVirtualRoot) {
      listFeature =  FeatureModelHelper.getAllRoots(getFeatureModel(), getConstraintModel());     
  }
  else {
      FeatureModel featureModel = getFeatureModel();
      if (featureModel == null)
    listFeature = new ArrayList<Feature>();
      else
    listFeature = getFeatureModel().getChildrenFeatureByComposition(feature.getID());     
  }
View Full Code Here

  List<Feature> listFeature;
  if (isVirtualRoot) {
      listFeature =  FeatureModelHelper.getAllRoots(getFeatureModel(), getConstraintModel());     
  }
  else {
      FeatureModel featureModel = getFeatureModel();
      if (featureModel == null)
    listFeature = new ArrayList<Feature>();
      else
    listFeature = getFeatureModel().getChildrenFeatureByCharacterization(feature.getID());     
  }
View Full Code Here

      if(drawingViewContainer!=null){
        drawingViews = drawingViewContainer.getAllDrawingViews();
      }else{
        drawingViews = new DrawingView[0];
      }
      FeatureModel fm = (FeatureModel) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_INTERFACE);
            ConstraintModel cm = (ConstraintModel) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.CONSTRAINT_MODEL_INTERFACE);
            InteractionModel im = (InteractionModel) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.INTERACTION_MODEL_INTERFACE);
            //gh start
            CustomizationModel customizationModel = (CustomizationModel) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.CUSTOMIZATION_MODEL_INTERFACE);
            //gh end
            String index =  fm.getName();
            index += " "+drawingViews.length;
            for(int i = 0 ;i<drawingViews.length ;i++){
              index += " " + drawingViews[i].getDrawing().getTitle();
            }
            if(fileModel == null){
View Full Code Here

    @Override
    public String toString() {
  if (isVirtualRoot){
            String name = "";
           
            FeatureModel fm = getFeatureModel();
            if(fm != null){
                name = fm.getName();
            }
           
      return "FM: " + name;
        }
  else if (nodeType.equals(FeatureNode.NODE_TYPE_NORMAL))
View Full Code Here

  List<Feature> listFeature;
  if (isVirtualRoot) {
      listFeature =  FeatureModelHelper.getAllRoots(getFeatureModel(), getConstraintModel());     
  }
  else {
      FeatureModel featureModel = getFeatureModel();
      if (featureModel == null)
    listFeature = new ArrayList<Feature>();
      else
    listFeature = getFeatureModel().getChildrenFeatureByComposition(feature.getID());     
  }
View Full Code Here

  List<Feature> listFeature;
  if (isVirtualRoot) {
      listFeature =  FeatureModelHelper.getAllRoots(getFeatureModel(), getConstraintModel());     
  }
  else {
      FeatureModel featureModel = getFeatureModel();
      if (featureModel == null)
    listFeature = new ArrayList<Feature>();
      else
    listFeature = getFeatureModel().getChildrenFeatureByCharacterization(feature.getID());     
  }
View Full Code Here

TOP

Related Classes of de.FeatureModellingTool.FeatureModel.FeatureModel

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.