sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/DllLoad.java
changeset 1 1050670c6980
child 6 f65f740e69f9
equal deleted inserted replaced
0:5ad7ad99af01 1:1050670c6980
       
     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 DllLoad
       
    15  *
       
    16  */
       
    17 
       
    18 package com.nokia.s60tools.analyzetool.engine.statistic;
       
    19 
       
    20 /**
       
    21  * Contains information of dll loads
       
    22  *
       
    23  * @author kihe
       
    24  *
       
    25  */
       
    26 public class DllLoad {
       
    27 
       
    28 	/** Dll load end address */
       
    29 	Long endAddress;
       
    30 
       
    31 	/** Time when this dll is loaded. */
       
    32 	Long loadTime;
       
    33 
       
    34 	/** Name of the dll */
       
    35 	String name;
       
    36 
       
    37 	/** Process ID of the dll load */
       
    38 	int processID;
       
    39 
       
    40 	/** Dll load start address */
       
    41 	Long startAddress;
       
    42 
       
    43 	/**
       
    44 	 * Returns dll load end address
       
    45 	 *
       
    46 	 * @return Dll load end address
       
    47 	 */
       
    48 	public Long getEndAddress() {
       
    49 		return endAddress;
       
    50 	}
       
    51 
       
    52 	/**
       
    53 	 * Returns dll item load time
       
    54 	 *
       
    55 	 * @return Time when this dll item is loaded
       
    56 	 */
       
    57 	public Long getLoadTime() {
       
    58 		return loadTime;
       
    59 	}
       
    60 
       
    61 	/**
       
    62 	 * Returns name of the dll load
       
    63 	 *
       
    64 	 * @return Dll load name
       
    65 	 */
       
    66 	public String getName() {
       
    67 		return name;
       
    68 	}
       
    69 
       
    70 	/**
       
    71 	 * Returns dll load process id
       
    72 	 *
       
    73 	 * @return Dll load process id
       
    74 	 */
       
    75 	public int getProcessID() {
       
    76 		return processID;
       
    77 	}
       
    78 
       
    79 	/**
       
    80 	 * Returns dll load start address
       
    81 	 *
       
    82 	 * @return Dll load start address
       
    83 	 */
       
    84 	public Long getStartAddress() {
       
    85 		return startAddress;
       
    86 	}
       
    87 
       
    88 	/**
       
    89 	 * Sets dll load end address
       
    90 	 *
       
    91 	 * @param newEndAddress
       
    92 	 *            Dll load end address
       
    93 	 */
       
    94 	public void setEndAddress(String newEndAddress) {
       
    95 		Long lValue = Long.parseLong(newEndAddress, 16);
       
    96 		this.endAddress = lValue;
       
    97 	}
       
    98 
       
    99 	/**
       
   100 	 * Set load time of this item
       
   101 	 *
       
   102 	 * @param newLoadTime
       
   103 	 *            Time when this dll is loaded.
       
   104 	 */
       
   105 	public void setLoadTime(String newLoadTime) {
       
   106 		Long lValue = Long.parseLong(newLoadTime, 16);
       
   107 		this.loadTime = lValue;
       
   108 	}
       
   109 
       
   110 	/**
       
   111 	 * Sets dll load name
       
   112 	 *
       
   113 	 * @param newName
       
   114 	 *            Dll load name
       
   115 	 */
       
   116 	public void setName(String newName) {
       
   117 		this.name = newName;
       
   118 	}
       
   119 
       
   120 	/**
       
   121 	 * Sets dll load process id
       
   122 	 *
       
   123 	 * @param newProcessID
       
   124 	 *            Dll load process id
       
   125 	 */
       
   126 	public void setProcessID(String newProcessID) {
       
   127 		Integer lValue = Integer.parseInt(newProcessID, 16);
       
   128 		this.processID = lValue;
       
   129 	}
       
   130 
       
   131 	/**
       
   132 	 * Sets dll load start address
       
   133 	 *
       
   134 	 * @param newStartAddress
       
   135 	 *            Dll load start address
       
   136 	 */
       
   137 	public void setStartAddress(String newStartAddress) {
       
   138 		Long lValue = Long.parseLong(newStartAddress, 16);
       
   139 		this.startAddress = lValue;
       
   140 	}
       
   141 }