All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rinde.sim.pdptw.generator.loc.LocationsGenerator Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package rinde.sim.pdptw.generator.loc;

import org.apache.commons.math3.random.RandomGenerator;

import rinde.sim.core.graph.Point;

import com.google.common.collect.ImmutableList;

/**
 * A locations generator generates locations for orders (aka tasks).
 * @author Rinde van Lon 
 */
public interface LocationsGenerator {
  /**
   * Should generate locations for the specified number of orders (aka tasks).
   * There should be enough locations for each order. Typically this is
   * predefined as a ratio, e.g. 1:2 in case origin and destination
   * is required for each order.
   * @param numOrders The number of orders for which a location is required.
   * @param rng The {@link RandomGenerator} which should be used for drawing
   *          random numbers.
   * @return A list of locations for the orders.
   */
  ImmutableList generate(int numOrders, RandomGenerator rng);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy