Package org.emftrace.metamodel.QUARCModel.GSS

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


  @Test
  public void test4() {

    // build graph for test case
    Goal g1 = createGoal(gss, 1);
    Principle p1 =createPrinciple(gss, 1);
    Pattern si1 = createPattern(gss, 1);
 
    createImpact(gss, si1, p1, 20);
    createImpact(gss, p1, g1, 20)
   
View Full Code Here


  @Test
  public void test5() {

    // build graph for test case
    Goal g1 = createGoal(gss, 1);
    Principle p1 =createPrinciple(gss, 1);
    Pattern si1 = createPattern(gss, 1);

    createOffset(gss, si1, g1, -1);

    createImpact(gss, si1, p1, 20);
View Full Code Here

  @Test
  public void test6() {

    // build graph for test case
    Goal g1 = createGoal(gss, 1);
    Principle p1 =createPrinciple(gss, 1);
    Pattern si1 = createPattern(gss, 1);

    createOffset(gss, si1, g1, -2);

    createImpact(gss, si1, p1, 20);
View Full Code Here

  public void test7() {

    // build graph for test case
    Goal g1 = createGoal(gss, 1);

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

    createOffset(gss, si1, g1, 2);

    createImpact(gss, si1, p1, 20);
View Full Code Here

  @Test
  public void testIsA1() {
    // build graph for test case
    Goal g1 = createGoal(gss, 1);

    Principle p1 =createPrinciple(gss, 1);
    Pattern si1 = createPattern(gss, 1);
    Pattern si2 = createPattern(gss, 2);
    Pattern si3 = createPattern(gss, 3);

    createOffset(gss, si1, g1, 2);
View Full Code Here

  @Test
  public void testIsA2() {
    // build graph for test case
    Goal g1 = createGoal(gss, 1);

    Principle p1 =createPrinciple(gss, 1);
    Pattern si1 = createPattern(gss, 1);
    Pattern si2 = createPattern(gss, 2);
    Pattern si3 = createPattern(gss, 3);

    createOffset(gss, si2, g1, 1);
View Full Code Here

    // build graph for test case
    Goal g1 = createGoal(gss, 1);
   
    Goal g2 = createGoal(gss, 1);

    Principle p1 = createPrinciple(gss, 1);

    Pattern si1 = createPattern(gss, 1);
   

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

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

    // build graph for test case
    Goal g1 = createGoal(gss, 1);
   
    Goal g2 = createGoal(gss, 1);

    Principle p1 = createPrinciple(gss, 1);

    Pattern si1 = createPattern(gss, 1);
   

    createImpact(gss, p1, g1, 80.0f);
View Full Code Here

    // build graph for test case
    Goal g1 = createGoal(gss, 1);
   
    Goal g2 = createGoal(gss, 1);

    Principle p1 = createPrinciple(gss, 1);

    Pattern si1 = createPattern(gss, 1);
   

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

TOP

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

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.