Examples of simulate()


Examples of org.jbpm.simulation.ActivitySimulator.simulate()

    public void internalTrigger(NodeInstance from, String type) {
       
        SimulationContext context = SimulationContext.getContext();
      
        ActivitySimulator simulator = context.getRegistry().getSimulator(getNode());
        SimulationEvent event = simulator.simulate(this, context);
       
        context.getRepository().storeEvent(event);
        long thisNodeCurrentTime = context.getClock().getCurrentTime();
       
        List<Connection> outgoing = getNode().getOutgoingConnections().get(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE);
View Full Code Here

Examples of org.jbpm.simulation.ActivitySimulator.simulate()

    @Override
    public void internalTrigger(NodeInstance from, String type) {
        SimulationContext context = SimulationContext.getContext();
       
        ActivitySimulator simulator = context.getRegistry().getSimulator(getNode());
        SimulationEvent event = simulator.simulate(this, context);
       
        context.getRepository().storeEvent(event);

        // process event definitions if any
        Map<String, String> throwEvents = context.getCurrentPath().getThrowEvents();
View Full Code Here

Examples of org.jbpm.simulation.ActivitySimulator.simulate()

        Join joinNode = (Join) getNode();

        SimulationContext context = SimulationContext.getContext();

        ActivitySimulator simulator = context.getRegistry().getSimulator(getNode());
        SimulationEvent event = simulator.simulate(this, context);

        context.getRepository().storeEvent(event);
        long thisNodeCurrentTime = context.getClock().getCurrentTime();
        boolean processOutgoing = true;
        if (joinNode.getType() == Join.TYPE_AND) {
View Full Code Here

Examples of org.sgx.yuigwt.yui.node.Node.simulate()

      public void call(YuiEvent e) {
        Window.alert("keydown simulate keycode is "+e.keyCode());
      }
    });
   
    el1.simulate("click", YuiEvent.create().altlKey(true).clientX(22).clientY(23));
    el1.simulate("keydown", YuiEvent.create().keyCode(97));
   
  }
});
}
View Full Code Here

Examples of org.sgx.yuigwt.yui.node.Node.simulate()

        Window.alert("keydown simulate keycode is "+e.keyCode());
      }
    });
   
    el1.simulate("click", YuiEvent.create().altlKey(true).clientX(22).clientY(23));
    el1.simulate("keydown", YuiEvent.create().keyCode(97));
   
  }
});
}
View Full Code Here

Examples of rinde.sim.pdptw.common.DynamicPDPTWProblem.simulate()

    // enable the default UI
    problem.enableUI();

    // start the simulation
    problem.simulate();

    // simulation is done, lets print the statistics!
    System.out.println(problem.getStatistics());
  }
}
View Full Code Here

Examples of rinde.sim.pdptw.common.DynamicPDPTWProblem.simulate()

            e.printStackTrace();
            throw new RuntimeException("This is the end, resistance is futile.");
          }
        }
      });
      problem.simulate();
    }
  }
}

/**
 
View Full Code Here

Examples of rinde.sim.pdptw.common.DynamicPDPTWProblem.simulate()

    @Override
    public SimulationResult call() {
      try {
        final DynamicPDPTWProblem prob = init(scenario, configuration, seed,
            showGui, uiCreator);
        final StatisticsDTO stats = prob.simulate();

        @Nullable
        Object data = null;
        if (postProcessor != null) {
          data = postProcessor.collectResults(prob.getSimulator());
View Full Code Here

Examples of rinde.sim.pdptw.common.DynamicPDPTWProblem.simulate()

      public boolean create(Simulator sim, AddVehicleEvent event) {
        return sim.register(new SimpleTruck(event.vehicleDTO,
            new ClosestParcelStrategy()));
      }
    });
    problem.simulate();
    return problem.getStatistics();
  }

  static Gendreau06Scenario create(int numVehicles, long endTime,
      AddParcelEvent... parcelEvents) {
View Full Code Here

Examples of zdenekdrahos.AI.Training.ITraining.simulate()

        final XYSeries series2 = new XYSeries("Prediction");

        SimulationIterator iterator;
        for (int i = 0; i < input.length; i++) {
            for (iterator = train.simulate(input[i]); iterator.hasNext();) {               
                series2.add(input[i][0], iterator.next());
            }
        }

        XYSeriesCollection collection = new XYSeriesCollection();
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.