d87cf58d1fbb76f8184abc1d9ce523e833e56247
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / core / SDTimeEvent.java
1 /**********************************************************************
2 * Copyright (c) 2005, 2013 IBM Corporation, Ericsson
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 *
8 * Contributors:
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
11 **********************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core;
14
15 import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
16
17 /**
18 * Class implementation of a sequence diagram time event.
19 *
20 * @version 1.0
21 * @author sveyrier
22 *
23 */
24 public class SDTimeEvent {
25
26 // ------------------------------------------------------------------------
27 // Attributes
28 // ------------------------------------------------------------------------
29
30 /**
31 * The time stamp of the event
32 */
33 protected ITmfTimestamp fTimestamp;
34 /**
35 * The event index.
36 */
37 protected int fEvent;
38 /**
39 * The time range implementing node.
40 */
41 protected ITimeRange fNode;
42
43 // ------------------------------------------------------------------------
44 // Constructors
45 // ------------------------------------------------------------------------
46 /**
47 * The default constructor.
48 *
49 * @param time The time stamp of the event.
50 * @param event The event index.
51 * @param node The time range implementing node.
52 * @since 2.0
53 */
54 public SDTimeEvent(ITmfTimestamp time, int event, ITimeRange node) {
55 fTimestamp = time;
56 fEvent = event;
57 fNode = node;
58 }
59
60 // ------------------------------------------------------------------------
61 // Operations
62 // ------------------------------------------------------------------------
63 /**
64 * Returns the timestamp of the event.
65 *
66 * @return the timestamp of the event.
67 * @since 2.0
68 */
69 public ITmfTimestamp getTime() {
70 return fTimestamp;
71 }
72
73 /**
74 * Returns the event index.
75 *
76 * @return the event index.
77 */
78 public int getEvent() {
79 return fEvent;
80 }
81
82 /**
83 * Returns the time range implementing node.
84 *
85 * @return the time range implementing node.
86 */
87 public ITimeRange getGraphNode() {
88 return fNode;
89 }
90
91 }
This page took 0.031481 seconds and 4 git commands to generate.