Package org.emftrace.metamodel.QUARCModel.GSS

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


    assertEquals(5, applicableElementCache.getRootElements().size());
  }

  @Test
  public void testGetApplicableElementsSet() {
    Goal g1 = createGoal(gss, 1);
    Goal g2 = createGoal(gss, 1);
    Goal g3 = createGoal(gss, 1);
    Goal g4 = createGoal(gss, 1);
   
    createDecomposition(gss, g2, g1);
    createDecomposition(gss, g3, g1);
   
    Principle p1 = createPrinciple(gss, 1);
View Full Code Here


    assertEquals(4, applicableElementCache.getApplicableElementsSet("Goal").size());
  }

  @Test
  public void testGetElementsSet() {
    Goal g1 = createGoal(gss, 1);
    Goal g2 = createGoal(gss, 1);
    Goal g3 = createGoal(gss, 1);
    Goal g4 = createGoal(gss, 1);
   
    createDecomposition(gss, g2, g1);
    createDecomposition(gss, g3, g1);
   
    Principle p1 = createPrinciple(gss, 1);
View Full Code Here

    assertEquals(4, applicableElementCache.getElementsSet("Goal").size());
  }

  @Test
  public void testGetIncomingImpactRelationsApplicableElement() {
    Goal g1 = createGoal(gss, 1);
    Goal g2 = createGoal(gss, 1);
    Goal g3 = createGoal(gss, 1);
    Goal g4 = createGoal(gss, 1);
   
    createDecomposition(gss, g2, g1);
    createDecomposition(gss, g3, g1);
   
    Principle p1 = createPrinciple(gss, 1);
View Full Code Here

    assertEquals(0, applicableElementCache.getIncomingImpactRelations(applicableElementCache.getApplicableElement(si4)).size());
  }

  @Test
  public void testGetIncomingImpactRelationsElement() {
    Goal g1 = createGoal(gss, 1);
    Goal g2 = createGoal(gss, 1);
    Goal g3 = createGoal(gss, 1);
    Goal g4 = createGoal(gss, 1);
   
    createDecomposition(gss, g2, g1);
    createDecomposition(gss, g3, g1);
   
    Principle p1 = createPrinciple(gss, 1);
View Full Code Here

    assertEquals(0, applicableElementCache.getIncomingImpactRelations(si4).size());
  }

  @Test
  public void testGetApplicableElement() {
    Goal g1 = createGoal(gss, 1);
   
    executeRequiredPhases();
   
    Goal g2 = createGoal(gss, 2);
   
    assertEquals(g1, applicableElementCache.getApplicableElement(g1).getElement());
    assertEquals(null, applicableElementCache.getApplicableElement(g2));
  }
View Full Code Here

    assertEquals(null, applicableElementCache.getApplicableElement(g2));
  }

  @Test
  public void testGetElement() {
    Goal g1 = createGoal(gss, 1);
   
    executeRequiredPhases();
   
    ApplicableElement ag2 = QueryFactory.eINSTANCE.createApplicableElement();

    Goal g2 = createGoal(gss, 2);
    ag2.setElement(g2);
   
   
    assertEquals(g1, applicableElementCache.getElement(applicableElementCache.getApplicableElement(g1)));
    assertEquals(null, applicableElementCache.getElement(ag2));
View Full Code Here

    assertEquals(null, applicableElementCache.getElement(ag2));
  }

  @Test
  public void testGetOutgoingImpactRelationsApplicableElement() {
    Goal g1 = createGoal(gss, 1);
    Goal g2 = createGoal(gss, 1);
    Goal g3 = createGoal(gss, 1);
    Goal g4 = createGoal(gss, 1);
   
    createDecomposition(gss, g2, g1);
    createDecomposition(gss, g3, g1);
   
    Principle p1 = createPrinciple(gss, 1);
View Full Code Here

    assertEquals(1, applicableElementCache.getOutgoingImpactRelations(applicableElementCache.getApplicableElement(si4)).size());
  }

  @Test
  public void testGetOutgoingImpactRelationsElement() {
    Goal g1 = createGoal(gss, 1);
    Goal g2 = createGoal(gss, 1);
    Goal g3 = createGoal(gss, 1);
    Goal g4 = createGoal(gss, 1);
   
    createDecomposition(gss, g2, g1);
    createDecomposition(gss, g3, g1);
   
    Principle p1 = createPrinciple(gss, 1);
View Full Code Here

    assertEquals(1, applicableElementCache.getOutgoingImpactRelations(si4).size());
  }

  @Test
  public void testGetOutgoingOffsetRelationsApplicableElement() {
    Goal g1 = createGoal(gss, 1);
    Goal g2 = createGoal(gss, 1);
    Goal g3 = createGoal(gss, 1);
    Goal g4 = createGoal(gss, 1);
   
    createDecomposition(gss, g2, g1);
    createDecomposition(gss, g3, g1);
   
    Principle p1 = createPrinciple(gss, 1);
View Full Code Here

    assertEquals(1, applicableElementCache.getOutgoingOffsetRelations(applicableElementCache.getApplicableElement(si4)).size());
  }

  @Test
  public void testGetOutgoingOffsetRelationsElement() {
    Goal g1 = createGoal(gss, 1);
    Goal g2 = createGoal(gss, 1);
    Goal g3 = createGoal(gss, 1);
    Goal g4 = createGoal(gss, 1);
   
    createDecomposition(gss, g2, g1);
    createDecomposition(gss, g3, g1);
   
    Principle p1 = createPrinciple(gss, 1);
View Full Code Here

TOP

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

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.