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