Package org.emftrace.metamodel.QUARCModel.GSS

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


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

    Offset offset = GSSFactory.eINSTANCE.createOffset();
    offset.setSource(si1);
    offset.setTarget(g1);
    offset.setValue(null);

    createImpact(gss, si1, p1, 20);
    createImpact(gss, p1, g1, 20)
   
    gss.getRelations().add(offset);
View Full Code Here


   *            the weight of the offset
   * @return the created Offset relation
   */
  protected Offset createOffset(GSS gss, Element source, Element target,
      float value) {
    Offset offset = GSSFactory.eINSTANCE.createOffset();
    offset.setSource(source);
    offset.setTarget(target);
    offset.setValue(String.valueOf(value));
    gss.getRelations().add(offset);
    return offset;
  }
View Full Code Here

  si1.setName("Principle 1");

  gss.getElements().add(g1);
  gss.getElements().add(si1);

  Offset offset = GSSFactory.eINSTANCE.createOffset();
  offset.setSource(si1);
  offset.setTarget(g1);
  offset.setValue("1");

  gss.getRelations().add(offset);


  // check result
View Full Code Here

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

  Pattern si1 = createPattern(gss, 1);
 
  Offset offset = GSSFactory.eINSTANCE.createOffset();
  offset.setSource(si1);
  offset.setTarget(g1);
  offset.setValue(null);

  gss.getRelations().add(offset);

  // execute required phases
  executeRequiredPhases();
View Full Code Here

TOP

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

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.