• 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 import ohos.devtools.views.trace.DField;
19 
20 /**
21  * Clock
22  *
23  * @since 2021/08/25 00:31
24  */
25 public class Clock {
26     @DField(name = "name")
27     private String name;
28     @DField(name = "srcname")
29     private String srcname;
30     @DField(name = "num")
31     private Integer num;
32 
33     /**
34      * get clock name
35      *
36      * @return name
37      */
getName()38     public String getName() {
39         return name;
40     }
41 
42     /**
43      * set clock name
44      *
45      * @param name name
46      */
setName(String name)47     public void setName(String name) {
48         this.name = name;
49     }
50 
51     /**
52      * get source name
53      *
54      * @return source name
55      */
getSrcname()56     public String getSrcname() {
57         return srcname;
58     }
59 
60     /**
61      * set source name
62      *
63      * @param srcname source name
64      */
setSrcname(String srcname)65     public void setSrcname(String srcname) {
66         this.srcname = srcname;
67     }
68 
69     /**
70      * get clock num
71      *
72      * @return num
73      */
getNum()74     public Integer getNum() {
75         return num;
76     }
77 
78     /**
79      * set clock num
80      *
81      * @param num num
82      */
setNum(Integer num)83     public void setNum(Integer num) {
84         this.num = num;
85     }
86 }
87