analysis: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / views / uml2sd / core / SDTimeEvent.java
1 /**********************************************************************
2 * Copyright (c) 2005, 2014 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.tracecompass.tmf.ui.views.uml2sd.core;
14
15 import org.eclipse.tracecompass.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 private final ITmfTimestamp fTimestamp;
34 /**
35 * The event index.
36 */
37 private final int fEvent;
38 /**
39 * The time range implementing node.
40 */
41 private final 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 */
53 public SDTimeEvent(ITmfTimestamp time, int event, ITimeRange node) {
54 fTimestamp = time;
55 fEvent = event;
56 fNode = node;
57 }
58
59 // ------------------------------------------------------------------------
60 // Operations
61 // ------------------------------------------------------------------------
62 /**
63 * Returns the timestamp of the event.
64 *
65 * @return the timestamp of the event.
66 */
67 public ITmfTimestamp getTime() {
68 return fTimestamp;
69 }
70
71 /**
72 * Returns the event index.
73 *
74 * @return the event index.
75 */
76 public int getEvent() {
77 return fEvent;
78 }
79
80 /**
81 * Returns the time range implementing node.
82 *
83 * @return the time range implementing node.
84 */
85 public ITimeRange getGraphNode() {
86 return fNode;
87 }
88
89 }
This page took 0.048018 seconds and 5 git commands to generate.