blob: 4fc08033cd8f4846c94136251af6ec0af5635024 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package models.metadata;
import java.util.ArrayList;
public class TwoDVarMap {
private String dataSource = "";
private String variableName = "";
private String startYearMonth = "";
private String endYearMonth = "";
private String selectMonths = "";
private ArrayList<String> month = new ArrayList<String>();
private String startLat = "";
private String endLat = "";
private String startLon = "";
private String endLon = "";
private String variableScale = "";
private String executionPurpose = "";
private String image = "";
private String dataURL = "";
private String serviceResponseText = "";
public String getStartLon() {
return startLon;
}
public void setStartLon(String startLon) {
this.startLon = startLon;
}
public String getEndLon() {
return endLon;
}
public void setEndLon(String endLon) {
this.endLon = endLon;
}
public String getDataSource() {
return dataSource;
}
public void setDataSource(String dataSource) {
this.dataSource = dataSource;
}
public String getVariableName() {
return variableName;
}
public void setVariableName(String variableName) {
this.variableName = variableName;
}
public String getStartYearMonth() {
return startYearMonth;
}
public void setStartYearMonth(String startYearMonth) {
this.startYearMonth = startYearMonth;
}
public String getEndYearMonth() {
return endYearMonth;
}
public void setEndYearMonth(String endYearMonth) {
this.endYearMonth = endYearMonth;
}
public String getSelectMonths() {
return selectMonths;
}
public void setSelectMonths(String selectMonths) {
this.selectMonths = selectMonths;
}
public void changeSelectMonths(){
if(month.contains("1")&&month.contains("2")&&month.contains("3")&&month.contains("4")&&month.contains("5")&&month.contains("6")&&month.contains("7")&&month.contains("8")&&month.contains("9")&&month.contains("10")&&month.contains("11")&&month.contains("12")){
this.selectMonths = "select all";
}
else if(month.contains("6") && month.contains("7") && month.contains("8")){
this.selectMonths = "Summer:Jun-Jul-Aug";
}
else if(month.contains("9") && month.contains("10") && month.contains("11")){
this.selectMonths = "Autumn:Sep-Oct-Nov";
}
else if(month.contains("12") && month.contains("1") && month.contains("2")){
this.selectMonths = "Winter:Dec-Jan-Feb";
}
else if(month.contains("3") && month.contains("4") && month.contains("5")){
this.selectMonths = "Spring:Mar-Apr-May";
}
else{
this.selectMonths = "select none";
}
}
public String getMonth() {
return month.toString().replace("[", "").replace("]", "");
}
public void setMonth(ArrayList<String> month) {
this.month = month;
}
public void addMonth(String oneMonth){
month.add(oneMonth);
}
public String getStartLat() {
return startLat;
}
public void setStartLat(String startLat) {
this.startLat = startLat;
}
public String getEndLat() {
return endLat;
}
public void setEndLat(String endLat) {
this.endLat = endLat;
}
public String getVariableScale() {
return variableScale;
}
public void setVariableScale(String variableScale) {
this.variableScale = variableScale;
}
public String getExecutionPurpose() {
return executionPurpose;
}
public void setExecutionPurpose(String executionPurpose) {
this.executionPurpose = executionPurpose;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public String getDataURL() {
return dataURL;
}
public void setDataURL(String dataURL) {
this.dataURL = dataURL;
}
public String getServiceResponseText() {
return serviceResponseText;
}
public void setServiceResponseText(String serviceResponseText) {
this.serviceResponseText = serviceResponseText;
}
}