Package org.woped.quantana.sim

Examples of org.woped.quantana.sim.SimNode


    unfoldedNet.clear();
    for(SimNode n: g.getNodes().values()){
      n.setJoinReached(false);
      n.setNumOfRuns(0);
    }   
    SimNode s = g.getSource();
    SimNode n = new SimNode(s.getid(), s.getname());
    n.settype(s.gettype());
    n.setTempRuns(l);
    s.incIteration();
    n.setIteration(s.getIteration());
    Key start = new Key(n.getid(), l);
    unfoldedNet.put(start, n);
    LinkedList<SimNodePair> queue = new LinkedList<SimNodePair>();
    queue.addLast(new SimNodePair(s, n));
    runThroughNet(queue);
  }
View Full Code Here


    if (!(q.isEmpty())) {
      SimNodePair np = q.removeFirst();   
      Iterator<SimArc> a =np.getFirst().getarcOut().iterator();
      while(a.hasNext()){
        SimArc aa = a.next();
        SimNode m = aa.getTarget();
        if (!m.isJoinReached()) {
          double val = aa.getProbability() * np.getSecond().getTempRuns();
          if (!(val < epsilon)) {
            SimNode y = new SimNode(m.getid(), m.getname());
            y.settype(m.gettype());
            y.setTempRuns(val);
            m.incIteration();
            y.setIteration(m.getIteration());
            if (m.isAndJoin())
              m.setJoinReached(true);                       
            np.getSecond().getarcOut().add(new SimArc(np.getSecond(), y, aa.getProbability()));
            Key k = new Key(m.getid(), val);
            unfoldedNet.put(k, y);
View Full Code Here

TOP

Related Classes of org.woped.quantana.sim.SimNode

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.