Examples of DifferentFSMException


Examples of statechum.analysis.learning.TestFSMAlgo.DifferentFSMException

public class TestTransform322 {
  private final String relabelFSM = "A-a->B-a->C-b->B-c->B";
  /** Converts the existing checkM into its equivalent in version 322. */
  public static DifferentFSMException checkM(FSMStructure A, String Ainit, FSMStructure B, String Binit)
  {
    DifferentFSMException result = null;
    try {
      TestFSMAlgo.checkM(A, B, Ainit, Binit);
    } catch (DifferentFSMException e) {
      result = e;
    }
View Full Code Here

Examples of statechum.analysis.learning.TestFSMAlgo.DifferentFSMException

  }
 
  /** Converts the existing checkM into its equivalent in version 322. */
  public static DifferentFSMException checkM(FSMStructure A, FSMStructure B)
  {
    DifferentFSMException result = null;
    try {
      TestFSMAlgo.checkM(A, B, A.init, B.init);
    } catch (DifferentFSMException e) {
      result = e;
    }
View Full Code Here

Examples of statechum.analysis.learning.rpnicore.WMethod.DifferentFSMException

    fsm.pairscores.computePairCompatibilityScore_general(null,Arrays.asList(new StatePair[]{
        new StatePair(fsm.findVertex("I"),fsm.findVertex("A1")),new StatePair(fsm.findVertex("I"),fsm.findVertex("B1")),new StatePair(fsm.findVertex("I"),fsm.findVertex("C1"))
        }), verticesToMerge);
    LearnerGraph mergeOutcome =  MergeStates.mergeCollectionOfVertices(fsm, null, verticesToMerge);
    LearnerGraph expected = FsmParser.buildLearnerGraph("I-d->I-b->I-c->I / I-a->B2-b->B3-c->C1", "testPairCompatible_general_Eb",config,getLabelConverter());
    DifferentFSMException diffEx = WMethod.checkM(expected, mergeOutcome);
    if (diffEx != null)
      throw diffEx;
  }
View Full Code Here

Examples of statechum.analysis.learning.rpnicore.WMethod.DifferentFSMException

    fsm.pairscores.computePairCompatibilityScore_general(null,Arrays.asList(new StatePair[]{
        new StatePair(fsm.findVertex("I"),fsm.findVertex("A1")),new StatePair(fsm.findVertex("I"),fsm.findVertex("B1")),new StatePair(fsm.findVertex("I"),fsm.findVertex("C1"))
        }), verticesToMerge);
    LearnerGraph mergeOutcome =  MergeStates.mergeCollectionOfVertices(fsm, null, verticesToMerge);
    LearnerGraph expected = FsmParser.buildLearnerGraph("I-b->I-c->I / I-a->I", "testPairCompatible_general_Fb",config,getLabelConverter());
    DifferentFSMException diffEx = WMethod.checkM(expected, mergeOutcome);
    if (diffEx != null)
      throw diffEx;
  }
View Full Code Here

Examples of statechum.analysis.learning.rpnicore.WMethod.DifferentFSMException

    fsm.pairscores.computePairCompatibilityScore_general(null,Arrays.asList(new StatePair[]{
        new StatePair(fsm.findVertex("I"),fsm.findVertex("A1")),new StatePair(fsm.findVertex("I"),fsm.findVertex("B1")),new StatePair(fsm.findVertex("I"),fsm.findVertex("C1"))
        }), verticesToMerge);
    LearnerGraph mergeOutcome =  MergeStates.mergeCollectionOfVertices(fsm, null, verticesToMerge);
    LearnerGraph expected = FsmParser.buildLearnerGraph("I-d->I-b->I-c->I / I-a->B2-b->B3-c->C1 / I-e->B2", "testPairCompatible_general_Gb",config,getLabelConverter());
    DifferentFSMException diffEx = WMethod.checkM(expected, mergeOutcome);
    if (diffEx != null)
      throw diffEx;
  }
View Full Code Here

Examples of statechum.analysis.learning.rpnicore.WMethod.DifferentFSMException

    fsm.pairscores.computePairCompatibilityScore_general(null,Arrays.asList(new StatePair[]{
        new StatePair(fsm.findVertex("I"),fsm.findVertex("A1")),new StatePair(fsm.findVertex("I"),fsm.findVertex("B1")),new StatePair(fsm.findVertex("I"),fsm.findVertex("C1"))
        }), verticesToMerge);
    LearnerGraph mergeOutcome =  MergeStates.mergeCollectionOfVertices(fsm, null, verticesToMerge);
    LearnerGraph expected = FsmParser.buildLearnerGraph("I-b->I-c->I / I-a->I-d->I", "testPairCompatible_general_Hb",config,getLabelConverter());
    DifferentFSMException diffEx = WMethod.checkM(expected, mergeOutcome);
    if (diffEx != null)
      throw diffEx;
  }
View Full Code Here

Examples of statechum.analysis.learning.rpnicore.WMethod.DifferentFSMException

   */
  protected final boolean compareInDepth;

  protected void checkGraphEquality(LearnerGraph what, LearnerGraph with)
  {
    DifferentFSMException ex = null;
    if (compareInDepth)
    {
      //if (!what.equals(with))
      //  ex = new DifferentFSMException("machines differ");
      ex = WMethod.checkM_and_colours(what,with,VERTEX_COMPARISON_KIND.DEEP);
View Full Code Here

Examples of statechum.analysis.learning.rpnicore.WMethod.DifferentFSMException

  }

  /** Converts the existing checkM into its eqivalent in version 322. */
  public static DifferentFSMException checkM(LearnerGraph A, CmpVertex Ainit, LearnerGraph B, CmpVertex Binit)
  {
    DifferentFSMException result = null;
    try {
      WMethod.checkM(A, B, Ainit, Binit);
    } catch (DifferentFSMException e) {
      result = e;
    }
View Full Code Here

Examples of statechum.analysis.learning.rpnicore.WMethod.DifferentFSMException

  }
 
  /** Converts the existing checkM into its eqivalent in version 322. */
  public static DifferentFSMException checkM(LearnerGraph A, LearnerGraph B)
  {
    DifferentFSMException result = null;
    try {
      WMethod.checkM(A, B);
    } catch (DifferentFSMException e) {
      result = e;
    }
View Full Code Here

Examples of statechum.analysis.learning.rpnicore.WMethod.DifferentFSMException

    graph.config.setLearnerIdMode(Configuration.IDMode.POSITIVE_NEGATIVE);
    graph.paths.augmentPTA(minusStrings, false,true);

    final LearnerGraph expected = new LearnerGraph(mainConfiguration.copy());
    expected.getVertex(new LinkedList<Label>()).setAccept(false);
    DifferentFSMException result = WMethod.checkM(expected,graph);
    Assert.assertNull(result);
    checkDepthLabelling(graph);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.