Examples of Decomposition


Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

  private void buildScaleForInnerElement(final Goal target,
      final Goal source, Composite parentComposite,
      final SelectedGoalsGraphBuilder builder,
      final CacheManager cacheManager) {

    final Decomposition decomposition = cacheManager
        .getDecompositionBetween(source, target);
    Composite composite = new Composite(parentComposite, SWT.NONE);
    composite.setLayout(new GridLayout(4, false));
    Label goalNameLabel = new Label(composite, SWT.NONE);
    goalNameLabel.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false,
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

    }

   
    for (final PrioritizedDecomposition priorizedDecomposition : cacheManager
        .getSelectedGoalsDecompositions()) {
      final Decomposition decomposition = cacheManager.getSelectedGoalsDecomposition(priorizedDecomposition);
     
      final GraphConnection connection = createConnection(decomposition);
     
     
      cacheManager.addCacheChangedListener( new ICacheChangedListener() {
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

    GraphNode destinationNode = ((GraphConnection)outgoingConnection).getDestination();
   
    Element destinationElement = getElementForNode((GSSElementGraphNode) destinationNode);
   
    Decomposition decomposition = cacheManager.getDecompositionBetween(sourceElement, destinationElement);
    cacheManager.markSelectedGoalDecompositionAsToRemove(decomposition);
   
    cacheManager.markSelectedGoalDecompositionAsToRemove(decomposition);
   
   
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

   * <!-- end-user-doc -->
   * @generated NOT
   */
  @Override
  public String getText(Object object) {
    Decomposition decomposition = ((PrioritizedDecomposition)object).getDecompostion();
    String label = "";
    if (decomposition != null ){
    Element source = decomposition.getSource();
    String sourceName = source == null ? "" : source.getName();
    Element target = decomposition.getTarget();
    String targetName = target == null ? "" : target.getName();
   
    label += "\"" + (sourceName == null || sourceName.isEmpty() && source != null ? source.eClass().getName() : sourceName) + "\" ";

    String weight = ((PrioritizedDecomposition)object).getWeight();
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

   
    Impact i1 = createImpact(gss, p1, g1, 100.0f);
    Impact i2 = createImpact(gss, si1, p2, 100.0f);
   
    isA isa1 = createIsA(gss, si2, si1);
    Decomposition d1 = createDecomposition(gss, p2, p1);
   
    applicableElementCache = new GSSQueryCache(queryResultSet, accessLayer);
    applicableElementCache.initCache();
 
   
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

   *            the target Element
   * @return the created Decomposition relation
   */
  protected Decomposition createDecomposition(GSS gss, Element source,
      Element target) {
    Decomposition decomposition = GSSFactory.eINSTANCE
        .createDecomposition();
    decomposition.setSource(source);
    decomposition.setTarget(target);
    gss.getRelations().add(decomposition);
    return decomposition;
  }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

      return;

    for (PrioritizedDecomposition prioritizedDecomposition : getPrioritizedElementSet()
        .getPriorizedDecompositionRelations()) {

      Decomposition decomposition = prioritizedDecomposition
          .getDecompostion();

      decompositionsMap.put(prioritizedDecomposition, decomposition);
      prioritizedDecompositionsMap.put(decomposition,
          prioritizedDecomposition);
      String prioritizedDecompositionWeightString = getAccessLayer()
          .getAttributeValue(prioritizedDecomposition, "weight");

      int prioprioritizedDecompositionWeight = prioritizedDecompositionWeightString != null ? Integer
          .parseInt(prioritizedDecompositionWeightString) : 0;

      prioritizedDecompositionWeightsMap.put(prioritizedDecomposition,
          prioprioritizedDecompositionWeight);

      Element source = decomposition.getSource();
      Element target = decomposition.getTarget();

      if (!sourcesMap.containsKey(source)) {
        sourcesMap.put(source,
            new ArrayList<PrioritizedDecomposition>());
      }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

  @Test
  public void testGetPriorizedDecomposition() {
    Goal goal = createGoal(gss, 1);
    Goal subgoal = createGoal(gss, 2);
    Decomposition decomposition = createDecomposition(gss, subgoal, goal);
    PrioritizedDecomposition priorizedDecomposition = createPriorizedDecomposition(gssQuery, decomposition, 100);
   
    createSelectedGoal(gssQuery, goal, 100);
    createSelectedGoal(gssQuery, subgoal, 100);
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

  @Test
  public void testGetDecomposition() {
    Goal goal = createGoal(gss, 1);
    Goal subgoal = createGoal(gss, 2);
    Decomposition decomposition = createDecomposition(gss, subgoal, goal);
    PrioritizedDecomposition priorizedDecomposition = createPriorizedDecomposition(gssQuery, decomposition, 100);
   
    createSelectedGoal(gssQuery, goal, 100);
    createSelectedGoal(gssQuery, subgoal, 100);
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Decomposition

    gss.getElements().add(p6);
    gss.getElements().add(si1);
    gss.getElements().add(si2);
   
   
    Decomposition decomposition1 = GSSFactory.eINSTANCE.createDecomposition();
    decomposition1.setSource(p2);
    decomposition1.setTarget(p1);
   
    Decomposition decomposition2 = GSSFactory.eINSTANCE.createDecomposition();
    decomposition2.setSource(p3);
    decomposition2.setTarget(p1);

    Decomposition decomposition3 = GSSFactory.eINSTANCE.createDecomposition();
    decomposition3.setSource(p3);
    decomposition3.setTarget(p4);

    Decomposition decomposition4 = GSSFactory.eINSTANCE.createDecomposition();
    decomposition4.setSource(p5);
    decomposition4.setTarget(p4);

    Decomposition decomposition5 = GSSFactory.eINSTANCE.createDecomposition();
    decomposition5.setSource(p6);
    decomposition5.setTarget(p4);

   
    Impact impact1 = GSSFactory.eINSTANCE.createImpact();
    impact1.setSource(p1);
    impact1.setTarget(g1);
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.