Package statechum.analysis.learning.rpnicore.PairScoreComputation

Examples of statechum.analysis.learning.rpnicore.PairScoreComputation.LabelVertexPair


    assertEquals("[ NULL, NULL ]", new StatePair(null,null).toString());
  }
 
  protected LabelVertexPair constructLabelVertexPair(String label,CmpVertex vertex)
  {
    return new LabelVertexPair(AbstractLearnerGraph.generateNewLabel(label, config), vertex);
  }
View Full Code Here


 
  @Test
  public final void testEqualityAndHashOfStringVertexPair()
  {
    StringVertex A=new StringVertex("A"), B=new StringVertex("B");
    LabelVertexPair sameA=constructLabelVertexPair("a",A), sameB=constructLabelVertexPair("a",A),
      differentPairA=constructLabelVertexPair("a",B),differentPairB=constructLabelVertexPair("c",A);
    equalityTestingHelper(sameA, sameB, differentPairA, differentPairB,true);
    Assert.assertEquals(0,sameA.compareTo(sameB));
    Assert.assertEquals(0,sameB.compareTo(sameA));
  }
View Full Code Here

  public void addFrom(CmpVertex vert,Collection<Entry<Label,CmpVertex>> from) throws IncompatibleStatesException
  {
    addState(vert);
    if (from != null)
      for(Entry<Label,CmpVertex> entry:from)
        outgoingTransitions.add(new LabelVertexPair(entry.getKey(),entry.getValue()));
  }
View Full Code Here

  {
    addState(vert);

    newOutgoingTransitions = new TreeSet<LabelVertexPair>();
    for(Entry<Label,CmpVertex> entry:from)
      newOutgoingTransitions.add(new LabelVertexPair(entry.getKey(),entry.getValue()));
  }
View Full Code Here

    assertTrue(p.compareTo(q)==0);
  }

  protected LabelVertexPair constructLabelVertexPair(String label,CmpVertex vertex)
  {
    return new LabelVertexPair(AbstractLearnerGraph.generateNewLabel(label, config), vertex);
  }
View Full Code Here

 
  @Test
  public final void testEqualityAndHashOfStringVertexPair()
  {
    StringVertex A=new StringVertex("A"), B=new StringVertex("B");
    LabelVertexPair sameA=constructLabelVertexPair("a",A), sameB=constructLabelVertexPair("a",A),
      differentPairA=constructLabelVertexPair("a",B),differentPairB=constructLabelVertexPair("c",A);
    equalityTestingHelper(sameA, sameB, differentPairA, differentPairB,true);
    Assert.assertEquals(0,sameA.compareTo(sameB));
    Assert.assertEquals(0,sameB.compareTo(sameA));
  }
View Full Code Here

  public void addFrom(CmpVertex vert,Collection<Entry<Label,CmpVertex>> from) throws IncompatibleStatesException
  {
    addState(vert);
    if (from != null)
      for(Entry<Label,CmpVertex> entry:from)
        outgoingTransitions.add(new LabelVertexPair(entry.getKey(),entry.getValue()));
  }
View Full Code Here

  {
    addState(vert);

    newOutgoingTransitions = new TreeSet<LabelVertexPair>();
    for(Entry<Label,CmpVertex> entry:from)
      newOutgoingTransitions.add(new LabelVertexPair(entry.getKey(),entry.getValue()));
  }
View Full Code Here

TOP

Related Classes of statechum.analysis.learning.rpnicore.PairScoreComputation.LabelVertexPair

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.