blob: da19ba17e0031e57e73892c7d87666d560a5f783 [file] [log] [blame]
HIGUCHI Yuta20514902013-06-12 11:24:16 -07001package net.onrc.onos.ofcontroller.core;
Pankaj Berde1b8a42f2013-02-15 08:25:03 -08002
HIGUCHI Yuta60a10142013-06-14 15:50:10 -07003import net.onrc.onos.ofcontroller.flowmanager.web.DatapathSummarySerializer;
pingping-lin017a8922013-12-11 11:15:33 +08004import net.onrc.onos.ofcontroller.util.SwitchPort;
Jonathan Hart01f2d272013-04-04 20:03:46 -07005
Pankaj Berde1b8a42f2013-02-15 08:25:03 -08006import org.codehaus.jackson.annotate.JsonIgnore;
7import org.codehaus.jackson.annotate.JsonProperty;
Jonathan Hart01f2d272013-04-04 20:03:46 -07008import org.codehaus.jackson.map.annotate.JsonSerialize;
Pankaj Berde1b8a42f2013-02-15 08:25:03 -08009
10import com.tinkerpop.blueprints.Direction;
11import com.tinkerpop.frames.Adjacency;
Pankaj Berde1b8a42f2013-02-15 08:25:03 -080012import com.tinkerpop.frames.Property;
13import com.tinkerpop.frames.annotations.gremlin.GremlinGroovy;
Pankaj Berdef2f2f032013-06-10 21:08:14 -070014import com.tinkerpop.frames.annotations.gremlin.GremlinParam;
Pankaj Berde1b8a42f2013-02-15 08:25:03 -080015import com.tinkerpop.frames.VertexFrame;
16
Teru68076a42013-06-27 14:57:49 -070017/*
18 * This is the interfaces to make the objects for Cassandra DB.
19 * They are interfaces, but it is also implementation,
20 * so this handles various control to the objects.
21 * Please take a look at tinkerpop/frames annotation doc to understand more.
22 */
Pankaj Berde1b8a42f2013-02-15 08:25:03 -080023public interface INetMapTopologyObjects {
24
Jonathan Hartc8ae36c2013-11-03 19:06:40 -080025 public interface IBaseObject extends VertexFrame {
26
27 @JsonProperty("state")
28 @Property("state")
29 public String getState();
30
31 @Property("state")
32 public void setState(final String state);
33
34 @JsonIgnore
35 @Property("type")
36 public String getType();
37 @Property("type")
38 public void setType(final String type);
39
40 }
Pankaj Berde1b8a42f2013-02-15 08:25:03 -080041
Jonathan Hartc8ae36c2013-11-03 19:06:40 -080042 public interface ISwitchObject extends IBaseObject{
Pankaj Berde1b8a42f2013-02-15 08:25:03 -080043
44 @JsonProperty("dpid")
45 @Property("dpid")
46 public String getDPID();
47
48 @Property("dpid")
49 public void setDPID(String dpid);
50
51 @JsonProperty("ports")
52 @Adjacency(label="on")
53 public Iterable<IPortObject> getPorts();
Pankaj Berde62016142013-04-09 15:35:50 -070054
Jonathan Hartc8ae36c2013-11-03 19:06:40 -080055 // Requires Frames 2.3.0
Pankaj Berdef2f2f032013-06-10 21:08:14 -070056 @JsonIgnore
Toshio Koide46dec822013-06-17 14:21:16 -070057 @GremlinGroovy("it.out('on').has('number',port_num)")
Pankaj Berdef2f2f032013-06-10 21:08:14 -070058 public IPortObject getPort(@GremlinParam("port_num") final short port_num);
Pankaj Berdeda809572013-02-22 15:31:20 -080059
60 @Adjacency(label="on")
Pankaj Berde1b8a42f2013-02-15 08:25:03 -080061 public void addPort(final IPortObject port);
62
63 @Adjacency(label="on")
64 public void removePort(final IPortObject port);
65
66 @JsonIgnore
Toshio Koide46dec822013-06-17 14:21:16 -070067 @GremlinGroovy("it.out('on').out('host')")
Pankaj Berde1b8a42f2013-02-15 08:25:03 -080068 public Iterable<IDeviceObject> getDevices();
Pankaj Berded0079742013-03-27 17:53:25 -070069
70 @JsonIgnore
Teru68076a42013-06-27 14:57:49 -070071 @Adjacency(label="switch",direction = Direction.IN)
Pankaj Berded0079742013-03-27 17:53:25 -070072 public Iterable<IFlowEntry> getFlowEntries();
Pankaj Berdef2f2f032013-06-10 21:08:14 -070073
Pankaj Berde1b8a42f2013-02-15 08:25:03 -080074 }
75
76 public interface IPortObject extends IBaseObject{
77
78 @JsonProperty("number")
79 @Property("number")
80 public Short getNumber();
81
Pankaj Berdebbd38612013-06-22 05:59:12 -070082 @JsonIgnore
83 @Property("port_id")
84 public void setPortId(String id);
85
86 @JsonIgnore
87 @Property("port_id")
88 public String getPortId();
89
Pankaj Berde15193092013-03-21 17:30:14 -070090 @Property("number")
91 public void setNumber(Short n);
92
Pankaj Berde1b8a42f2013-02-15 08:25:03 -080093 @JsonProperty("desc")
94 @Property("desc")
95 public String getDesc();
96
Pankaj Berde15193092013-03-21 17:30:14 -070097 @Property("desc")
98 public void setDesc(String s);
99
100 @JsonIgnore
Pankaj Berdef1404a72013-04-03 11:50:07 -0700101 @Property("port_state")
Pankaj Berde15193092013-03-21 17:30:14 -0700102 public Integer getPortState();
103
104 @Property("port_state")
105 public void setPortState(Integer s);
106
Pankaj Berde1b8a42f2013-02-15 08:25:03 -0800107 @JsonIgnore
Teru87cd2da2013-06-15 20:33:08 -0700108 @Adjacency(label="on",direction = Direction.IN)
Teru80f75132013-06-16 05:16:32 -0700109 public ISwitchObject getSwitch();
Pankaj Berdea6b80c32013-03-29 09:02:56 -0700110
Pankaj Berdeac1a8c32013-02-26 17:45:57 -0800111 @JsonProperty("devices")
Pankaj Berde1b8a42f2013-02-15 08:25:03 -0800112 @Adjacency(label="host")
113 public Iterable<IDeviceObject> getDevices();
114
115 @Adjacency(label="host")
116 public void setDevice(final IDeviceObject device);
117
118 @Adjacency(label="host")
119 public void removeDevice(final IDeviceObject device);
120
Jonathan Hart5b3ad192013-12-06 17:34:46 -0800121
Pankaj Berded0079742013-03-27 17:53:25 -0700122 @JsonIgnore
Teru68076a42013-06-27 14:57:49 -0700123 @Adjacency(label="inport",direction = Direction.IN)
Pankaj Berded0079742013-03-27 17:53:25 -0700124 public Iterable<IFlowEntry> getInFlowEntries();
125
126 @JsonIgnore
Teru68076a42013-06-27 14:57:49 -0700127 @Adjacency(label="outport",direction = Direction.IN)
Pankaj Berded0079742013-03-27 17:53:25 -0700128 public Iterable<IFlowEntry> getOutFlowEntries();
Jonathan Hart5b3ad192013-12-06 17:34:46 -0800129
Pankaj Berded0079742013-03-27 17:53:25 -0700130
Pankaj Berde5fb27632013-04-05 08:56:12 -0700131 @JsonIgnore
132 @Adjacency(label="link")
133 public Iterable<IPortObject> getLinkedPorts();
Pavlin Radoslavovc934b4a2013-11-02 14:53:52 -0700134
135 @JsonIgnore
136 @Adjacency(label="link",direction = Direction.IN)
137 public Iterable<IPortObject> getReverseLinkedPorts();
Pankaj Berde5fb27632013-04-05 08:56:12 -0700138
Pankaj Berdea6b80c32013-03-29 09:02:56 -0700139 @Adjacency(label="link")
140 public void removeLink(final IPortObject dest_port);
141
Pankaj Berde5fb27632013-04-05 08:56:12 -0700142 @Adjacency(label="link")
143 public void setLinkPort(final IPortObject dest_port);
144
Jonathan Hartc8ae36c2013-11-03 19:06:40 -0800145 // @JsonIgnore
146 // @Adjacency(label="link")
147 // public Iterable<ILinkObject> getLinks();
Pankaj Berde1b8a42f2013-02-15 08:25:03 -0800148 }
149
150 public interface IDeviceObject extends IBaseObject {
151
152 @JsonProperty("mac")
153 @Property("dl_addr")
154 public String getMACAddress();
Jonathan Hartc8ae36c2013-11-03 19:06:40 -0800155
Pankaj Berde1b8a42f2013-02-15 08:25:03 -0800156 @Property("dl_addr")
Pankaj Berde2497e542013-02-19 18:51:24 -0800157 public void setMACAddress(String macaddr);
Pankaj Berde1b8a42f2013-02-15 08:25:03 -0800158
Pankaj Berde1b8a42f2013-02-15 08:25:03 -0800159 @JsonIgnore
Teru87cd2da2013-06-15 20:33:08 -0700160 @Adjacency(label="host",direction = Direction.IN)
Pankaj Berde2497e542013-02-19 18:51:24 -0800161 public Iterable<IPortObject> getAttachedPorts();
162
163 @JsonIgnore
Teru68076a42013-06-27 14:57:49 -0700164 @Adjacency(label="host",direction=Direction.IN)
Pankaj Berde2497e542013-02-19 18:51:24 -0800165 public void setHostPort(final IPortObject port);
166
167 @JsonIgnore
Teru68076a42013-06-27 14:57:49 -0700168 @Adjacency(label="host",direction=Direction.IN)
Pankaj Berde2497e542013-02-19 18:51:24 -0800169 public void removeHostPort(final IPortObject port);
Pankaj Berde1b8a42f2013-02-15 08:25:03 -0800170
171 @JsonIgnore
Toshio Koide13260102013-06-17 13:44:27 -0700172 @GremlinGroovy("it.in('host').in('on')")
Pankaj Berde2497e542013-02-19 18:51:24 -0800173 public Iterable<ISwitchObject> getSwitch();
174
Jonathan Hartd6ed62b2013-11-01 13:18:25 -0700175 //
176 // IPv4 Addresses
177 //
178 @JsonProperty("ipv4addresses")
179 @Adjacency(label="hasAddress")
180 public Iterable<IIpv4Address> getIpv4Addresses();
181
182 @JsonIgnore
Jonathan Hartc8ae36c2013-11-03 19:06:40 -0800183 @GremlinGroovy("it.out('hasAddress').has('ipv4_address', ipv4Address)")
Jonathan Hartd6ed62b2013-11-01 13:18:25 -0700184 public IIpv4Address getIpv4Address(@GremlinParam("ipv4Address") final int ipv4Address);
185
186 @Adjacency(label="hasAddress")
187 public void addIpv4Address(final IIpv4Address ipv4Address);
188
189 @Adjacency(label="hasAddress")
190 public void removeIpv4Address(final IIpv4Address ipv4Address);
191
Pankaj Berdeac1a8c32013-02-26 17:45:57 -0800192/* @JsonProperty("dpid")
193 @GremlinGroovy("_().in('host').in('on').next().getProperty('dpid')")
194 public Iterable<String> getSwitchDPID();
195
196 @JsonProperty("number")
197 @GremlinGroovy("_().in('host').transform{it.number}")
198 public Iterable<Short> getPortNumber();
199
Pankaj Berde2497e542013-02-19 18:51:24 -0800200 @JsonProperty("AttachmentPoint")
201 @GremlinGroovy("_().in('host').in('on').path(){it.number}{it.dpid}")
Pankaj Berdeac1a8c32013-02-26 17:45:57 -0800202 public Iterable<SwitchPort> getAttachmentPoints();*/
Pankaj Berde1b8a42f2013-02-15 08:25:03 -0800203 }
Jonathan Hartd6ed62b2013-11-01 13:18:25 -0700204
205 public interface IIpv4Address extends IBaseObject {
206
207 @JsonProperty("ipv4")
208 @Property("ipv4_address")
209 public int getIpv4Address();
210
211 @Property("ipv4_address")
212 public void setIpv4Address(int ipv4Address);
213
214 @JsonIgnore
215 @GremlinGroovy("it.in('hasAddress')")
216 public IDeviceObject getDevice();
217 }
218
Jonathan Hartc8ae36c2013-11-03 19:06:40 -0800219 public interface IFlowPath extends IBaseObject {
Jonathan Hart01f2d272013-04-04 20:03:46 -0700220 @JsonProperty("flowId")
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800221 @Property("flow_id")
222 public String getFlowId();
223
224 @Property("flow_id")
225 public void setFlowId(String flowId);
226
Jonathan Hart01f2d272013-04-04 20:03:46 -0700227 @JsonProperty("installerId")
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800228 @Property("installer_id")
229 public String getInstallerId();
230
231 @Property("installer_id")
232 public void setInstallerId(String installerId);
233
Pavlin Radoslavovd28cf7c2013-10-26 11:27:43 -0700234 @JsonProperty("flowPathType")
235 @Property("flow_path_type")
236 public String getFlowPathType();
237
238 @Property("flow_path_type")
239 public void setFlowPathType(String flowPathType);
240
Pavlin Radoslavov7d4a40e2013-10-27 23:39:40 -0700241 @JsonProperty("flowPathUserState")
242 @Property("user_state")
243 public String getFlowPathUserState();
244
245 @Property("user_state")
246 public void setFlowPathUserState(String userState);
247
Pavlin Radoslavov204b2862013-07-12 14:15:36 -0700248 @JsonProperty("flowPathFlags")
249 @Property("flow_path_flags")
250 public Long getFlowPathFlags();
251
252 @Property("flow_path_flags")
253 public void setFlowPathFlags(Long flowPathFlags);
254
Jonathan Hart01f2d272013-04-04 20:03:46 -0700255 @JsonProperty("srcDpid")
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800256 @Property("src_switch")
257 public String getSrcSwitch();
258
259 @Property("src_switch")
260 public void setSrcSwitch(String srcSwitch);
261
Jonathan Hart01f2d272013-04-04 20:03:46 -0700262 @JsonProperty("srcPort")
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800263 @Property("src_port")
264 public Short getSrcPort();
265
266 @Property("src_port")
267 public void setSrcPort(Short srcPort);
268
Jonathan Hart01f2d272013-04-04 20:03:46 -0700269 @JsonProperty("dstDpid")
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800270 @Property("dst_switch")
271 public String getDstSwitch();
272
273 @Property("dst_switch")
274 public void setDstSwitch(String dstSwitch);
275
Jonathan Hart01f2d272013-04-04 20:03:46 -0700276 @JsonProperty("dstPort")
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800277 @Property("dst_port")
278 public Short getDstPort();
279
280 @Property("dst_port")
281 public void setDstPort(Short dstPort);
282
Jonathan Hart01f2d272013-04-04 20:03:46 -0700283 @JsonProperty("dataPath")
284 @JsonSerialize(using=DatapathSummarySerializer.class)
Pavlin Radoslavovdbaaf2e2013-03-29 04:25:55 -0700285 @Property("data_path_summary")
286 public String getDataPathSummary();
287
288 @Property("data_path_summary")
289 public void setDataPathSummary(String dataPathSummary);
290
Jonathan Hart01f2d272013-04-04 20:03:46 -0700291 @JsonIgnore
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800292 @Adjacency(label="flow", direction=Direction.IN)
293 public Iterable<IFlowEntry> getFlowEntries();
294
295 @Adjacency(label="flow", direction=Direction.IN)
296 public void addFlowEntry(final IFlowEntry flowEntry);
297
298 @Adjacency(label="flow", direction=Direction.IN)
299 public void removeFlowEntry(final IFlowEntry flowEntry);
Pavlin Radoslavov67b3ef32013-04-03 02:44:48 -0700300
Pavlin Radoslavov1bc2c472013-07-17 18:11:37 -0700301 //
302 // Matching fields
303 //
Jonathan Hart01f2d272013-04-04 20:03:46 -0700304 @JsonIgnore
Pavlin Radoslavov67b3ef32013-04-03 02:44:48 -0700305 @Property("matchSrcMac")
306 public String getMatchSrcMac();
307
308 @Property("matchSrcMac")
309 public void setMatchSrcMac(String matchSrcMac);
310
Jonathan Hart01f2d272013-04-04 20:03:46 -0700311 @JsonIgnore
Pavlin Radoslavov67b3ef32013-04-03 02:44:48 -0700312 @Property("matchDstMac")
313 public String getMatchDstMac();
314
315 @Property("matchDstMac")
316 public void setMatchDstMac(String matchDstMac);
317
Jonathan Hart01f2d272013-04-04 20:03:46 -0700318 @JsonIgnore
Pavlin Radoslavovad3a1e62013-07-09 13:30:16 -0700319 @Property("matchEthernetFrameType")
320 public Short getMatchEthernetFrameType();
321
322 @Property("matchEthernetFrameType")
323 public void setMatchEthernetFrameType(Short matchEthernetFrameType);
324
325 @JsonIgnore
326 @Property("matchVlanId")
327 public Short getMatchVlanId();
328
329 @Property("matchVlanId")
330 public void setMatchVlanId(Short matchVlanId);
331
332 @JsonIgnore
333 @Property("matchVlanPriority")
334 public Byte getMatchVlanPriority();
335
336 @Property("matchVlanPriority")
337 public void setMatchVlanPriority(Byte matchVlanPriority);
338
339 @JsonIgnore
Pavlin Radoslavov67b3ef32013-04-03 02:44:48 -0700340 @Property("matchSrcIPv4Net")
341 public String getMatchSrcIPv4Net();
342
343 @Property("matchSrcIPv4Net")
344 public void setMatchSrcIPv4Net(String matchSrcIPv4Net);
345
Jonathan Hart01f2d272013-04-04 20:03:46 -0700346 @JsonIgnore
Pavlin Radoslavov67b3ef32013-04-03 02:44:48 -0700347 @Property("matchDstIPv4Net")
348 public String getMatchDstIPv4Net();
349
350 @Property("matchDstIPv4Net")
351 public void setMatchDstIPv4Net(String matchDstIPv4Net);
Pavlin Radoslavovad3a1e62013-07-09 13:30:16 -0700352
353 @JsonIgnore
354 @Property("matchIpProto")
355 public Byte getMatchIpProto();
356
357 @Property("matchIpProto")
358 public void setMatchIpProto(Byte matchIpProto);
359
360 @JsonIgnore
361 @Property("matchIpToS")
362 public Byte getMatchIpToS();
363
364 @Property("matchIpToS")
365 public void setMatchIpToS(Byte matchIpToS);
366
367 @JsonIgnore
368 @Property("matchSrcTcpUdpPort")
369 public Short getMatchSrcTcpUdpPort();
370
371 @Property("matchSrcTcpUdpPort")
372 public void setMatchSrcTcpUdpPort(Short matchSrcTcpUdpPort);
373
374 @JsonIgnore
375 @Property("matchDstTcpUdpPort")
376 public Short getMatchDstTcpUdpPort();
377
378 @Property("matchDstTcpUdpPort")
379 public void setMatchDstTcpUdpPort(Short matchDstTcpUdpPort);
380
Pavlin Radoslavov1bc2c472013-07-17 18:11:37 -0700381 //
382 // Action-related fields
383 //
384 @Property("actions")
385 public String getActions();
386
387 @Property("actions")
388 public void setActions(String actionsStr);
389
390 //
391 // Other fields
392 //
Pankaj Berded0079742013-03-27 17:53:25 -0700393 @JsonIgnore
Toshio Koide13260102013-06-17 13:44:27 -0700394 @GremlinGroovy("it.in('flow').out('switch')")
Pankaj Berdef1404a72013-04-03 11:50:07 -0700395 public Iterable<ISwitchObject> getSwitches();
Jonathan Hart01f2d272013-04-04 20:03:46 -0700396
397 @JsonIgnore
398 @Property("state")
399 public String getState();
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800400 }
401
Jonathan Hartc8ae36c2013-11-03 19:06:40 -0800402 public interface IFlowEntry extends IBaseObject {
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800403 @Property("flow_entry_id")
404 public String getFlowEntryId();
405
406 @Property("flow_entry_id")
407 public void setFlowEntryId(String flowEntryId);
408
409 @Property("switch_dpid")
410 public String getSwitchDpid();
411
412 @Property("switch_dpid")
413 public void setSwitchDpid(String switchDpid);
414
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800415 @Property("user_state")
416 public String getUserState();
417
418 @Property("user_state")
419 public void setUserState(String userState);
420
421 @Property("switch_state")
422 public String getSwitchState();
423
424 @Property("switch_state")
425 public void setSwitchState(String switchState);
426
427 @Property("error_state_type")
428 public String getErrorStateType();
429
430 @Property("error_state_type")
431 public void setErrorStateType(String errorStateType);
432
433 @Property("error_state_code")
434 public String getErrorStateCode();
435
436 @Property("error_state_code")
437 public void setErrorStateCode(String errorStateCode);
Pavlin Radoslavove2f0de82013-03-12 01:39:30 -0700438
Pavlin Radoslavov1bc2c472013-07-17 18:11:37 -0700439 //
440 // Matching fields
441 //
Pavlin Radoslavove2f0de82013-03-12 01:39:30 -0700442 @Property("matchInPort")
443 public Short getMatchInPort();
444
445 @Property("matchInPort")
446 public void setMatchInPort(Short matchInPort);
447
Pavlin Radoslavove2f0de82013-03-12 01:39:30 -0700448 @Property("matchSrcMac")
449 public String getMatchSrcMac();
450
451 @Property("matchSrcMac")
452 public void setMatchSrcMac(String matchSrcMac);
453
454 @Property("matchDstMac")
455 public String getMatchDstMac();
456
457 @Property("matchDstMac")
458 public void setMatchDstMac(String matchDstMac);
459
Pavlin Radoslavovad3a1e62013-07-09 13:30:16 -0700460 @Property("matchEthernetFrameType")
461 public Short getMatchEthernetFrameType();
462
463 @Property("matchEthernetFrameType")
464 public void setMatchEthernetFrameType(Short matchEthernetFrameType);
465
466 @Property("matchVlanId")
467 public Short getMatchVlanId();
468
469 @Property("matchVlanId")
470 public void setMatchVlanId(Short matchVlanId);
471
472 @Property("matchVlanPriority")
473 public Byte getMatchVlanPriority();
474
475 @Property("matchVlanPriority")
476 public void setMatchVlanPriority(Byte matchVlanPriority);
477
Pavlin Radoslavove2f0de82013-03-12 01:39:30 -0700478 @Property("matchSrcIPv4Net")
479 public String getMatchSrcIPv4Net();
480
481 @Property("matchSrcIPv4Net")
482 public void setMatchSrcIPv4Net(String matchSrcIPv4Net);
483
484 @Property("matchDstIPv4Net")
485 public String getMatchDstIPv4Net();
486
487 @Property("matchDstIPv4Net")
488 public void setMatchDstIPv4Net(String matchDstIPv4Net);
489
Pavlin Radoslavovad3a1e62013-07-09 13:30:16 -0700490 @Property("matchIpProto")
491 public Byte getMatchIpProto();
492
493 @Property("matchIpProto")
494 public void setMatchIpProto(Byte matchIpProto);
495
496 @Property("matchIpToS")
497 public Byte getMatchIpToS();
498
499 @Property("matchIpToS")
500 public void setMatchIpToS(Byte matchIpToS);
501
502 @Property("matchSrcTcpUdpPort")
503 public Short getMatchSrcTcpUdpPort();
504
505 @Property("matchSrcTcpUdpPort")
506 public void setMatchSrcTcpUdpPort(Short matchSrcTcpUdpPort);
507
508 @Property("matchDstTcpUdpPort")
509 public Short getMatchDstTcpUdpPort();
510
511 @Property("matchDstTcpUdpPort")
512 public void setMatchDstTcpUdpPort(Short matchDstTcpUdpPort);
513
Pavlin Radoslavov1bc2c472013-07-17 18:11:37 -0700514 //
515 // Action-related fields
516 //
Pavlin Radoslavovc1bafd12013-07-12 17:00:35 -0700517 @Property("actionOutputPort")
518 public Short getActionOutputPort();
Pavlin Radoslavove2f0de82013-03-12 01:39:30 -0700519
Pavlin Radoslavovc1bafd12013-07-12 17:00:35 -0700520 @Property("actionOutputPort")
521 public void setActionOutputPort(Short actionOutputPort);
Pavlin Radoslavov1d4a1072013-03-28 05:29:49 -0700522
Pavlin Radoslavov1bc2c472013-07-17 18:11:37 -0700523 @Property("actions")
524 public String getActions();
525
526 @Property("actions")
527 public void setActions(String actionsStr);
528
529 //
530 // Other fields
531 //
Pavlin Radoslavov1d4a1072013-03-28 05:29:49 -0700532 @Adjacency(label="flow")
533 public IFlowPath getFlow();
534
535 @Adjacency(label="flow")
536 public void setFlow(IFlowPath flow);
537
Pankaj Berded0079742013-03-27 17:53:25 -0700538 @Adjacency(label="switch")
539 public ISwitchObject getSwitch();
Pavlin Radoslavov1d4a1072013-03-28 05:29:49 -0700540
Pankaj Berded0079742013-03-27 17:53:25 -0700541 @Adjacency(label="switch")
542 public void setSwitch(ISwitchObject sw);
Pavlin Radoslavov1d4a1072013-03-28 05:29:49 -0700543
Pankaj Berded0079742013-03-27 17:53:25 -0700544 @Adjacency(label="inport")
545 public IPortObject getInPort();
Pavlin Radoslavov1d4a1072013-03-28 05:29:49 -0700546
Pankaj Berded0079742013-03-27 17:53:25 -0700547 @Adjacency(label="inport")
548 public void setInPort(IPortObject port);
Pavlin Radoslavov1d4a1072013-03-28 05:29:49 -0700549
Pankaj Berded0079742013-03-27 17:53:25 -0700550 @Adjacency(label="outport")
551 public IPortObject getOutPort();
Pavlin Radoslavov1d4a1072013-03-28 05:29:49 -0700552
Pavlin Radoslavov4fead9c2013-03-28 03:09:27 -0700553 @Adjacency(label="outport")
Pankaj Berded0079742013-03-27 17:53:25 -0700554 public void setOutPort(IPortObject port);
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -0800555 }
Pankaj Berde1b8a42f2013-02-15 08:25:03 -0800556}