Package org.emftrace.metamodel.QUARCModel.GSS

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


   
    Goal g2 = createGoal(gss, 1);

    Principle p1 = createPrinciple(gss, 1);

    Pattern si1 = createPattern(gss, 1);
   

    createImpact(gss, p1, g1, 100.0f);
    createImpact(gss, p1, g2, -50.0f);
    createImpact(gss, si1, p1, 100.0f);
View Full Code Here


   * @param id
   *            an ID of the Pattern (used as name)
   * @return the created Pattern
   */
  protected Pattern createPattern(GSS gss, int id) {
    Pattern pattern = GSSFactory.eINSTANCE.createPattern();
    pattern.setName("Pattern " + id);
    gss.getElements().add(pattern);
    return pattern;
  }
View Full Code Here

   
    Goal g2 = createGoal(gss, 1);

    Principle p1 = createPrinciple(gss, 1);

    Pattern si1 = createPattern(gss, 1);
   

    createImpact(gss, p1, g1, 80.0f);
    createImpact(gss, p1, g2, 40.0f);
    createImpact(gss, si1, p1, 100.0f);
View Full Code Here

   
    Goal g2 = createGoal(gss, 1);

    Principle p1 = createPrinciple(gss, 1);

    Pattern si1 = createPattern(gss, 1);
   

    createImpact(gss, p1, g1, 100.0f);
    createImpact(gss, p1, g2, 100.0f);
    createImpact(gss, si1, p1, 100.0f);
View Full Code Here

    Principle p5 = GSSFactory.eINSTANCE.createPrinciple();
    testMatrix.setValue(si1, p5, 2.0f);
    assertEquals( 2.0f, testMatrix.getValue(si1, p5));
   
    // test for new row element
    Pattern si5 = GSSFactory.eINSTANCE.createPattern();
    testMatrix.setValue(si5, p1, 2.0f);
    assertEquals( 2.0f, testMatrix.getValue(si5, p1));
   
    // test for new row element & new column element
    Pattern si6 = GSSFactory.eINSTANCE.createPattern();
    Principle p6 = GSSFactory.eINSTANCE.createPrinciple();
    testMatrix.setValue(si6, p6, 2.0f);
    assertEquals( 2.0f, testMatrix.getValue(si6, p6));
   
    // stored value must be another instance
View Full Code Here

  @Test
  public void test() {
    // build graph for test case
    Goal g1 = createGoal(gss, 1);
    Principle p1 = createPrinciple(gss, 1);
    Pattern si1 = createPattern(gss, 1);
   
    createImpact(gss, p1, g1, 100.0f);
    createImpact(gss, si1, p1, 100.0f);
   
View Full Code Here

   
    Goal g2 = createGoal(gss, 1);

    Principle p1 = createPrinciple(gss, 1);

    Pattern si1 = createPattern(gss, 1);
   

    createImpact(gss, p1, g1, 100.0f);
    createImpact(gss, p1, g2, 100.0f);
    createImpact(gss, si1, p1, 100.0f);
View Full Code Here

  @Test
  public void testStoreRatingBetweenSolutionAndPrinciples() {
    // build graph for test case
    Goal g1 = createGoal(gss, 1);
    Principle p1 = createPrinciple(gss, 1);
    Pattern si1 = createPattern(gss, 1);
   
    createImpact(gss, p1, g1, 100.0f);
    createImpact(gss, si1, p1, 100.0f);
   
View Full Code Here

  @Test
  public void testStoreImpactBetweenGoalsAndPrinciples() {
    // build graph for test case
    Goal g1 = createGoal(gss, 1);
    Principle p1 = createPrinciple(gss, 1);
    Pattern si1 = createPattern(gss, 1);
   
    createImpact(gss, p1, g1, 100.0f);
    createImpact(gss, si1, p1, 100.0f);
   
View Full Code Here

 
    Goal g1 = createGoal(gss, 1);
   
    Principle p1 = createPrinciple(gss, 1);
   
    Pattern si1 = createPattern(gss, 1);

    createImpact(gss, p1, g1, 1);
    createImpact(gss, si1, p1, 1);
   
    executeRequiredPhases(true);
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.QUARCModel.GSS.Pattern

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.