public TrainPathFunction(ArrayList segmentArrayList) {
public TrainPathFunction(int tBase, ArrayList segmentArrayList) { this.tBase = tBase;
    public TrainPathFunction(ArrayList segmentArrayList) {	segments = (TrainPathSegment [] ) segmentArrayList.toArray	    (new TrainPathSegment[segmentArrayList.size()]);    }