Package org.matsim.pt.routes
Class ExperimentalTransitRoute
- java.lang.Object
-
- org.matsim.core.population.routes.AbstractRoute
-
- org.matsim.pt.routes.ExperimentalTransitRoute
-
- All Implemented Interfaces:
Cloneable
,Route
,MatsimPopulationObject
,TransitPassengerRoute
@Deprecated public class ExperimentalTransitRoute extends AbstractRoute implements TransitPassengerRoute
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description ExperimentalTransitRoute(TransitStopFacility accessFacility, TransitLine line, TransitRoute route, TransitStopFacility egressFacility)
Deprecated.Why do we need this constructor, if we only keep the id of the line/route?ExperimentalTransitRoute(TransitStopFacility accessFacility, TransitStopFacility egressFacility, Id<TransitLine> lineId, Id<TransitRoute> routeId)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExperimentalTransitRoute
clone()
Deprecated.make the clone method public, but do NOT extend Cloneable so that implementations can decide on their own if they support Cloneable or use some other way to make a copy..Id<TransitStopFacility>
getAccessStopId()
Deprecated.OptionalTime
getBoardingTime()
Deprecated.Id<TransitStopFacility>
getEgressStopId()
Deprecated.Id<TransitLine>
getLineId()
Deprecated.String
getRouteDescription()
Deprecated.Id<TransitRoute>
getRouteId()
Deprecated.String
getRouteType()
Deprecated.void
setRouteDescription(String routeDescription)
Deprecated.Sets the state of the route based on it's descriptionString
toString()
Deprecated.-
Methods inherited from class org.matsim.core.population.routes.AbstractRoute
getDistance, getEndLinkId, getStartLinkId, getTravelTime, setDistance, setEndLinkId, setLocked, setStartLinkId, setTravelTime, setTravelTimeUndefined
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.matsim.api.core.v01.population.Route
getDistance, getEndLinkId, getStartLinkId, getTravelTime, setDistance, setEndLinkId, setStartLinkId, setTravelTime, setTravelTimeUndefined
-
-
-
-
Constructor Detail
-
ExperimentalTransitRoute
public ExperimentalTransitRoute(TransitStopFacility accessFacility, TransitStopFacility egressFacility, Id<TransitLine> lineId, Id<TransitRoute> routeId)
Deprecated.
-
ExperimentalTransitRoute
public ExperimentalTransitRoute(TransitStopFacility accessFacility, TransitLine line, TransitRoute route, TransitStopFacility egressFacility)
Deprecated.Why do we need this constructor, if we only keep the id of the line/route?
-
-
Method Detail
-
clone
public ExperimentalTransitRoute clone()
Deprecated.Description copied from interface:Route
make the clone method public, but do NOT extend Cloneable so that implementations can decide on their own if they support Cloneable or use some other way to make a copy.. Design comments:- Do we really want this? Martin ("Clean code") argues for the difference between data objects and behavioral objects. Data objects should only be accessed via the interface methods. I think that "route" is a data object. In consequence, "copy" and/or "deepCopy" should, in my view, be static methods. (The argument against this is, I guess, that one might want to add Route implementations that are not part of the standard. Yet given that we want to be able to read/write them in xml, I am not sure how far this carries.) kai, jan'13
- In our particular situation, "clone" may be considered as a useful approach to our problem (first clone the plan or its elements, then mutate the contents). Having clone but not Cloneable in the API leaves implementing classes the choice to implement it via Cloneable or via other means. kai, dec'15
- Specified by:
clone
in interfaceRoute
- Overrides:
clone
in classAbstractRoute
-
getAccessStopId
public Id<TransitStopFacility> getAccessStopId()
Deprecated.- Specified by:
getAccessStopId
in interfaceTransitPassengerRoute
-
getEgressStopId
public Id<TransitStopFacility> getEgressStopId()
Deprecated.- Specified by:
getEgressStopId
in interfaceTransitPassengerRoute
-
getLineId
public Id<TransitLine> getLineId()
Deprecated.- Specified by:
getLineId
in interfaceTransitPassengerRoute
-
getRouteId
public Id<TransitRoute> getRouteId()
Deprecated.- Specified by:
getRouteId
in interfaceTransitPassengerRoute
-
setRouteDescription
public void setRouteDescription(String routeDescription)
Deprecated.Description copied from interface:Route
Sets the state of the route based on it's description- Specified by:
setRouteDescription
in interfaceRoute
-
getRouteDescription
public String getRouteDescription()
Deprecated.- Specified by:
getRouteDescription
in interfaceRoute
- Returns:
- a serialization of this routes state as a String. Used to write the route to files.
-
getRouteType
public String getRouteType()
Deprecated.- Specified by:
getRouteType
in interfaceRoute
- Returns:
- an identifier describing the type of this route uniquely. Used when writing the route to files.
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classAbstractRoute
-
getBoardingTime
public OptionalTime getBoardingTime()
Deprecated.- Specified by:
getBoardingTime
in interfaceTransitPassengerRoute
-
-