aboutsummaryrefslogtreecommitdiff
path: root/bigtop-data-generators/bigtop-weatherman/src/main/java/org/apache/bigtop/datagenerators/weatherman/internal/WeatherStationParameters.java
blob: 7edba341322c900be7d120ebb7d90c0bcc805f3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/**
 * 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 org.apache.bigtop.datagenerators.weatherman.internal;

import java.io.Serializable;

import org.apache.commons.lang3.tuple.Pair;

public class WeatherStationParameters implements Serializable {
  private static final long serialVersionUID = -7268791467819627718L;

  private String WBAN;
  private String city;
  private String state;
  private Pair<Double, Double> coordinates;
  private double temperatureAverage;
  private double temperatureRealCoeff;
  private double temperatureImagCoeff;
  private double temperatureDerivStd;
  private double precipitationAverage;
  private double windSpeedRealCoeff;
  private double windSpeedImagCoeff;
  private double windSpeedK;
  private double windSpeedTheta;

  public WeatherStationParameters(String WBAN, String city, String state,
          Pair<Double, Double> coordinates, double temperatureAverage,
          double temperatureRealCoeff, double temperatureImagCoeff,
          double temperatureDerivStd, double precipitationAverage,
          double windSpeedRealCoeff, double windSpeedImagCoeff,
          double windSpeedK, double windSpeedTheta) {
    this.city = city;
    this.state = state;
    this.coordinates = coordinates;
    this.temperatureAverage = temperatureAverage;
    this.temperatureRealCoeff = temperatureRealCoeff;
    this.temperatureImagCoeff = temperatureImagCoeff;
    this.temperatureDerivStd = temperatureDerivStd;
    this.precipitationAverage = precipitationAverage;
    this.windSpeedRealCoeff = windSpeedRealCoeff;
    this.windSpeedImagCoeff = windSpeedImagCoeff;
    this.windSpeedK = windSpeedK;
    this.windSpeedTheta = windSpeedTheta;
  }

  public String getWBAN() {
    return WBAN;
  }

  public String getCity() {
    return city;
  }

  public String getState() {
    return state;
  }

  public Pair<Double, Double> getCoordinates() {
    return coordinates;
  }

  public double getTemperatureAverage() {
    return temperatureAverage;
  }

  public double getTemperatureRealCoeff() {
    return temperatureRealCoeff;
  }

  public double getTemperatureImagCoeff() {
    return temperatureImagCoeff;
  }

  public double getTemperatureDerivStd() {
    return temperatureDerivStd;
  }

  public double getPrecipitationAverage() {
    return precipitationAverage;
  }

  public double getWindSpeedRealCoeff() {
    return windSpeedRealCoeff;
  }

  public double getWindSpeedImagCoeff() {
    return windSpeedImagCoeff;
  }

  public double getWindSpeedK() {
    return windSpeedK;
  }

  public double getWindSpeedTheta() {
    return windSpeedTheta;
  }
}