Package statechum.xmachine.model.testset.PTATestSequenceEngine

Examples of statechum.xmachine.model.testset.PTATestSequenceEngine.sequenceSet


  @Test
  public final void test_ign3() // long test sequence (which does not exist) which is rejected part-way
  {
    FSMStructure mach = WMethod.getGraphData(TestFSMAlgo.buildGraph("AM-a->AM-b->AM-c->AM","tmp graph"));
    PTATestSequenceEngine engine = new PTA_FSMStructure(mach);
    sequenceSet partialPTA = engine.new sequenceSet();partialPTA.setIdentity();
    partialPTA = partialPTA.cross(TestFSMAlgo.buildSet(new String[][] {
        new String[] {"a","b","b","c","c","d"},
      }));
    PTA_computePrecisionRecall precComputer = new PTA_computePrecisionRecall(fsm);
    precComputer.crossWith(engine);
    precComputer.crossWith(engine);
View Full Code Here


  }
 
  @Test
  public final void test_sequenceSet1()
  {
    sequenceSet seq = en.new sequenceSet();
    seq.crossWithSet(Arrays.asList(new String[] {"a"})); // appending anything to an empty sequence produces an empty sequence.
    vertifyPTA(en, new String[][] {
        new String[] {}
    });
  }
View Full Code Here

  }
 
  @Test
  public final void test_sequenceSet2() // an input which exists
  {
    sequenceSet seq = en.new sequenceSet();seq.setIdentity();
    seq.crossWithSet(Arrays.asList(new String[] {"a"}));
    vertifyPTA(en, new String[][] {
        new String[] {"a"}
    });
  }
View Full Code Here

  }
 
  @Test
  public final void test_sequenceSet3() // the one which does not exist
  {
    sequenceSet seq = en.new sequenceSet();seq.setIdentity();
    seq.crossWithSet(Arrays.asList(new String[] {"c"}));
    vertifyPTA(en, new String[][] {
        new String[] {"c"}
    });
  }
View Full Code Here

  }
 
  @Test
  public final void test_sequenceSet4() // the one which enters a reject state
  {
    sequenceSet seq = en.new sequenceSet();seq.setIdentity();
    seq.crossWithSet(Arrays.asList(new String[] {"b"}));
    vertifyPTA(en, new String[][] {
        new String[] {"b"}
    });
  }
View Full Code Here

  }
 
  @Test
  public final void test_sequenceSet5() // a composition of sequenceSet with an input which exists
  {
    sequenceSet seq = en.new sequenceSet();seq.setIdentity();
    seq.crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}));
    vertifyPTA(en, new String[][] {
        new String[] {"a","a"}
    });
  }
View Full Code Here

  }
 
  @Test
  public final void test_sequenceSet6() // a composition of sequenceSet with the one which does not exist
  {
    sequenceSet seq = en.new sequenceSet();seq.setIdentity();
    seq.crossWithSet(Arrays.asList(new String[] {"c"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}));
    vertifyPTA(en, new String[][] {
        new String[] {"c"}
    });
  }
View Full Code Here

  }
 
  @Test
  public final void test_sequenceSet7() // a composition of sequenceSet with the one which enters a reject state
  {
    sequenceSet seq = en.new sequenceSet();seq.setIdentity();
    seq.crossWithSet(Arrays.asList(new String[] {"b"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}));
    vertifyPTA(en, new String[][] {
        new String[] {"b"}
    });
  }
View Full Code Here

  }
 
  @Test
  public final void test_sequenceSet_2_1() // a more complex composition
  {
    sequenceSet seq = en.new sequenceSet();seq.setIdentity();
    seq.crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"b"}))
      .crossWithSet(Arrays.asList(new String[] {"c"}));
    vertifyPTA(en, new String[][] {
View Full Code Here

  }

  @Test
  public final void test_sequenceSet2_2() // a more complex composition
  {
    sequenceSet seq = en.new sequenceSet();seq.setIdentity();
    seq.crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}))
      .crossWithSet(Arrays.asList(new String[] {"b"}))
      .crossWithSet(Arrays.asList(new String[] {"c"}))
      .crossWithSet(Arrays.asList(new String[] {"a"}));
View Full Code Here

TOP

Related Classes of statechum.xmachine.model.testset.PTATestSequenceEngine.sequenceSet

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.