Package de.hpi.eworld.model.db.data.event

Examples of de.hpi.eworld.model.db.data.event.CircleLocationModel.addEdge()


    cl.setCenter(new GlobalPosition(3.0, 4.0));
    cl.setRadius(2.0);
    cl.setCirclePoint(new GlobalPosition(3.0, 2.0));
    List<EdgeModel> underlyingEdges = calculateUnderlyingEdges(3.0, 4.0, 2.0, Arrays.asList(e));
    for (EdgeModel underlyingEdge : underlyingEdges) {
      cl.addEdge(underlyingEdge);
    }
    ee[0] = new EnvironmentEventModel(EnvironmentEventModel.Type.Fog, 2, cl);
    ee[0].setStartTime(0);
    ee[0].setEndTime(5000);
View Full Code Here


    cl.setCenter(new GlobalPosition(3.0, 3.0));
    cl.setRadius(3.0);
    cl.setCirclePoint(new GlobalPosition(3.0, 2.0));
    underlyingEdges = calculateUnderlyingEdges(3.0, 3.0, 3.0, Arrays.asList(e));
    for (EdgeModel underlyingEdge : underlyingEdges) {
      cl.addEdge(underlyingEdge);
    }
    ee[1] = new EnvironmentEventModel(EnvironmentEventModel.Type.Rain, 2, cl);
    ee[1].setStartTime(100);
    ee[1].setEndTime(2000);
View Full Code Here

    startLocation.setCenter(new GlobalPosition(latitude, longitude));
    startLocation.setRadius(radius);

    List<EdgeModel> underlyingEdges = TestCaseUtil.calculateUnderlyingEdges(latitude, longitude, radius, edges);
    for (EdgeModel underlyingEdge : underlyingEdges) {
      startLocation.addEdge(underlyingEdge);
    }

    AreaModel area = new AreaModel(startLocation, AreaModel.AreaType.START);
    area.setSimulationTime(simulationTime);
    area.setVehicleCount(vehicleCount);
View Full Code Here

    destinationLocation.setCenter(new GlobalPosition(latitude, longitude));
    destinationLocation.setRadius(radius);

    List<EdgeModel> underlyingEdges = TestCaseUtil.calculateUnderlyingEdges(latitude, longitude, radius, edges);
    for (EdgeModel underlyingEdge : underlyingEdges) {
      destinationLocation.addEdge(underlyingEdge);
    }

    AreaModel area = new AreaModel(destinationLocation, AreaModel.AreaType.DESTINATION);
    area.setSimulationTime(simulationTime);
    area.setVehicleCount(vehicleCount);
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.