|
1 /* |
|
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 * Trace Information contains ID's to identify this trace |
|
17 * |
|
18 */ |
|
19 package com.nokia.traceviewer.engine; |
|
20 |
|
21 /** |
|
22 * Trace Information contains ID's to identify this trace |
|
23 * |
|
24 */ |
|
25 public class TraceInformation { |
|
26 |
|
27 /** |
|
28 * Component Id |
|
29 */ |
|
30 private int componentId; |
|
31 |
|
32 /** |
|
33 * Group Id |
|
34 */ |
|
35 private int groupId; |
|
36 |
|
37 /** |
|
38 * Trace Id |
|
39 */ |
|
40 private int traceId; |
|
41 |
|
42 /** |
|
43 * Gets component Id |
|
44 * |
|
45 * @return the componentId |
|
46 */ |
|
47 public int getComponentId() { |
|
48 return componentId; |
|
49 } |
|
50 |
|
51 /** |
|
52 * Sets component Id |
|
53 * |
|
54 * @param componentId |
|
55 * the componentId to set |
|
56 */ |
|
57 public void setComponentId(int componentId) { |
|
58 this.componentId = componentId; |
|
59 } |
|
60 |
|
61 /** |
|
62 * Gets group Id |
|
63 * |
|
64 * @return the groupId |
|
65 */ |
|
66 public int getGroupId() { |
|
67 return groupId; |
|
68 } |
|
69 |
|
70 /** |
|
71 * Sets group Id |
|
72 * |
|
73 * @param groupId |
|
74 * the groupId to set |
|
75 */ |
|
76 public void setGroupId(int groupId) { |
|
77 this.groupId = groupId; |
|
78 } |
|
79 |
|
80 /** |
|
81 * Gets trace Id |
|
82 * |
|
83 * @return the traceId |
|
84 */ |
|
85 public int getTraceId() { |
|
86 return traceId; |
|
87 } |
|
88 |
|
89 /** |
|
90 * Sets trace Id |
|
91 * |
|
92 * @param traceId |
|
93 * the traceId to set |
|
94 */ |
|
95 public void setTraceId(int traceId) { |
|
96 this.traceId = traceId; |
|
97 } |
|
98 |
|
99 /** |
|
100 * Tells is this Trace Information defined |
|
101 * |
|
102 * @return true if trace information is defined |
|
103 */ |
|
104 public boolean isDefined() { |
|
105 boolean isDefined = false; |
|
106 if (componentId != 0 || groupId != 0 || traceId != 0) { |
|
107 isDefined = true; |
|
108 } |
|
109 return isDefined; |
|
110 } |
|
111 |
|
112 } |