83b103090e0c92eda05bc1b1ecbdb534ba10b0a4
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / core / SDTimeEvent.java
1 /**********************************************************************
2 * Copyright (c) 2005, 2006 IBM Corporation and others.
3 * Copyright (c) 2011, 2012 Ericsson.
4 *
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *
10 * Contributors:
11 * IBM - Initial API and implementation
12 * Bernd Hufmann - Updated for TMF
13 **********************************************************************/
14 package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core;
15
16 import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
17
18 /**
19 * Class implementation of a sequence diagram time event.
20 *
21 * @version 1.0
22 * @author sveyrier
23 *
24 */
25 public class SDTimeEvent {
26
27 // ------------------------------------------------------------------------
28 // Attributes
29 // ------------------------------------------------------------------------
30
31 /**
32 * The time stamp of the event
33 */
34 protected ITmfTimestamp fTimestamp;
35 /**
36 * The event index.
37 */
38 protected int fEvent;
39 /**
40 * The time range implementing node.
41 */
42 protected ITimeRange fNode;
43
44 // ------------------------------------------------------------------------
45 // Constructors
46 // ------------------------------------------------------------------------
47 /**
48 * The default constructor.
49 *
50 * @param time The time stamp of the event.
51 * @param event The event index.
52 * @param node The time range implementing node.
53 * @since 2.0
54 */
55 public SDTimeEvent(ITmfTimestamp time, int event, ITimeRange node) {
56 fTimestamp = time;
57 fEvent = event;
58 fNode = node;
59 }
60
61 // ------------------------------------------------------------------------
62 // Operations
63 // ------------------------------------------------------------------------
64 /**
65 * Returns the timestamp of the event.
66 *
67 * @return the timestamp of the event.
68 * @since 2.0
69 */
70 public ITmfTimestamp getTime() {
71 return fTimestamp;
72 }
73
74 /**
75 * Returns the event index.
76 *
77 * @return the event index.
78 */
79 public int getEvent() {
80 return fEvent;
81 }
82
83 /**
84 * Returns the time range implementing node.
85 *
86 * @return the time range implementing node.
87 */
88 public ITimeRange getGraphNode() {
89 return fNode;
90 }
91
92 }
This page took 0.032061 seconds and 5 git commands to generate.