Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
16e0e8bf
Commit
16e0e8bf
authored
Oct 01, 2016
by
Jakob Schöttl
Browse files
Add and fix debug logs
parent
b541b111
Changes
1
Hide whitespace changes
Inline
Side-by-side
VadereSimulator/src/org/vadere/simulator/models/seating/SeatingModel.java
View file @
16e0e8bf
...
...
@@ -111,7 +111,7 @@ public class SeatingModel implements ActiveCallback, Model {
private
void
assignSeatTarget
(
Pedestrian
p
)
{
final
Compartment
compartment
=
trainModel
.
getCompartment
(
p
);
if
(
compartment
.
isFull
())
{
logDebug
(
"Compartment %d is full. No seat available for pedestrian %d."
,
logDebug
(
"Compartment %d is full. No seat available for pedestrian %d.
Proceeding to next compartment.
"
,
compartment
.
getIndex
(),
p
.
getId
());
proceedToNextCompartmentIfPossible
(
p
);
return
;
...
...
@@ -320,6 +320,10 @@ public class SeatingModel implements ActiveCallback, Model {
private
final
TargetListener
seatTargetListener
=
new
TargetListener
()
{
@Override
public
void
reachedTarget
(
Target
target
,
Agent
agent
)
{
final
Seat
seat
=
trainModel
.
getSeatForTarget
(
target
);
logDebug
(
"Pedestrian %d reached seat %d.%d (%d)"
,
agent
.
getId
(),
seat
.
getSeatGroup
().
getCompartment
().
getIndex
(),
seat
.
getSeatNumberWithinCompartment
(),
target
.
getId
());
sitDownIfPossible
((
Pedestrian
)
agent
,
trainModel
.
getSeatForTarget
(
target
));
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment