1 /*
2 * Copyright 2010 Fraunhofer Gesellschaft, Munich, Germany,
3 * for its Fraunhofer Institute for Computer Architecture and Software
4 * Technology (FIRST), Berlin, Germany. All rights reserved.
5 * http://www.first.fraunhofer.de/
6 */
7
8 package net.kwfgrid.gwes;
9
10 import net.kwfgrid.gworkflowdl.structure.Edge;
11 import net.kwfgrid.gworkflowdl.structure.Token;
12
13 /**
14 * @author Andreas Hoheisel
15 * (<a href="http://www.andreas-hoheisel.de">www.andreas-hoheisel.de</a>)
16 * @version $Id: TokenParameter.java 1419 2010-11-01 14:12:17Z hoheisel $
17 */
18 public class TokenParameter {
19
20 public static enum Scope {
21 READ,
22 INPUT,
23 WRITE,
24 OUTPUT
25 }
26
27 /** Edge to place with token */
28 public Edge edge;
29
30 /** Token that contains the parameter */
31 public Token token;
32
33 /** Scope of the parameter */
34 public final Scope scope;
35
36 /**
37 * Constructor with token = null (dummy token).
38 * @param edge
39 * @param scope
40 */
41 public TokenParameter(Edge edge, Scope scope) {
42 this.edge = edge;
43 this.scope = scope;
44 this.token = null;
45 }
46
47 /**
48 * Constructor.
49 * @param edge
50 * @param token
51 * @param scope
52 */
53 public TokenParameter(Edge edge, Token token, Scope scope) {
54 this.edge = edge;
55 this.token = token;
56 this.scope = scope;
57 }
58
59 }