Commit | Line | Data |
---|---|---|
e73a4ba5 GB |
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.linuxtools.tmf.core.event.matching; | |
14 | ||
15 | import org.eclipse.linuxtools.tmf.core.event.ITmfEvent; | |
16 | import org.eclipse.linuxtools.tmf.core.event.matching.TmfNetworkEventMatching.Direction; | |
17 | ||
18 | /** | |
fa5993ff | 19 | * Interface for all network match definitions, ie traces with send and receive |
e73a4ba5 GB |
20 | * events |
21 | * | |
22 | * @author Geneviève Bastien | |
23 | * @since 3.0 | |
24 | */ | |
fa5993ff | 25 | public interface ITmfNetworkMatchDefinition extends ITmfMatchEventDefinition { |
e73a4ba5 GB |
26 | |
27 | /** | |
28 | * Returns the direction of this event, whether 'send', 'receive' or null if | |
29 | * event is neither | |
30 | * | |
31 | * @param event | |
32 | * The event to check | |
33 | * @return The direction of this event, null if uninteresting event | |
34 | */ | |
fa5993ff | 35 | Direction getDirection(ITmfEvent event); |
e73a4ba5 GB |
36 | |
37 | } |