Commit | Line | Data |
---|---|---|
8c8bf09f ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
1f506a43 | 10 | * Francois Chouinard - Initial API and implementation |
8c8bf09f ASL |
11 | *******************************************************************************/ |
12 | ||
13 | package org.eclipse.linuxtools.tmf.event; | |
14 | ||
15 | /** | |
16 | * <b><u>TmfEventSource</u></b> | |
17 | * <p> | |
18 | * The event source. | |
19 | */ | |
20 | public class TmfEventSource { | |
21 | ||
4ab33d2b | 22 | // ======================================================================== |
8c8bf09f | 23 | // Attributes |
4ab33d2b | 24 | // ======================================================================== |
8c8bf09f | 25 | |
4ab33d2b | 26 | private final Object fSourceId; |
8c8bf09f | 27 | |
4ab33d2b | 28 | // ======================================================================== |
8c8bf09f | 29 | // Constructors |
4ab33d2b | 30 | // ======================================================================== |
8c8bf09f ASL |
31 | |
32 | /** | |
4ab33d2b | 33 | * |
8c8bf09f ASL |
34 | */ |
35 | public TmfEventSource() { | |
4ab33d2b | 36 | this(null); |
8c8bf09f ASL |
37 | } |
38 | ||
39 | /** | |
40 | * @param sourceId | |
41 | */ | |
42 | public TmfEventSource(Object sourceId) { | |
43 | fSourceId = sourceId; | |
44 | } | |
45 | ||
4ab33d2b | 46 | // ======================================================================== |
8c8bf09f | 47 | // Accessors |
4ab33d2b | 48 | // ======================================================================== |
8c8bf09f ASL |
49 | |
50 | /** | |
51 | * @return | |
52 | */ | |
53 | public Object getSourceId() { | |
54 | return fSourceId; | |
55 | } | |
1f506a43 FC |
56 | |
57 | // ======================================================================== | |
58 | // Operators | |
59 | // ======================================================================== | |
60 | ||
61 | @Override | |
62 | public String toString() { | |
63 | return fSourceId.toString(); | |
64 | } | |
65 | ||
8c8bf09f | 66 | } |