if (_pathState.hasTransfers()) {
TransferPatternService tpService = _context.getTransferPatternService();
List<TPState> transferStates = _pathState.getTransferStates(tpService);
for (TPState nextState : transferStates) {
Edge edge = new TPTransferEdge(_context, _pathState, nextState,
_departure, _arrival, true);
edges.add(edge);
}
}
if (_pathState.isExitAllowed()) {
TPDepartureVertex from = new TPDepartureVertex(_context, _pathState);
Edge edge = new TPFreeEdge(_context, from, this);
return Arrays.asList(edge);
}
return edges;
}