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

org.opentripplanner.index.model.PatternDetail Maven / Gradle / Ivy

package org.opentripplanner.index.model;

import java.util.Collection;

import org.opentripplanner.model.FeedScopedId;
import org.opentripplanner.routing.edgetype.TripPattern;

import com.beust.jcommander.internal.Lists;

public class PatternDetail extends PatternShort {

    /* Maybe these should just be lists of IDs only, since there are stops and trips subendpoints. */
    public FeedScopedId routeId;
    public Collection stops = Lists.newArrayList();
    public Collection trips = Lists.newArrayList();
    
    // Include all known headsigns
    
    public PatternDetail(TripPattern pattern) {
        super (pattern);
        routeId = pattern.route.getId();
        stops = StopShort.list(pattern.getStops());
        trips = TripShort.list(pattern.getTrips());
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy