/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package usda.weru.gis.data;

import usda.weru.weps.location.Station;

/**
 *
 * @author Joseph Levin <joelevin@weru.ksu.edu>
 */
public class SelectArea {

	private String c_name;
	private Type c_type;
	private Station c_station;

	/**
	 *
	 * @param type
	 */
	public SelectArea(Type type) {
		c_type = type;
		c_name = type.name();
	}

	/**
	 *
	 * @param station
	 */
	public SelectArea(Station station) {
		this(Type.Station);
		c_station = station;
		c_name = station.getDisplayName();

	}

	/**
	 *
	 * @return
	 */
	public String getName() {
		return c_name;
	}

	/**
	 *
	 * @return
	 */
	public Station getStation() {
		return c_station;
	}

	/**
	 *
	 * @return
	 */
	public Type getType() {
		return c_type;
	}

	/**
	 *
	 */
	public enum Type {

		/**
		 *
		 */
		Station,
		/**
		 *
		 */
		Out,
		/**
		 *
		 */
		Interpolated,
		/**
		 *
		 */
		Null
	}

}
