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

rinde.sim.pdptw.common.AddDepotEvent Maven / Gradle / Ivy

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

import rinde.sim.core.graph.Point;
import rinde.sim.core.model.pdp.PDPScenarioEvent;
import rinde.sim.scenario.TimedEvent;

/**
 * Event indicating that a depot can be created.
 * @author Rinde van Lon 
 */
public class AddDepotEvent extends TimedEvent {
  private static final long serialVersionUID = -7517322583609266323L;

  /**
   * The position where the depot is to be added.
   */
  public final Point position;

  /**
   * Create a new instance.
   * @param time The time at which the event is to be dispatched.
   * @param pPosition {@link #position}
   */
  public AddDepotEvent(long time, Point pPosition) {
    super(PDPScenarioEvent.ADD_DEPOT, time);
    position = pPosition;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy