sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi/src/com/nokia/carbide/cpp/internal/pi/model/CusSample.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 the License "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 */ |
|
17 |
|
18 package com.nokia.carbide.cpp.internal.pi.model; |
|
19 |
|
20 import java.awt.Color; |
|
21 |
|
22 public class CusSample extends GenericSample { |
|
23 |
|
24 private static final long serialVersionUID =-7966954495413654189L; |
|
25 |
|
26 public String name; |
|
27 public double value; |
|
28 public Color color; |
|
29 public String comment; |
|
30 |
|
31 public CusSample(long p_sampleNum, String p_name, double p_value, Color p_color) |
|
32 { |
|
33 sampleSynchTime = p_sampleNum; |
|
34 name = p_name; |
|
35 value = p_value; |
|
36 color = p_color; |
|
37 } |
|
38 |
|
39 public String toString() |
|
40 { |
|
41 String sampleNum = new Long(sampleSynchTime).toString(); |
|
42 String valueString = new Double(value).toString(); |
|
43 return sampleNum+" "+name+" "+valueString+" "+color.toString(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
|
44 } |
|
45 |
|
46 } |