Package org.emftrace.quarc.core.commands.prioritizedelementsset

Examples of org.emftrace.quarc.core.commands.prioritizedelementsset.UpdatePrioritizedDecompositionWeightCommand


    for (Entry<PrioritizedDecomposition, Integer> entry : prioritizedDecompositionWeightsMap
        .entrySet()) {
      String oldValue = entry.getKey().getWeight();
      String formatedNewValue = String.valueOf(entry.getValue());
      if (oldValue == null || !oldValue.equals(formatedNewValue))
        new UpdatePrioritizedDecompositionWeightCommand(
            (PrioritizedElementSet) entry.getKey().eContainer(),
            entry.getKey(), formatedNewValue).run();
    }

    for (Entry<PrioritizedElement, Float> entry : prioritizedElementWeightsMap
View Full Code Here


    createSelectedGoal(gssQuery, g1, 0);
    createSelectedGoal(gssQuery, g2, 0);
   
    PrioritizedDecomposition priorizedDecomposition =  createPriorizedDecomposition(gssQuery, d1, 0);

    new UpdatePrioritizedDecompositionWeightCommand(gssQuery.getSelectedGoalsSet(),priorizedDecomposition, "10").runWithoutUnicaseCommand();
   
    assertEquals("10", priorizedDecomposition.getWeight());
    assertEquals(true,gssQuery.getSelectedGoalsSet().isChanged() );
   
  }
View Full Code Here

TOP

Related Classes of org.emftrace.quarc.core.commands.prioritizedelementsset.UpdatePrioritizedDecompositionWeightCommand

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.