/* class station */
function setName(name) {
	this.name = name;
}

function setTimes(times) {
	this.times = times;
}

function setIconUrl(iconUrl) {
	this.iconUrl = iconUrl;
}

function setGmarker(gmarker) {
	this.gmarker = gmarker;
}

function setZIndex(zIndex) {
	this.zIndex = zIndex;
}

function getName() {
	return this.name;
}

function getTimes() {
	return this.times;
}

function getIconUrl(){
	return this.iconUrl;
}

function getGmarker() {
	return this.gmarker;
}

function getZIndex() {
	return this.zIndex;
}

function hasGoa() {
	if (this.petrolPrice[0] > 0)
		return true;
	return false;
}

function hasG95() {
	if (this.petrolPrice[1] > 0)
		return true;
	return false;
}

function hasG98() {
	if (this.petrolPrice[2] > 0)
		return true;
	return false;
}

function getGoa() {
	return this.petrolPrice[0];
}

function getG95() {
	return this.petrolPrice[1];
}

function getG98() {
	return this.petrolPrice[2];
}

function setGoa(price) {
	this.petrolPrice[0] = price;
}

function setG95(price) {
	this.petrolPrice[1] = price;
}

function setG98(price) {
	this.petrolPrice[2] = price;
}

function getLatitude() {
	return this.latitude;
}

function getLongitude() {
	return this.longitude;
}

function setLatitude(latitude) {
	this.latitude = latitude;
}

function setLongitude(longitude) {
	this.longitude = longitude;
}


function Station(){
	/* properties */
	this.name = "";
	this.times = "";
	this.iconUrl = "";
	this.gmarker = "";
	this.petrolPrice = new Array();
	this.petrolPrice[0] = -1;
	this.petrolPrice[1] = -1;
	this.petrolPrice[2] = -1;
	this.latitude = -1;
	this.longitude = -1;
	
	/* methods */
	this.setName = setName;
	this.getName = getName;
	this.setTimes = setTimes;
	this.getTimes = getTimes;
	this.setIconUrl = setIconUrl;
	this.getIconUrl = getIconUrl;
	this.setZIndex = setZIndex;
	this.getZIndex = getZIndex;
	this.setGoa = setGoa;
	this.setG95 = setG95;
	this.setG98 = setG98;
	this.hasGoa = hasGoa;
	this.hasG95 = hasG95;
	this.hasG98 = hasG98;
	this.getGoa = getGoa;
	this.getG95 = getG95;
	this.getG98 = getG98;
	this.getLatitude = getLatitude;
	this.getLongitude = getLongitude;
	this.setLatitude = setLatitude;
	this.setLongitude = setLongitude;
	this.getGmarker = getGmarker;
	this.setGmarker = setGmarker;
}
