Commit | Line | Data |
---|---|---|
73005152 BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2005, 2006, 2011 IBM Corporation and others. | |
3 | * All rights reserved. This program and the accompanying materials | |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
7 | * $Id: TimeEvent.java,v 1.2 2006/09/20 20:56:25 ewchan Exp $ | |
8 | * | |
9 | * Contributors: | |
10 | * IBM - Initial API and implementation | |
11 | * Bernd Hufmann - Updated for TMF | |
12 | **********************************************************************/ | |
13 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core; | |
14 | ||
4df4581d | 15 | import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp; |
73005152 BH |
16 | |
17 | /** | |
18 | * @author sveyrier | |
19 | * | |
20 | */ | |
21 | public class SDTimeEvent { | |
22 | ||
4df4581d | 23 | protected ITmfTimestamp time; |
73005152 BH |
24 | protected int event; |
25 | protected ITimeRange node; | |
26 | ||
4df4581d | 27 | public SDTimeEvent(ITmfTimestamp _time, int _event, ITimeRange _node) { |
73005152 BH |
28 | time = _time; |
29 | event = _event; | |
30 | node = _node; | |
31 | } | |
32 | ||
4df4581d | 33 | public ITmfTimestamp getTime() { |
73005152 BH |
34 | return time; |
35 | } | |
36 | ||
37 | public int getEvent() { | |
38 | return event; | |
39 | } | |
40 | ||
41 | public ITimeRange getGraphNode() { | |
42 | return node; | |
43 | } | |
44 | ||
45 | } |