Package org.emftrace.metamodel.QUARCModel.GSS

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


    testMatrix.setColumnVector(si1, testColumnVectorSi1);
    testMatrix.setValue(si1, p1, 2.0f);
    assertEquals( 2.0f, testMatrix.getValue(si1, p1));
   
    // test for new column element
    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
    float value = 2.0f;
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

    // 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

  @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

  @Test
  public void testSimpleGraphWithAnythingToPrune() {
 
    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);
View Full Code Here

 
 

  @Test
  public void testSimpleGraphWithoutGoals() {
    Principle p1 = createPrinciple(gss, 1);
   
    Pattern si1 = createPattern(gss, 1);

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

  public void testPrunePrincipleWithoutRelationFromAnInstrument() {
   
   
    Goal g1 = createGoal(gss, 1);
   
    Principle p1 = createPrinciple(gss, 1);
    Principle p2 = createPrinciple(gss, 1);
   
    Pattern si1 = createPattern(gss, 1);

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

  public void testPrunePrincipleAndInstrumentsWithoutRelationsToGoals1() {
    //don't prune goals
   
    Goal g1 = createGoal(gss, 1);
   
    Principle p1 = createPrinciple(gss, 1);
   
    Pattern si1 = createPattern(gss, 1);

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

  public void testPrunePrincipleAndInstrumentsWithoutRelationsToGoals2() {
   
   
    Goal g1 = createGoal(gss, 1);
   
    Principle p1 = createPrinciple(gss, 1);
    Principle p2 = createPrinciple(gss, 2);
   
    Pattern si1 = createPattern(gss, 1);

    createImpact(gss, p1, g1, 1);
    createImpact(gss, si1, p1, 1);
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.