Package it.cdq.model

Examples of it.cdq.model.Trip


    }

    for (Option option : optionsList) {
      for (Trip tripDate : tripDates) {
        if (option.isCandidate()) {
          Trip trip = new Trip();
          trip.setDepartureDate(tripDate.getDepartureDate());
          trip.setArrivalDate(tripDate.getArrivalDate());
          trip.setDestination(option.getDestination());
          trip.setDestinationLabel(option.getDestinationLabel());
          trip.setOperator(option.getOperator());
          trip.setOrigin(option.getOrigin());
          trip.setOriginLabel(option.getOriginLabel());
          trips.add(trip);
        }
      }
    }
    logger.info(" Trips size [" + trips.size() + "]");
View Full Code Here


  private static void addTrip(List<Trip> list, Calendar calendar, int i) {
    Calendar clone = (Calendar) calendar.clone();
    clone.add(Calendar.DAY_OF_YEAR, i);
    Date departureDate = calendar.getTime();
    Date arrivalDate = clone.getTime();
    Trip trip = new Trip();
    trip.setDepartureDate(departureDate);
    trip.setArrivalDate(arrivalDate);
    list.add(trip);

  }
View Full Code Here

TOP

Related Classes of it.cdq.model.Trip

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.