tmf: Rename packages to org.eclipse.tracecompass.*
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / event / matching / TmfEventDependency.java
1 /*******************************************************************************
2 * Copyright (c) 2013 École Polytechnique de Montréal
3 *
4 * All rights reserved. This program and the accompanying materials are made
5 * 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 implementation and API
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.tmf.core.event.matching;
14
15 import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
16
17 /**
18 * Represents a dependency (match) between two events, where source event leads
19 * to destination event
20 *
21 * @author Geneviève Bastien
22 * @since 3.0
23 */
24 public class TmfEventDependency {
25
26 private final ITmfEvent fSourceEvent;
27 private final ITmfEvent fDestEvent;
28
29 /**
30 * Constructor
31 *
32 * @param source
33 * The source event of this dependency
34 * @param destination
35 * The destination event of this dependency
36 */
37 public TmfEventDependency(final ITmfEvent source, final ITmfEvent destination) {
38 fSourceEvent = source;
39 fDestEvent = destination;
40 }
41
42 /**
43 * Getter for fSourceEvent
44 *
45 * @return The source event
46 */
47 public ITmfEvent getSourceEvent() {
48 return fSourceEvent;
49 }
50
51 /**
52 * Getter for fDestEvent
53 *
54 * @return the Destination event
55 */
56 public ITmfEvent getDestinationEvent() {
57 return fDestEvent;
58 }
59
60 }
This page took 0.031628 seconds and 5 git commands to generate.