blob: 46a1f822857143bc75c30a0d23c072a774af4402 [file] [log] [blame]
Pavlin Radoslavov5363c2a2013-02-18 09:55:42 -08001package net.floodlightcontroller.util;
2
3import net.floodlightcontroller.util.CallerId;
4import net.floodlightcontroller.util.DataPath;
5import net.floodlightcontroller.util.FlowId;
6
7/**
8 * The class representing the Flow Path.
9 */
10public class FlowPath {
11 private FlowId flowId; // The Flow ID
12 private CallerId installerId; // The Caller ID of the path installer
13 private DataPath dataPath; // The data path
14
15 /**
16 * Default constructor.
17 */
18 public FlowPath() {
19 }
20
21 /**
22 * Get the flow path Flow ID.
23 *
24 * @return the flow path Flow ID.
25 */
26 public FlowId flowId() { return flowId; }
27
28 /**
29 * Set the flow path Flow ID.
30 *
31 * @param flowId the flow path Flow ID to set.
32 */
33 public void setFlowId(FlowId flowId) {
34 this.flowId = flowId;
35 }
36
37 /**
38 * Get the Caller ID of the flow path installer.
39 *
40 * @return the Caller ID of the flow path installer.
41 */
42 public CallerId installerId() { return installerId; }
43
44 /**
45 * Set the Caller ID of the flow path installer.
46 *
47 * @param installerId the Caller ID of the flow path installer.
48 */
49 public void setInstallerId(CallerId installerId) {
50 this.installerId = installerId;
51 }
52
53 /**
54 * Get the flow path's data path.
55 *
56 * @return the flow path's data path.
57 */
58 public DataPath dataPath() { return dataPath; }
59
60 /**
61 * Set the flow path's data path.
62 *
63 * @param dataPath the flow path's data path to set.
64 */
65 public void setDataPath(DataPath dataPath) {
66 this.dataPath = dataPath;
67 }
68
69 /**
70 * Convert the flow path to a string.
71 *
72 * @return the flow path as a string.
73 */
74 @Override
75 public String toString() {
76 String ret = "";
77 // TODO: Implement it!
78 return ret;
79 }
80}