Skip to content
Permalink
Browse files

Some minor improvements to the operations build report

  • Loading branch information...
danielboudreau danielboudreau
danielboudreau authored and danielboudreau committed Aug 14, 2019
1 parent 8c1dcef commit d56d4ec40678104d6420b7a3066e25f2bc126b26
@@ -959,7 +959,7 @@ trainCanNotCarryCarOption = Train ({0}) can''t carry car ({1}) from ({2}, {3})
trainCanNotPerformLocalMove = Train ({0}) can''t perform local move for car ({1}) at location ({2})
trainDoesNotCarryOriginTerminal = Train ({0}) doesn''t carry cars from origin ({1}) to terminal ({2})
trainNoMoves = Train ({0}) no moves left for route ({1}) id ({2}) destination ({3})
trainExceedsMaximumLength = Train ({0}) would exceed route ({1}) id ({2}) maximum train length ({3}) {4} when departing ({5}) with car ({6})
trainExceedsMaximumLength = Train ({0}) would exceed route ({1}) id ({2}) maximum train length ({3}) {4} by {7} {4} when departing ({5}) with car ({6})
trainCanNotDeliverToDestination = Train ({0}) can''t deliver car ({1}) to ({2}, {3})
trainFindForCar = Find train for car ({0}) from ({1}, {2}) to ({3}, {4})
trainCanReturnCarToStaging = Train ({0}) can return car ({1}) to staging ({2}, {3})
@@ -908,7 +908,7 @@ trainCanNotCarryCarOption = Train ({0}) can''t carry car ({1}) from ({2}, {3})
trainCanNotPerformLocalMove = Train ({0}) can''t perform local move for car ({1}) at location ({2})
trainDoesNotCarryOriginTerminal = Train ({0}) doesn''t carry cars from origin ({1}) to terminal ({2})
trainNoMoves = Train ({0}) no moves left for route ({1}) id ({2}) destination ({3})
trainExceedsMaximumLength = Train ({0}) would exceed route ({1}) id ({2}) maximum train length ({3}) {4} when departing ({5}) with car ({6})
trainExceedsMaximumLength = Train ({0}) would exceed route ({1}) id ({2}) maximum train length ({3}) {4} by {7} {4} when departing ({5}) with car ({6})
trainCanNotDeliverToDestination = Train ({0}) can''t deliver car ({1}) to ({2}, {3})
trainFindForCar = Find train for car ({0}) from ({1}, {2}) to ({3}, {4})
trainCanReturnCarToStaging = Train ({0}) can return car ({1}) to staging ({2}, {3})
@@ -930,7 +930,7 @@ trainCanNotCarryCarOption = Train ({0}) can''t carry car ({1}) from ({2}, {3})
trainCanNotPerformLocalMove = Train ({0}) can''t perform local move for car ({1}) at location ({2})
trainDoesNotCarryOriginTerminal = Train ({0}) doesn''t carry cars from origin ({1}) to terminal ({2})
trainNoMoves = Zug ({0}) keine \u00fcbrige Arbeit auf Strecke ({1}) ID ({2}) Ziel ({3})
trainExceedsMaximumLength = Train ({0}) would exceed route ({1}) id ({2}) maximum train length ({3}) {4} when departing ({5}) with car ({6})
trainExceedsMaximumLength = Train ({0}) would exceed route ({1}) id ({2}) maximum train length ({3}) {4} by {7} {4} when departing ({5}) with car ({6})
trainCanNotDeliverToDestination = Train ({0}) can''t deliver car ({1}) to ({2}, {3})
trainFindForCar = Find train for car ({0}) from ({1}, {2}) to ({3}, {4})
trainCanReturnCarToStaging = Train ({0}) can return car ({1}) to staging ({2}, {3})
@@ -955,7 +955,7 @@ trainCanNotCarryCarOption = Train ({0}) ne peut pas transporter le wagon ({1})
trainCanNotPerformLocalMove = Train ({0})'ne peut pas effectuer de mouvement local pour l wagon ({1}) \u00e0 l'emplacement ({2})
trainDoesNotCarryOriginTerminal = Train ({0}) ne peut pas transporter des wagons d'origine ({1}) au terminus ({2})
trainNoMoves = Train ({0}) pas de mouvements disponibles pour destination ({1})
trainExceedsMaximumLength = Train ({0}) d\u00e9passe la longueur maximale des trains {1} au moment du d\u00e9part ({2}) avec le wagon ({3})
trainExceedsMaximumLength = Train ({0}) d\u00e9passe la longueur maximale des trains {1} au moment du d\u00e9part ({5}) avec le wagon ({6})
trainCanNotDeliverToDestination = Train ({0}) ne peut pas livrer le wagon ({1}) \u00e0 destination ({2}, {3})
trainFindForCar = Trouvez le train pour le wagon ({0}) lieu ({1}, {2}) destination ({3}, {4})
trainCanReturnCarToStaging = Train ({0}) peut retourner le wagon ({1}) \u00e0 la coulisse ({2}, {3})
@@ -819,7 +819,7 @@ trainCanNotCarryCarOption = Treno ({0}) non pu\u00f2 portare carro ({1}) da ({
trainCanNotPerformLocalMove = Treno ({0}) non pu\u00f2 fare mosse locali per il carro ({1}) in localit\u00e0 ({2})
trainDoesNotCarryOriginTerminal = Treno ({0}) non pu\u00f2 portare carri da origine ({1}) al terminale ({2})
trainNoMoves = Treno ({0}) nessuna mossa rimasta per percorso ({1}) ID({2}) destinazione ({3})
trainExceedsMaximumLength = Treno ({0}) eccede percorso ({1}) id ({2}) lunghezza massima treno ({3}) {4} in partenza da ({5}) con carro ({6})
trainExceedsMaximumLength = Treno ({0}) eccede percorso ({1}) id ({2}) lunghezza massima treno ({3}) {4} di {7} {4} in partenza da ({5}) con carro ({6})
trainCanNotDeliverToDestination = Treno ({0}) non pu\u00f2 consegnare carro ({1}) a ({2}, {3})
trainFindForCar = Trovo treno per il carro ({0}) localit\u00e0 ({1}, {2}) destinazione ({3}, {4})
trainCanReturnCarToStaging = Treno ({0}) pu\u00f2 ritornare carro ({1}) in staging ({2}, {3})
@@ -1864,12 +1864,13 @@ public boolean services(PrintWriter buildReport, Car car) {
return true;
}
// check to see if train length is okay
if (getStatusCode() == CODE_BUILDING
&& rldest.getTrainLength() + length > rldest.getMaxTrainLength()) {
if (getStatusCode() == CODE_BUILDING &&
rldest.getTrainLength() + length > rldest.getMaxTrainLength()) {
setServiceStatus(MessageFormat.format(Bundle.getMessage("trainExceedsMaximumLength"),
new Object[]{getName(), getRoute().getName(), rldest.getId(),
rldest.getMaxTrainLength(), Setup.getLengthUnit().toLowerCase(),
rldest.getName(), car.toString()}));
rldest.getName(), car.toString(),
rldest.getTrainLength() + length - rldest.getMaxTrainLength()}));
if (debugFlag) {
log.debug("Car ("
+ car.toString()
@@ -484,7 +484,7 @@ private void showTrainBuildOptions() {
if (_train.isAllowLocalMovesEnabled()) {
addLine(_buildReport, FIVE, Bundle.getMessage("AllowLocalMoves"));
}
if (_train.isAllowThroughCarsEnabled()) {
if (_train.isAllowThroughCarsEnabled() && _departLocation != _terminateLocation) {
addLine(_buildReport, FIVE, Bundle.getMessage("AllowThroughCars"));
}
if (_train.isServiceAllCarsWithFinalDestinationsEnabled()) {

0 comments on commit d56d4ec

Please sign in to comment.
You can’t perform that action at this time.