sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi/src/com/nokia/carbide/cpp/internal/pi/test/TraceAdditionalInfo.java
changeset 2 b9ab3b238396
child 5 844b047e260d
equal deleted inserted replaced
1:1050670c6980 2:b9ab3b238396
       
     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.test;
       
    19 
       
    20 import java.io.Serializable;
       
    21 import java.util.HashMap;
       
    22 import java.util.Set;
       
    23 import java.util.Vector;
       
    24 import java.util.Map.Entry;
       
    25 
       
    26 /**
       
    27  * Abstract class as boilerplate for plugins to define their additional info
       
    28  * 
       
    29  */
       
    30 public class TraceAdditionalInfo implements Serializable {
       
    31 
       
    32 	/**
       
    33 	 * 
       
    34 	 */
       
    35 	private static final long serialVersionUID = -5759753038732844008L;
       
    36 	
       
    37 	private HashMap<Integer, Vector<Object>> additional_info = new HashMap<Integer, Vector<Object>>();
       
    38 	
       
    39 	public void addAdditionalInfo(int traceId, Vector<Object> additionalInfo) {
       
    40 		additional_info.put(new Integer(traceId), additionalInfo);
       
    41 	}
       
    42 	
       
    43 	public Set<Entry<Integer, Vector<Object>>> getAdditionalInfoSet() {
       
    44 		return additional_info.entrySet();
       
    45 	}
       
    46 
       
    47 	public int size() {
       
    48 		return additional_info.size();
       
    49 	}
       
    50 }