001 002/* *********************************************************************** * 003 * project: org.matsim.* 004 * PtConstants.java 005 * * 006 * *********************************************************************** * 007 * * 008 * copyright : (C) 2019 by the members listed in the COPYING, * 009 * LICENSE and WARRANTY file. * 010 * email : info at matsim dot org * 011 * * 012 * *********************************************************************** * 013 * * 014 * This program is free software; you can redistribute it and/or modify * 015 * it under the terms of the GNU General Public License as published by * 016 * the Free Software Foundation; either version 2 of the License, or * 017 * (at your option) any later version. * 018 * See also COPYING, LICENSE and WARRANTY file * 019 * * 020 * *********************************************************************** */ 021 022 package org.matsim.pt; 023 024import org.matsim.api.core.v01.TransportMode; 025import org.matsim.api.core.v01.population.Activity; 026import org.matsim.core.api.internal.MatsimParameters; 027import org.matsim.core.config.groups.PlanCalcScoreConfigGroup; 028 029/** 030 * An abstract class containing some constants used for public transportation. 031 * 032 * @author mrieser 033 */ 034public abstract class PtConstants implements MatsimParameters { 035 036 /** 037 * Type of an activity that somehow interacts with pt, e.g. to connect a walk leg 038 * to a pt leg, or to connect two pt legs together where agents have to change lines. 039 * 040 * @see Activity#setType(String) 041 */ 042 public final static String TRANSIT_ACTIVITY_TYPE = PlanCalcScoreConfigGroup.createStageActivityType(TransportMode.pt); 043 044 // this is currently used for wait2link events where the mode is not clear (bus, rail...?!), theresa sep'2015 045 public final static String NETWORK_MODE = "pt unspecified"; 046 047 048}