Examples of addEvent()


Examples of pec.PEC.addEvent()

    /*Create a new PriorityQueue-PEC and fill it with a new
     *Mevent for each ant in the ant colony*/
    PEC pec = new PQPEC();
    for(int i=0;i<antColSize;i++){
      event = new Mevent(new Float(0), graph);
      pec.addEvent(event);
    }
   
    /*Create the observation Event and put it in the PEC*/
    event = new Observation();
    pec.addEvent(event);
View Full Code Here

Examples of pec.PQPEC.addEvent()

    /*Create a new PriorityQueue-PEC and fill it with a new
     *Mevent for each ant in the ant colony*/
    PEC pec = new PQPEC();
    for(int i=0;i<antColSize;i++){
      event = new Mevent(new Float(0), graph);
      pec.addEvent(event);
    }
   
    /*Create the observation Event and put it in the PEC*/
    event = new Observation();
    pec.addEvent(event);
View Full Code Here

Examples of rinde.sim.scenario.ScenarioBuilder.addEvent()

  public void testIO() {
    final ScenarioBuilder sb = new ScenarioBuilder(PDPScenarioEvent.ADD_DEPOT,
        PDPScenarioEvent.ADD_PARCEL, PDPScenarioEvent.ADD_VEHICLE,
        PDPScenarioEvent.TIME_OUT);

    sb.addEvent(new AddVehicleEvent(100, new VehicleDTO(new Point(7, 7), 7d, 2,
        new TimeWindow(0, 1000L))));
    sb.addEvent(new AddDepotEvent(76, new Point(3, 3)));
    sb.addEvent(new AddVehicleEvent(125, new VehicleDTO(new Point(6, 9), 3d, 1,
        new TimeWindow(500, 10000L))));
    sb.addEvent(new AddParcelEvent(ParcelDTO
View Full Code Here

Examples of voldemort.store.routed.Pipeline.addEvent()

                                                                                                                         routingStrategy,
                                                                                                                         aKey,
                                                                                                                         null);
        Pipeline pipeline = new Pipeline(Operation.GET, 10000, TimeUnit.MILLISECONDS);
        pipeline.addEventAction(Event.STARTED, action);
        pipeline.addEvent(Event.STARTED);
        pipeline.execute();

        if(pipelineData.getFatalError() != null)
            throw pipelineData.getFatalError();
View Full Code Here

Examples of voldemort.store.routed.Pipeline.addEvent()

                                                                                                                         routingStrategy,
                                                                                                                         aKey,
                                                                                                                         null);
        Pipeline pipeline = new Pipeline(Operation.GET, 10000, TimeUnit.MILLISECONDS);
        pipeline.addEventAction(Event.STARTED, action);
        pipeline.addEvent(Event.STARTED);
        pipeline.execute();

        if(pipelineData.getFatalError() != null)
            throw pipelineData.getFatalError();
        else
View Full Code Here

Examples of voldemort.store.routed.Pipeline.addEvent()

                                                                                          failureDetectorWithZones,
                                                                                          storeDef.getRequiredReads(),
                                                                                          routingStrategy,
                                                                                          aKey,
                                                                                          clusterWithZones.getZoneById(clusterZoneId)));
            pipeline.addEvent(Event.STARTED);
            pipeline.execute();

            List<Node> pipelineNodes = pipelineData.getNodes();
            int pipelineNodesIndex = 0;
            List<Integer> proximityList = clusterWithZones.getZoneById(clusterZoneId)
View Full Code Here

Examples of voldemort.store.routed.Pipeline.addEvent()

                                                                                          failureDetectorWithZones,
                                                                                          storeDef.getRequiredReads(),
                                                                                          routingStrategy,
                                                                                          aKey,
                                                                                          clusterWithZones.getZoneById(0)));
            pipeline.addEvent(Event.STARTED);
            pipeline.execute();

            // Check the first few nodes which are from different zones
            int zoneId = 1;
            for(int index = 0; index < zoneReq; index++) {
View Full Code Here

Examples of voldemort.store.routed.Pipeline.addEvent()

                                                               null,
                                                               null);

        Pipeline pipeline = new Pipeline(Operation.GET, 10000, TimeUnit.MILLISECONDS);
        pipeline.addEventAction(Event.STARTED, action);
        pipeline.addEvent(Event.STARTED);
        pipeline.execute();

        if(pipelineData.getFatalError() != null)
            throw pipelineData.getFatalError();
View Full Code Here

Examples of voldemort.store.routed.Pipeline.addEvent()

                                                               null,
                                                               null);

        Pipeline pipeline = new Pipeline(Operation.GET, 10000, TimeUnit.MILLISECONDS);
        pipeline.addEventAction(Event.STARTED, action);
        pipeline.addEvent(Event.STARTED);
        pipeline.execute();

        throw pipelineData.getFatalError();
    }
View Full Code Here

Examples of voldemort.store.routed.Pipeline.addEvent()

                                                                                                                                           1,
                                                                                                                                           routingStrategy,
                                                                                                                                           aKey);
        Pipeline pipeline = new Pipeline(Operation.GET, 10000, TimeUnit.MILLISECONDS);
        pipeline.addEventAction(Event.STARTED, action);
        pipeline.addEvent(Event.STARTED);
        pipeline.execute();

        if(pipelineData.getFatalError() != null)
            throw pipelineData.getFatalError();
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.