• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package ohos.devtools.views.trace.bean;
17 
18 /**
19  * TabCounterBean
20  *
21  * @since 2021/5/12 16:34
22  */
23 public class TabCounterBean {
24     private Integer trackId;
25     private String name;
26     private Long deltaValue; // Calculate the rule. box selection range last value - first value
27     private Double rate; // Calculate the rule .box selection range time delta value / range time(单位换算成 s )
28     private Double weightAvgValue;
29 
30     // The calculation rule calculates the weighted average by value as a weight of time in the selected time area
31     private Integer count; // Calculate the rules Statistics the number of counters in the selected range
32     private Long firstValue; // Box within the selection room first value
33     private Long lastValue; // Box within the selection room last value
34     private Long minValue; // Box within the selection room min value
35     private Long maxValue; // Box within the selection room max value
36 
37     /**
38      * Gets the value of trackId .
39      *
40      * @return the value of trackId .
41      */
getTrackId()42     public Integer getTrackId() {
43         return trackId;
44     }
45 
46     /**
47      * Sets the trackId .
48      * <p>You can use getTrackId() to get the value of trackId.</p>
49      *
50      * @param param .
51      */
setTrackId(final Integer param)52     public void setTrackId(final Integer param) {
53         this.trackId = param;
54     }
55 
56     /**
57      * Gets the value of name .
58      *
59      * @return the value of name .
60      */
getName()61     public String getName() {
62         return name;
63     }
64 
65     /**
66      * Sets the name .
67      * <p>You can use getName() to get the value of name.</p>
68      *
69      * @param param .
70      */
setName(final String param)71     public void setName(final String param) {
72         this.name = param;
73     }
74 
75     /**
76      * Gets the value of deltaValue .
77      *
78      * @return the value of deltaValue .
79      */
getDeltaValue()80     public Long getDeltaValue() {
81         return deltaValue;
82     }
83 
84     /**
85      * Sets the deltaValue .
86      * <p>You can use getDeltaValue() to get the value of deltaValue.</p>
87      *
88      * @param param .
89      */
setDeltaValue(final Long param)90     public void setDeltaValue(final Long param) {
91         this.deltaValue = param;
92     }
93 
94     /**
95      * Gets the value of rate .
96      *
97      * @return the value of rate .
98      */
getRate()99     public Double getRate() {
100         return rate;
101     }
102 
103     /**
104      * Sets the rate .
105      * <p>You can use getRate() to get the value of rate.</p>
106      *
107      * @param param .
108      */
setRate(final Double param)109     public void setRate(final Double param) {
110         this.rate = param;
111     }
112 
113     /**
114      * Gets the value of weightAvgValue .
115      *
116      * @return the value of weightAvgValue .
117      */
getWeightAvgValue()118     public Double getWeightAvgValue() {
119         return weightAvgValue;
120     }
121 
122     /**
123      * Sets the weightAvgValue .
124      * <p>You can use getWeightAvgValue() to get the value of weightAvgValue.</p>
125      *
126      * @param param .
127      */
setWeightAvgValue(final Double param)128     public void setWeightAvgValue(final Double param) {
129         this.weightAvgValue = param;
130     }
131 
132     /**
133      * Gets the value of count .
134      *
135      * @return the value of count .
136      */
getCount()137     public Integer getCount() {
138         return count;
139     }
140 
141     /**
142      * Sets the count .
143      * <p>You can use getCount() to get the value of count.</p>
144      *
145      * @param param .
146      */
setCount(final Integer param)147     public void setCount(final Integer param) {
148         this.count = param;
149     }
150 
151     /**
152      * Gets the value of firstValue .
153      *
154      * @return the value of firstValue .
155      */
getFirstValue()156     public Long getFirstValue() {
157         return firstValue;
158     }
159 
160     /**
161      * Sets the firstValue .
162      * <p>You can use getFirstValue() to get the value of firstValue.</p>
163      *
164      * @param param .
165      */
setFirstValue(final Long param)166     public void setFirstValue(final Long param) {
167         this.firstValue = param;
168     }
169 
170     /**
171      * Gets the value of lastValue .
172      *
173      * @return the value of lastValue .
174      */
getLastValue()175     public Long getLastValue() {
176         return lastValue;
177     }
178 
179     /**
180      * Sets the lastValue .
181      * <p>You can use getLastValue() to get the value of lastValue.</p>
182      *
183      * @param param .
184      */
setLastValue(final Long param)185     public void setLastValue(final Long param) {
186         this.lastValue = param;
187     }
188 
189     /**
190      * Gets the value of minValue .
191      *
192      * @return the value of minValue .
193      */
getMinValue()194     public Long getMinValue() {
195         return minValue;
196     }
197 
198     /**
199      * Sets the minValue .
200      * <p>You can use getMinValue() to get the value of minValue.</p>
201      *
202      * @param param .
203      */
setMinValue(final Long param)204     public void setMinValue(final Long param) {
205         this.minValue = param;
206     }
207 
208     /**
209      * Gets the value of maxValue .
210      *
211      * @return the value of maxValue .
212      */
getMaxValue()213     public Long getMaxValue() {
214         return maxValue;
215     }
216 
217     /**
218      * Sets the maxValue .
219      * <p>You can use getMaxValue() to get the value of maxValue.</p>
220      *
221      * @param param .
222      */
setMaxValue(final Long param)223     public void setMaxValue(final Long param) {
224         this.maxValue = param;
225     }
226 }
227