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

rinde.sim.pdptw.experiment.DefaultMASConfiguration Maven / Gradle / Ivy

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

import rinde.sim.core.model.Model;
import rinde.sim.pdptw.common.AddDepotEvent;
import rinde.sim.pdptw.common.AddParcelEvent;
import rinde.sim.pdptw.common.DynamicPDPTWProblem.Creator;
import rinde.sim.util.SupplierRng;

import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;

/**
 * Implementation of {@link MASConfiguration} which implements most method using
 * default values.
 * @author Rinde van Lon 
 */
public abstract class DefaultMASConfiguration implements MASConfiguration {

  @Override
  public ImmutableList>> getModels() {
    return ImmutableList.of();
  }

  @Override
  public Optional> getDepotCreator() {
    return Optional.absent();
  }

  @Override
  public Optional> getParcelCreator() {
    return Optional.absent();
  }

  @Override
  public String toString() {
    return getClass().getSimpleName();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy