use of uk.org.siri.siri_2.SituationSimpleRefStructure in project onebusaway-application-modules by camsys.
the class SiriSupportV2 method fillSituations.
private static void fillSituations(MonitoredVehicleJourneyStructure monitoredVehicleJourney, TripStatusBean tripStatus) {
if (tripStatus == null || tripStatus.getSituations() == null || tripStatus.getSituations().isEmpty()) {
return;
}
List<SituationRefStructure> situationRef = monitoredVehicleJourney.getSituationRef();
for (ServiceAlertBean situation : tripStatus.getSituations()) {
SituationRefStructure sitRef = new SituationRefStructure();
SituationSimpleRefStructure sitSimpleRef = new SituationSimpleRefStructure();
sitSimpleRef.setValue(situation.getId());
sitRef.setSituationSimpleRef(sitSimpleRef);
situationRef.add(sitRef);
}
}
Aggregations