sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.power/src/com/nokia/carbide/cpp/pi/power/PwrSample.java
changeset 2 b9ab3b238396
child 12 ae255c9aa552
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.power/src/com/nokia/carbide/cpp/pi/power/PwrSample.java	Thu Feb 11 15:32:31 2010 +0200
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of the License "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description: 
+ *
+ */
+
+package com.nokia.carbide.cpp.pi.power;
+
+import com.nokia.carbide.cpp.internal.pi.model.GenericSample;
+
+/**
+ * A class representing a multimeter reading in amperes
+ */
+
+public class PwrSample extends GenericSample 
+{   
+	private static final long serialVersionUID = 3943366134331361386L;
+	public double current;
+    public double capacity;
+    public double voltage;
+    
+    public PwrSample( long time, double ampValue, double voltage, double capacity ) 
+	{
+        this.current = ampValue;
+        this.capacity = capacity;
+        this.voltage = voltage;
+        this.sampleSynchTime = time;
+    }
+
+    public String toString() 
+	{
+        return Messages.getString("PwrSample.toString1") + this.sampleSynchTime + Messages.getString("PwrSample.toString2") //$NON-NLS-1$ //$NON-NLS-2$
+        		+ this.current + Messages.getString("PwrSample.toString3") + this.voltage + Messages.getString("PwrSample.toString4") //$NON-NLS-1$ //$NON-NLS-2$
+        		+ this.capacity +Messages.getString("PwrSample.toString5"); //$NON-NLS-1$
+    }
+}