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: | |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
6c13869b | 13 | package org.eclipse.linuxtools.tmf.core.signal; |
8c8bf09f ASL |
14 | |
15 | /** | |
4b7b3670 FC |
16 | * Base class for TMF signals |
17 | * | |
18 | * @version 1.0 | |
19 | * @author Francois Chouinard | |
8c8bf09f ASL |
20 | */ |
21 | public abstract class TmfSignal { | |
22 | ||
23 | // The signal originator | |
24 | private final Object fSource; | |
25 | ||
fc6ccf6f FC |
26 | private int fReference; |
27 | ||
8c8bf09f | 28 | public TmfSignal(Object source) { |
fc6ccf6f FC |
29 | this(source, 0); |
30 | } | |
31 | ||
32 | public TmfSignal(Object source, int reference) { | |
8c8bf09f | 33 | fSource = source; |
fc6ccf6f | 34 | fReference = reference; |
8c8bf09f ASL |
35 | } |
36 | ||
37 | public Object getSource() { | |
38 | return fSource; | |
39 | } | |
fc6ccf6f FC |
40 | |
41 | public void setReference(int reference) { | |
42 | fReference = reference; | |
43 | } | |
44 | ||
45 | public int getReference() { | |
46 | return fReference; | |
47 | } | |
48 | ||
8c8bf09f | 49 | } |