Examples of Place


Examples of com.openbravo.pos.ticket.Place

    }

    @Override
    protected Place map2VO(ResultSet rs) throws SQLException {

        Place place = new Place();
        place.setId(rs.getString("id"));
        place.setName(rs.getString("name"));
        place.setX(rs.getInt("x"));
        place.setY(rs.getInt("y"));
        place.setFloor(rs.getString("floor"));

        return place;
    }
View Full Code Here

Examples of com.ponysdk.core.place.Place

        super(eventBus);
    }

    @Override
    public Place getPlace(final String token) {
        final Place place = placeContextByToken.get(token);
        if (place == null) {
            // History on a new PonySesion instance
            final PageActivity pageActivity = pageProvider.getPageActivity(token);
            if (pageActivity != null) return new PagePlace(pageActivity.getPageName());
        }
View Full Code Here

Examples of com.ryp.bo.Place

    }
   
    private Place getIgeliPlace() {
        String name = "Chalet Igeli";
        String desc = "Chalet Igeli im Berner Oberland";
        Place p = new Place();
        p.setDescription(desc);
        p.setName(name);
        return p;
    }
View Full Code Here

Examples of com.ryp.bo.Place

        RateYourPlaceService service = getRYPService();
       
        String name = "Chalet Igeli";
        String desc = "Chalet Igeli im Berner Oberland";

        Place p = new Place();
        p.setDescription(desc);
        p.setName(name);
       
        service.addPlace(p);
       
        List<Place> places = service.getAllPlaces();
       
View Full Code Here

Examples of com.ryp.bo.Place

    public void testAddRating() {

        RateYourPlaceService service = getRYPService();

        Place place = getIgeliPlace();

        String ratingComment = "somecomment";
        Rating rating = new Rating();
        rating.setComment(ratingComment);
        rating.setRate(Rate.R10);
View Full Code Here

Examples of com.ryp.bo.Place

   
    public void testAddSeveralRatings() {

        RateYourPlaceService service = getRYPService();

        Place place = getIgeliPlace();

        String ratingComment = "somecomment";
        Rating rating = new Rating();
        rating.setComment(ratingComment);
        Rate r1 = Rate.R10;
View Full Code Here

Examples of data.theatre.Place

    while(rsRangees.next()){
      String idRangee = rsRangees.getString(1);
      Rangee r = new Rangee(idRangee);
      int nbPlaces = rsRangees.getInt(2);
      for(int i=1;i<=nbPlaces;i++){         
        r.addPlace(new Place(i));
      }
     
      // On ajout cette rangée à la zone
      zone.addRangee(r);
    }
View Full Code Here

Examples of ehistory.server.api.model.Place

        List<HObject> objects = clientBean.getBackendBean().getMap(filter);

        StringBuilder objectsBuilder = new StringBuilder();
        StringBuilder objectTitlesBuilder = new StringBuilder();
        for (HObject object : objects) {
            Place place = null;

            if (object.getProperties() == null) {
                continue;
            }

            for (Property property : object.getProperties()) {
                if (PLACE_NAME.equals(property.getName())) {
                    place = property.getPlace();
                    break;
                }
            }
            if (place == null) {
                continue;
            }

            StringBuilder objectB = new StringBuilder();
            if (place.getPoint() != null) {
                objectB.append("p:").append(place.getPoint().getX()).append(":").append(place.getPoint().getY());
            } else if (place.getArea() != null) {
                objectB.append(object.getUid()).append(MAP_SEPARATOR);
                objectB.append(AREA_CONSTANT).append(MAP_SEPARATOR);
                String coords = convertCoordinates(place.getArea());
                if (coords == null) {
                    continue;
                }
                objectB.append(coords);
            } else {
View Full Code Here

Examples of facebook4j.Place

            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<Place> places = new ResponseListImpl<Place>(size, json);
            for (int i = 0; i < size; i++) {
                JSONObject placeJSONObject = list.getJSONObject(i);
                Place place = new PlaceJSONImpl(placeJSONObject);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(place, placeJSONObject);
                }
                places.add(place);
            }
View Full Code Here

Examples of hu.u_szeged.nbo.res_alloc.model.type.Place

  private int computeC_U() {
    int C_U = 0;
    for (int i = 1; i <= shiftContainer.getShiftNum(); i++) {
      Shift s = shiftContainer.getShiftById(i);
      if (s.getParent() == null) {
        Place actualPlace = s.getBeginPlace();
        int actualTime = s.getTime().getBegin();
        for (int j = 0; j < s.getAssignedTasks().size(); j++) {
          Task t = s.getAssignedTasks().get(j);
          int traveltime = trafficProperties.getDistance(actualPlace,
              t.getPlace(), actualTime);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.