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
617c2785
Commit
617c2785
authored
Oct 01, 2016
by
Jakob Schöttl
Browse files
Allow log event processor only for normal compartments
parent
16e0e8bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
VadereSimulator/src/org/vadere/simulator/models/seating/LogEventProcessor.java
View file @
617c2785
...
...
@@ -74,6 +74,12 @@ public class LogEventProcessor extends DataProcessor<IdDataKey, LogEventEntry> {
private
Set
<
Seat
>
getSeatsOfCompartment
()
{
final
Compartment
compartment
=
trainModel
.
getCompartment
(
attributes
.
getCompartmentIndex
());
if
(
compartment
.
isHalfCompartment
())
throw
new
IllegalArgumentException
(
"The log event processors's attribute compartmentIndex denotes a half-compartment."
+
"The processor cannot be used for half-compartments."
);
// Otherwise, the resulting files are not comparable with the collected data.
final
Set
<
Seat
>
result
=
new
HashSet
<>();
for
(
SeatGroup
sg
:
compartment
.
getSeatGroups
())
{
result
.
addAll
(
sg
.
getSeats
());
...
...
Write
Preview
Supports
Markdown
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