Package com.apps.services

Examples of com.apps.services.UBCWayfindingService


import com.apps.services.UBCWayfindingService;

public class UBCWayfindingServiceFactory {

  public static UBCWayfindingService getUBCWayfindingService(){
    return new UBCWayfindingService();
  }
View Full Code Here


  private SectionModel getSectionModel(String d, String c, String s){
    UBCCourseSpiderDatastore sd = new UBCCourseSpiderDatastore();
    SectionInformationObject sio = sd.querySectionFromId(d, c, s);
    CourseInformationObject cio = sd.queryCourseFromId(d, c);
   
    UBCWayfindingService uws = UBCWayfindingServiceFactory.getUBCWayfindingService();
    BuildingModel blo = uws.search(sio.getBuilding());
   
    String lat = "";
    String lng = "";
    if (blo != null) {
      lat = blo.getLatitude();
View Full Code Here

    return sm;
  }
 
  public String getSectionInformation(String dID, String cID, String sID){
    UBCCourseSpiderDatastore sd = new UBCCourseSpiderDatastore();
    UBCWayfindingService uws = UBCWayfindingServiceFactory.getUBCWayfindingService();
    SectionInformationObject sio = sd.querySectionFromId(dID, cID, sID);
   
    String out = "";   
   
    String dept = sio.getDepartmentId();
    String course = sio.getCourseId();
    String section = sio.getSectionId();
    String day = sio.getDay();
    String term = sio.getTerm();
    BuildingModel blo = uws.search(sio.getBuilding());
    UBCSectionDetailService w = new UBCSectionDetailService();
    w.initContent(new UniqueCourseObject(dept,course,section));
    List<BookInformation> biol = w.getBookList();
   
    out += "<table>";
View Full Code Here

public class UBCWayfindingServiceTest {

  @Test
  public void test() { 
   
    UBCWayfindingService uws = UBCWayfindingServiceFactory.getUBCWayfindingService();
   
    BuildingModel bmod = uws.search("DMP");
   
   
    assertTrue(bmod.getAddress().equals("6245 Agronomy Road"));
   
   
View Full Code Here

TOP

Related Classes of com.apps.services.UBCWayfindingService

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.