Package com.ufis_as.ek_if.journeymatrix

Examples of com.ufis_as.ek_if.journeymatrix.EntDbMdJourneyMatrix


 
  private void evaluatePaxJourneyTime(String tab, EntDbAfttab mainFlt, EntDbAfttab conxFlight, EntDbFltConnectSummary data, int timeDiff) {
    if (tab.equalsIgnoreCase(HpUfisAppConstants.CON_AFTTAB)
        || tab.equalsIgnoreCase(HpUfisAppConstants.CON_LOAD_PAX_SUMMARY)
        || tab.equalsIgnoreCase(HpUfisAppConstants.CON_LOAD_PAX_CONNECT)) {
       EntDbMdJourneyMatrix journeyTime = retrieveJourneyTime(mainFlt, conxFlight);
       data.setConxTime(new BigDecimal(timeDiff));
       if(journeyTime != null) {
         LOG.debug("PSTA : {} and PSTD : {}", mainFlt.getPsta(), conxFlight.getPstd());
           data.setPaxJourneyTime(journeyTime.getDuration());
       } else {
           LOG.debug("No Journey Time is found for PSTA : {} and PSTD : {}", mainFlt.getPsta(), conxFlight.getPstd());
       }
    }   
  }
View Full Code Here


  private EntDbMdJourneyMatrix retrieveJourneyTime(EntDbAfttab mainFlt, EntDbAfttab conxFlight) {
    String psta = mainFlt.getPsta().trim();
    String pstd = conxFlight.getPstd().trim();
    List<EntDbMdJourneyMatrix> matrixList = journeyMatrixBean.findMatrixBy(psta, pstd);
    EntDbMdJourneyMatrix to = null;
    EntDbMdJourneyMatrix from = null;
    EntDbMdJourneyMatrix none = null;
    for (EntDbMdJourneyMatrix matrix : matrixList) {
      if(matrix.getFromLoc().trim().equals(psta) && matrix.getToLoc().trim().equals(pstd)) {
        return matrix; //both - first priority
      }
     
View Full Code Here

TOP

Related Classes of com.ufis_as.ek_if.journeymatrix.EntDbMdJourneyMatrix

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.