001/* 002 * Copyright 2012 Marc Wick, geonames.org 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 */ 017package org.geonames; 018 019/** 020 * @author Marc Wick 021 * @since 15.08.2012 022 * 023 */ 024public class BoundingBox { 025 026 public BoundingBox(double west, double east, double south, double north) { 027 setWest(west); 028 setEast(east); 029 setSouth(south); 030 setNorth(north); 031 } 032 033 /** 034 * @return the west 035 */ 036 public double getWest() { 037 return west; 038 } 039 040 /** 041 * @param west 042 * the west to set 043 */ 044 public void setWest(double west) { 045 this.west = west; 046 } 047 048 /** 049 * @return the east 050 */ 051 public double getEast() { 052 return east; 053 } 054 055 /** 056 * @param east 057 * the east to set 058 */ 059 public void setEast(double east) { 060 this.east = east; 061 } 062 063 /** 064 * @return the south 065 */ 066 public double getSouth() { 067 return south; 068 } 069 070 /** 071 * @param south 072 * the south to set 073 */ 074 public void setSouth(double south) { 075 this.south = south; 076 } 077 078 /** 079 * @return the north 080 */ 081 public double getNorth() { 082 return north; 083 } 084 085 /** 086 * @param north 087 * the north to set 088 */ 089 public void setNorth(double north) { 090 this.north = north; 091 } 092 093 private double west; 094 private double east; 095 private double south; 096 private double north; 097 098}