Package org.emftrace.metamodel.QUARCModel.GSS

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


  }


  @Test
  public void testGetAllIncomingRelationsApplicableElement() {
    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.getAllIncomingRelations(applicableElementCache.getApplicableElement(si4)).size());
  }

  @Test
  public void testGetAllOutgoingRelationsApplicableElement() {
    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(p1, applicableElementCache.getAllOutgoingRelations(applicableElementCache.getApplicableElement(si4)).get(0).getTarget());
  }

  @Test
  public void testGetAllIncomingRelationsElement() {
    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

  }


  @Test
  public void testGetAllOutgoingRelationsElement() {
    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(p1, applicableElementCache.getAllOutgoingRelations(si4).get(0).getTarget());
  }

  @Test
  public void testGetAllElements() {
    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(9, applicableElementCache.getAllElements().size());
  }

  @Test
  public void testGetAllApplicableElements() {
    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(9, applicableElementCache.getAllApplicableElements().size());
  }

  @Test
  public void testGetAllElementsInt() {
    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

    assertTrue( applicableElementCache.getAllElements(GSSLayer.layer4).contains(si4));
  }

  @Test
  public void testGetRootElementsInt() {
    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

    assertTrue( applicableElementCache.getRootElements(GSSLayer.layer4).contains(si4));
  }

  @Test
  public void testGetLeafElementsInt() {
    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

    assertTrue( applicableElementCache.getLeafElements(GSSLayer.layer4).contains(si4));
  }

  @Test
  public void testIsInnerNodeElement() {
    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);
    createDecomposition(gss, g4, g3);
   
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.