001/* *********************************************************************** * 002 * project: org.matsim.* 003 * EarliestLinkExitTimeFilterFactory.java 004 * * 005 * *********************************************************************** * 006 * * 007 * copyright : (C) 2013 by the members listed in the COPYING, * 008 * LICENSE and WARRANTY file. * 009 * email : info at matsim dot org * 010 * * 011 * *********************************************************************** * 012 * * 013 * This program is free software; you can redistribute it and/or modify * 014 * it under the terms of the GNU General Public License as published by * 015 * the Free Software Foundation; either version 2 of the License, or * 016 * (at your option) any later version. * 017 * See also COPYING, LICENSE and WARRANTY file * 018 * * 019 * *********************************************************************** */ 020 021package org.matsim.withinday.replanning.identifiers.filter; 022 023import org.matsim.withinday.replanning.identifiers.interfaces.AgentFilterFactory; 024import org.matsim.withinday.trafficmonitoring.EarliestLinkExitTimeProvider; 025 026public class EarliestLinkExitTimeFilterFactory implements AgentFilterFactory { 027 028 private final EarliestLinkExitTimeProvider earliestLinkExitTimeProvider; 029 030 public EarliestLinkExitTimeFilterFactory(EarliestLinkExitTimeProvider earliestLinkExitTimeProvider) { 031 this.earliestLinkExitTimeProvider = earliestLinkExitTimeProvider; 032 } 033 034 @Override 035 public EarliestLinkExitTimeFilter createAgentFilter() { 036 return new EarliestLinkExitTimeFilter(earliestLinkExitTimeProvider); 037 } 038 039}