sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.instr/src/com/nokia/carbide/cpp/pi/instr/BinaryReaderResult.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.pi.instr; |
|
19 |
|
20 import com.nokia.carbide.cpp.internal.pi.model.Binary; |
|
21 |
|
22 |
|
23 public class BinaryReaderResult |
|
24 { |
|
25 public Binary[] possibleBinaries; |
|
26 public Boolean[] checksumValues; |
|
27 |
|
28 public String toString() |
|
29 { |
|
30 String s = ""; //$NON-NLS-1$ |
|
31 for (int i=0;i<possibleBinaries.length;i++) |
|
32 { |
|
33 s = s+"\n"+possibleBinaries[i].binaryName+" @ "+possibleBinaries[i].startAddress+" "+checksumValues[i].booleanValue(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
|
34 } |
|
35 return s; |
|
36 } |
|
37 |
|
38 public boolean hasAnyChecksumCorrectValues() |
|
39 { |
|
40 for (int i=0;i<this.checksumValues.length;i++) |
|
41 { |
|
42 if (this.checksumValues[i].booleanValue() == true) return true; |
|
43 } |
|
44 return false; |
|
45 } |
|
46 |
|
47 } |