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

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


    for (Entry<PrioritizedElement, Float> entry : prioritizedElementWeightsMap
        .entrySet()) {
      String oldValue = entry.getKey().getGlobalPriority();
      String formatedNewValue = String.valueOf(entry.getValue());
      if (oldValue == null || !oldValue.equals(formatedNewValue))
        new UpdatePrioritizedElementPriorityCommand(
            (PrioritizedElementSet) entry.getKey().eContainer(),
            entry.getKey(), formatedNewValue).run();
    }
  }
View Full Code Here


    Goal g3 = createGoal(gss, 3);
    PrioritizedElement sg3 =  createSelectedGoal(gssQuery, g3, 10);


   
    new UpdatePrioritizedElementPriorityCommand(gssQuery.getSelectedGoalsSet(), sg1, "60" ).runWithoutUnicaseCommand();
   

    assertEquals(3, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
    assertEquals(0, gssQuery.getSelectedGoalsSet().getPriorizedDecompositionRelations().size());
    assertEquals("60", sg1.getGlobalPriority());
View Full Code Here

TOP

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

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.