1 /*******************************************************************************
2 * Copyright (c) 2014 École Polytechnique de Montréal
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
10 * Francis Giraldeau - Initial implementation and API
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.tmf
.core
.synchronization
.graph
;
16 * An edge in the {@link SyncGraph}
18 * @author Francis Giraldeau <francis.giraldeau@gmail.com>
22 * The edge annotation type
24 public class Edge
<V
, E
> {
26 private final V fFrom
;
28 private final E fLabel
;
36 * The destination vertex
38 * The edge annotation label
40 public Edge(V from
, V to
, E label
) {
49 * @return The origin vertex
58 * @return The destination vertex
67 * @return The edge label
74 public String
toString() {
75 return String
.format("(%s, %s, %s)", fFrom
, fTo
, fLabel
); //$NON-NLS-1$
This page took 0.059211 seconds and 5 git commands to generate.