Package org.woped.qualanalysis.soundness.marking

Examples of org.woped.qualanalysis.soundness.marking.IMarkingNet


        }
    }

    public LowLevelNetTest() {
        LowLevelPetriNet lolNet;
        IMarkingNet markingNet;

        lolNet = createNewLowLevelPetriNet();

        markingNet = new MarkingNet(lolNet);
View Full Code Here


        testTarjan();
    }

    private void test() {
        long time;
        IMarkingNet mNetWithoutTStar;
        IMarkingNet mNetWithTStar;
        System.out.println();

        time = System.currentTimeMillis();
        mNetWithoutTStar = BuilderFactory.createMarkingNet(BuilderFactory.createLowLevelPetriNetWithoutTStarBuilder(
                editor).getLowLevelPetriNet());
View Full Code Here

        System.out.println();
    }

    private void testTarjan() {
        long time;
        IMarkingNet mNet;
        mNet = BuilderFactory.createMarkingNet(BuilderFactory.createLowLevelPetriNetWithTStarBuilder(editor)
                .getLowLevelPetriNet());
        IStronglyConnectedComponentTestGen<Marking> t = AlgorithmFactory.createSccTest(mNet);

        System.out.println("strongly connected components: ");
View Full Code Here

 
  @SuppressWarnings("unused")
  private double calculateTM(){
    double max = 0;
    ReachabilityGraphModelUsingMarkingNet reach = new ReachabilityGraphModelUsingMarkingNet(editor);
    IMarkingNet net = reach.getMarkingNet();
    Set<Marking> markings = net.getMarkings();
    for(Marking mark:markings){
      Map<String, Integer> markingMap = mark.getMarking();
      for(boolean infinite: mark.getPlaceUnlimited())
        if(infinite) return Double.POSITIVE_INFINITY;
      for(String id:markingMap.keySet())
View Full Code Here

  }
 
  @SuppressWarnings("unused")
  private double calculateCM(){
    ReachabilityGraphModelUsingMarkingNet reach = new ReachabilityGraphModelUsingMarkingNet(editor);
    IMarkingNet net = reach.getMarkingNet();
    ReachabilityJGraph graph = reach.getGraph();
    return AbstractReachabilityGraphModel.edgeCount(graph)-AbstractReachabilityGraphModel.verticeCount(graph)+calculateStrongReaches(net);
  }
View Full Code Here

TOP

Related Classes of org.woped.qualanalysis.soundness.marking.IMarkingNet

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.