Commit 5cad3b08 authored by Jakob Schöttl's avatar Jakob Schöttl
Browse files

Add line breaks

parent 2be636de
......@@ -251,7 +251,8 @@ public class SeatingModel implements ActiveCallback, Model {
}
private Seat chooseSeat1(final SeatGroup seatGroup) {
final EnumeratedDistribution<SeatRelativePosition> distribution = new EnumeratedDistribution<>(rng, attributes.getSeatChoice1());
final EnumeratedDistribution<SeatRelativePosition> distribution =
new EnumeratedDistribution<>(rng, attributes.getSeatChoice1());
final SeatRelativePosition relativePosition = distribution.sample();
return seatGroup.seatRelativeTo(seatGroup.getTheOccupiedSeat(), relativePosition);
}
......@@ -259,13 +260,15 @@ public class SeatingModel implements ActiveCallback, Model {
private Seat chooseSeat2(final SeatGroup seatGroup) {
if (seatGroup.onlySideChoice()) {
// choice only between window/aisle
final EnumeratedDistribution<SeatSide> distribution = new EnumeratedDistribution<>(rng, attributes.getSeatChoice2Side());
final EnumeratedDistribution<SeatSide> distribution =
new EnumeratedDistribution<>(rng, attributes.getSeatChoice2Side());
SeatSide side = distribution.sample();
return seatGroup.availableSeatAtSide(side);
} else if (seatGroup.onlyFacingDirectionChoice()) {
// choice only between forward/backward
final EnumeratedDistribution<SeatFacingDirection> distribution = new EnumeratedDistribution<>(rng, attributes.getSeatChoice2FacingDirection());
final EnumeratedDistribution<SeatFacingDirection> distribution =
new EnumeratedDistribution<>(rng, attributes.getSeatChoice2FacingDirection());
SeatFacingDirection facingDirection = distribution.sample();
return seatGroup.availableSeatAtFacingDirection(facingDirection);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment