|
1 /* |
|
2 * Copyright (c) 2008-2009 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: Definitions for the class ActiveSubtests |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.s60tools.analyzetool.ui; |
|
19 |
|
20 /** |
|
21 * Holds information of one active subtest. |
|
22 * |
|
23 * @author kihe |
|
24 * |
|
25 */ |
|
26 public class ActiveSubtests { |
|
27 |
|
28 /** Active subtest name. */ |
|
29 private final String name; |
|
30 |
|
31 /** Subtest target name. */ |
|
32 private final String targetName; |
|
33 |
|
34 /** Subtest process id. */ |
|
35 private final int processID; |
|
36 |
|
37 /** |
|
38 * Constructor. |
|
39 * |
|
40 * @param subTestName |
|
41 * Subtest name |
|
42 * @param subTestTargetName |
|
43 * Subtest target name |
|
44 * @param newProcessID |
|
45 * Subtest process id |
|
46 */ |
|
47 public ActiveSubtests(final String subTestName, final String subTestTargetName, |
|
48 final int newProcessID) { |
|
49 name = subTestName; |
|
50 targetName = subTestTargetName; |
|
51 processID = newProcessID; |
|
52 } |
|
53 |
|
54 /** |
|
55 * Gets active subtest name. |
|
56 * |
|
57 * @return Subtest name |
|
58 */ |
|
59 public final String getName() { |
|
60 return name; |
|
61 } |
|
62 |
|
63 /** |
|
64 * Gets active subtest process id. |
|
65 * |
|
66 * @return Process id |
|
67 */ |
|
68 public final String getProcessID() { |
|
69 return Integer.toString(processID ,16); |
|
70 } |
|
71 |
|
72 /** |
|
73 * Gets active subtest target name. |
|
74 * |
|
75 * @return Target name |
|
76 */ |
|
77 public final String getTargetName() { |
|
78 return targetName; |
|
79 } |
|
80 } |