1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing, software13 * distributed under the License is distributed on an "AS IS" BASIS,14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15 * See the License for the specific language governing permissions and16 * limitations under the License.17 */1819package org.apache.hadoop.chukwa.hicc.bean;
2021import java.util.ArrayList;
2223import javax.xml.bind.annotation.XmlAccessType;
24import javax.xml.bind.annotation.XmlAccessorType;
25import javax.xml.bind.annotation.XmlElement;
26import javax.xml.bind.annotation.XmlRootElement;
27import javax.xml.bind.annotation.XmlType;
2829 @XmlRootElement
30 @XmlAccessorType(XmlAccessType.FIELD)
31 @XmlType(propOrder={})
32publicclassHeatmap {
33 @XmlElement
34private ArrayList<HeatMapPoint> data;
35 @XmlElement
36privatedouble max = 1.0;
37 @XmlElement
38privateint radius;
39 @XmlElement
40privateint series;
4142publicHeatmap() {
43this.data = new ArrayList<HeatMapPoint>();
44 }
4546publicvoid put(int x, int y, double v) {
47 HeatMapPoint point = new HeatMapPoint(x, y, v);
48 data.add(point);
49 }
5051public ArrayList<HeatMapPoint> getHeatmap() {
52return data;
53 }
5455publicdouble getMax() {
56return max;
57 }
5859publicvoid putMax(double max) {
60this.max = max;
61 }
6263publicint getRadius() {
64return radius;
65 }
6667publicvoid putRadius(int radius) {
68this.radius = radius;
69 }
7071publicint getSeries() {
72return series;
73 }
7475publicvoid putSeries(int series) {
76this.series = series;
77 }
78 }