Remove all existing @since annotations
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / widgets / timegraph / model / TimeLinkEvent.java
1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
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 * Geneviève Bastien - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model;
14
15 /**
16 * TimeEvent implementation for events that do not involve only one entry, they
17 * have a source entry and destination entry
18 */
19 public class TimeLinkEvent extends TimeEvent implements ILinkEvent {
20
21 /** TimeGraphEntry matching the destination this time event */
22 private ITimeGraphEntry fDestEntry;
23
24 /**
25 * Standard constructor
26 *
27 * @param src
28 * The source entry of this event
29 * @param dst
30 * The destination entry of this event
31 * @param time
32 * The timestamp of this event
33 * @param duration
34 * The duration of the event
35 */
36 public TimeLinkEvent(ITimeGraphEntry src, ITimeGraphEntry dst, long time, long duration) {
37 super(src, time, duration);
38 fDestEntry = dst;
39 }
40
41 /**
42 * Constructor
43 *
44 * @param src
45 * The source entry of this event
46 * @param dst
47 * The destination entry of this event
48 * @param time
49 * The timestamp of this event
50 * @param duration
51 * The duration of this event
52 * @param value
53 * The status assigned to the event
54 */
55 public TimeLinkEvent(ITimeGraphEntry src, ITimeGraphEntry dst, long time, long duration,
56 int value) {
57 super(src, time, duration, value);
58 fDestEntry = dst;
59 }
60
61 @Override
62 public ITimeGraphEntry getDestinationEntry() {
63 return fDestEntry;
64 }
65
66 }
This page took 0.032962 seconds and 5 git commands to generate.