trace/traceviewer/com.nokia.traceviewer/src/com/nokia/traceviewer/api/DataProcessorLocation.java
changeset 11 5b9d4d8641ce
equal deleted inserted replaced
10:ed1c9f64298a 11:5b9d4d8641ce
       
     1 /*
       
     2  * Copyright (c) 2007-2010 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:
       
    15  *
       
    16  * Contains the location of DataProcessors in the DataProcessors list
       
    17  *
       
    18  */
       
    19 package com.nokia.traceviewer.api;
       
    20 
       
    21 /**
       
    22  * Contains the location of DataProcessors
       
    23  * 
       
    24  */
       
    25 final class DataProcessorLocation {
       
    26 
       
    27 	/**
       
    28 	 * Location of this location
       
    29 	 */
       
    30 	private DPLocation location;
       
    31 
       
    32 	/**
       
    33 	 * Priority level of this location
       
    34 	 */
       
    35 	private int priority;
       
    36 
       
    37 	/**
       
    38 	 * Constructor
       
    39 	 * 
       
    40 	 * @param location
       
    41 	 *            location
       
    42 	 * @param priority
       
    43 	 *            priority
       
    44 	 */
       
    45 	public DataProcessorLocation(DPLocation location, int priority) {
       
    46 		this.location = location;
       
    47 		this.priority = priority;
       
    48 	}
       
    49 
       
    50 	/**
       
    51 	 * Gets the location
       
    52 	 * 
       
    53 	 * @return the location
       
    54 	 */
       
    55 	public DPLocation getLocation() {
       
    56 		return location;
       
    57 	}
       
    58 
       
    59 	/**
       
    60 	 * Sets the location
       
    61 	 * 
       
    62 	 * @param location
       
    63 	 *            the location to set
       
    64 	 */
       
    65 	public void setLocation(DPLocation location) {
       
    66 		this.location = location;
       
    67 	}
       
    68 
       
    69 	/**
       
    70 	 * Gets the priority
       
    71 	 * 
       
    72 	 * @return the priority
       
    73 	 */
       
    74 	public int getPriority() {
       
    75 		return priority;
       
    76 	}
       
    77 
       
    78 	/**
       
    79 	 * Sets the priority
       
    80 	 * 
       
    81 	 * @param priority
       
    82 	 *            the priority to set
       
    83 	 */
       
    84 	public void setPriority(int priority) {
       
    85 		this.priority = priority;
       
    86 	}
       
    87 }