Move alltests plugin to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / model / TimeLinkEvent.java
CommitLineData
bec1f1ac
GB
1/*******************************************************************************
2 * Copyright (c) 2013 É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
13package org.eclipse.linuxtools.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 *
4b121c48 19 * @since 2.1
bec1f1ac
GB
20 */
21public class TimeLinkEvent extends TimeEvent implements ILinkEvent {
22
23 /** TimeGraphEntry matching the destination this time event */
24 private ITimeGraphEntry fDestEntry;
25
26 /**
27 * Standard constructor
28 *
29 * @param src
30 * The source entry of this event
31 * @param dst
32 * The destination entry of this event
33 * @param time
34 * The timestamp of this event
35 * @param duration
36 * The duration of the event
37 */
38 public TimeLinkEvent(ITimeGraphEntry src, ITimeGraphEntry dst, long time, long duration) {
39 super(src, time, duration);
40 fDestEntry = dst;
41 }
42
43 /**
44 * Constructor
45 *
46 * @param src
47 * The source entry of this event
48 * @param dst
49 * The destination entry of this event
50 * @param time
51 * The timestamp of this event
52 * @param duration
53 * The duration of this event
54 * @param value
55 * The status assigned to the event
56 */
57 public TimeLinkEvent(ITimeGraphEntry src, ITimeGraphEntry dst, long time, long duration,
58 int value) {
59 super(src, time, duration, value);
60 fDestEntry = dst;
61 }
62
63 @Override
64 public ITimeGraphEntry getDestinationEntry() {
65 return fDestEntry;
66 }
67
68}
This page took 0.043997 seconds and 5 git commands to generate.