HIGUCHI Yuta | 2051490 | 2013-06-12 11:24:16 -0700 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.core; |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 2 | |
HIGUCHI Yuta | efa5488 | 2013-06-12 13:13:02 -0700 | [diff] [blame] | 3 | import net.onrc.onos.ofcontroller.flowcache.web.DatapathSummarySerializer; |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 4 | |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 5 | import org.codehaus.jackson.annotate.JsonIgnore; |
| 6 | import org.codehaus.jackson.annotate.JsonProperty; |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 7 | import org.codehaus.jackson.map.annotate.JsonSerialize; |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 8 | |
| 9 | import com.tinkerpop.blueprints.Direction; |
| 10 | import com.tinkerpop.frames.Adjacency; |
| 11 | import com.tinkerpop.frames.Incidence; |
| 12 | import com.tinkerpop.frames.Property; |
| 13 | import com.tinkerpop.frames.annotations.gremlin.GremlinGroovy; |
Pankaj Berde | f2f2f03 | 2013-06-10 21:08:14 -0700 | [diff] [blame] | 14 | import com.tinkerpop.frames.annotations.gremlin.GremlinParam; |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 15 | import com.tinkerpop.frames.VertexFrame; |
| 16 | |
| 17 | public interface INetMapTopologyObjects { |
| 18 | |
| 19 | public interface IBaseObject extends VertexFrame { |
| 20 | |
| 21 | @JsonProperty("state") |
| 22 | @Property("state") |
| 23 | public String getState(); |
Pankaj Berde | 1cde50b | 2013-02-19 20:16:06 -0800 | [diff] [blame] | 24 | |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 25 | @Property("state") |
| 26 | public void setState(final String state); |
| 27 | |
| 28 | @JsonIgnore |
| 29 | @Property("type") |
| 30 | public String getType(); |
| 31 | @Property("type") |
| 32 | public void setType(final String type); |
| 33 | |
| 34 | } |
| 35 | |
| 36 | public interface ISwitchObject extends IBaseObject{ |
| 37 | |
| 38 | @JsonProperty("dpid") |
| 39 | @Property("dpid") |
| 40 | public String getDPID(); |
| 41 | |
| 42 | @Property("dpid") |
| 43 | public void setDPID(String dpid); |
| 44 | |
| 45 | @JsonProperty("ports") |
| 46 | @Adjacency(label="on") |
| 47 | public Iterable<IPortObject> getPorts(); |
Pankaj Berde | 6201614 | 2013-04-09 15:35:50 -0700 | [diff] [blame] | 48 | |
| 49 | // Requires Frames 2.3.0 |
Pankaj Berde | f2f2f03 | 2013-06-10 21:08:14 -0700 | [diff] [blame] | 50 | @JsonIgnore |
Toshio Koide | 46dec82 | 2013-06-17 14:21:16 -0700 | [diff] [blame^] | 51 | @GremlinGroovy("it.out('on').has('number',port_num)") |
Pankaj Berde | f2f2f03 | 2013-06-10 21:08:14 -0700 | [diff] [blame] | 52 | public IPortObject getPort(@GremlinParam("port_num") final short port_num); |
Pankaj Berde | da80957 | 2013-02-22 15:31:20 -0800 | [diff] [blame] | 53 | |
| 54 | @Adjacency(label="on") |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 55 | public void addPort(final IPortObject port); |
| 56 | |
| 57 | @Adjacency(label="on") |
| 58 | public void removePort(final IPortObject port); |
| 59 | |
| 60 | @JsonIgnore |
Toshio Koide | 46dec82 | 2013-06-17 14:21:16 -0700 | [diff] [blame^] | 61 | @GremlinGroovy("it.out('on').out('host')") |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 62 | public Iterable<IDeviceObject> getDevices(); |
Pankaj Berde | d007974 | 2013-03-27 17:53:25 -0700 | [diff] [blame] | 63 | |
| 64 | @JsonIgnore |
| 65 | @Incidence(label="switch",direction = Direction.IN) |
| 66 | public Iterable<IFlowEntry> getFlowEntries(); |
Pankaj Berde | f2f2f03 | 2013-06-10 21:08:14 -0700 | [diff] [blame] | 67 | |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | public interface IPortObject extends IBaseObject{ |
| 71 | |
| 72 | @JsonProperty("number") |
| 73 | @Property("number") |
| 74 | public Short getNumber(); |
| 75 | |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 76 | @Property("number") |
| 77 | public void setNumber(Short n); |
| 78 | |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 79 | @JsonProperty("desc") |
| 80 | @Property("desc") |
| 81 | public String getDesc(); |
| 82 | |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 83 | @Property("desc") |
| 84 | public void setDesc(String s); |
| 85 | |
| 86 | @JsonIgnore |
Pankaj Berde | f1404a7 | 2013-04-03 11:50:07 -0700 | [diff] [blame] | 87 | @Property("port_state") |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 88 | public Integer getPortState(); |
| 89 | |
| 90 | @Property("port_state") |
| 91 | public void setPortState(Integer s); |
| 92 | |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 93 | @JsonIgnore |
Toshio Koide | 1326010 | 2013-06-17 13:44:27 -0700 | [diff] [blame] | 94 | @GremlinGroovy("it.in('on')") |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 95 | public ISwitchObject getSwitch(); |
Pankaj Berde | a6b80c3 | 2013-03-29 09:02:56 -0700 | [diff] [blame] | 96 | |
Pankaj Berde | ac1a8c3 | 2013-02-26 17:45:57 -0800 | [diff] [blame] | 97 | @JsonProperty("devices") |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 98 | @Adjacency(label="host") |
| 99 | public Iterable<IDeviceObject> getDevices(); |
| 100 | |
| 101 | @Adjacency(label="host") |
| 102 | public void setDevice(final IDeviceObject device); |
| 103 | |
| 104 | @Adjacency(label="host") |
| 105 | public void removeDevice(final IDeviceObject device); |
| 106 | |
Pankaj Berde | d007974 | 2013-03-27 17:53:25 -0700 | [diff] [blame] | 107 | @JsonIgnore |
| 108 | @Incidence(label="inport",direction = Direction.IN) |
| 109 | public Iterable<IFlowEntry> getInFlowEntries(); |
| 110 | |
| 111 | @JsonIgnore |
| 112 | @Incidence(label="outport",direction = Direction.IN) |
| 113 | public Iterable<IFlowEntry> getOutFlowEntries(); |
| 114 | |
Pankaj Berde | 5fb2763 | 2013-04-05 08:56:12 -0700 | [diff] [blame] | 115 | @JsonIgnore |
| 116 | @Adjacency(label="link") |
| 117 | public Iterable<IPortObject> getLinkedPorts(); |
| 118 | |
Pankaj Berde | a6b80c3 | 2013-03-29 09:02:56 -0700 | [diff] [blame] | 119 | @Adjacency(label="link") |
| 120 | public void removeLink(final IPortObject dest_port); |
| 121 | |
Pankaj Berde | 5fb2763 | 2013-04-05 08:56:12 -0700 | [diff] [blame] | 122 | @Adjacency(label="link") |
| 123 | public void setLinkPort(final IPortObject dest_port); |
| 124 | |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 125 | // @JsonIgnore |
| 126 | // @Adjacency(label="link") |
| 127 | // public Iterable<ILinkObject> getLinks(); |
| 128 | } |
| 129 | |
| 130 | public interface IDeviceObject extends IBaseObject { |
| 131 | |
| 132 | @JsonProperty("mac") |
| 133 | @Property("dl_addr") |
| 134 | public String getMACAddress(); |
| 135 | @Property("dl_addr") |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 136 | public void setMACAddress(String macaddr); |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 137 | |
| 138 | @JsonProperty("ipv4") |
| 139 | @Property("nw_addr") |
| 140 | public String getIPAddress(); |
Toshio Koide | 1326010 | 2013-06-17 13:44:27 -0700 | [diff] [blame] | 141 | @Property("nw_addr") |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 142 | public void setIPAddress(String ipaddr); |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 143 | |
| 144 | @JsonIgnore |
| 145 | @Incidence(label="host",direction = Direction.IN) |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 146 | public Iterable<IPortObject> getAttachedPorts(); |
| 147 | |
| 148 | @JsonIgnore |
| 149 | @Incidence(label="host",direction=Direction.IN) |
| 150 | public void setHostPort(final IPortObject port); |
| 151 | |
| 152 | @JsonIgnore |
| 153 | @Incidence(label="host",direction=Direction.IN) |
| 154 | public void removeHostPort(final IPortObject port); |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 155 | |
| 156 | @JsonIgnore |
Toshio Koide | 1326010 | 2013-06-17 13:44:27 -0700 | [diff] [blame] | 157 | @GremlinGroovy("it.in('host').in('on')") |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 158 | public Iterable<ISwitchObject> getSwitch(); |
| 159 | |
Pankaj Berde | ac1a8c3 | 2013-02-26 17:45:57 -0800 | [diff] [blame] | 160 | /* @JsonProperty("dpid") |
| 161 | @GremlinGroovy("_().in('host').in('on').next().getProperty('dpid')") |
| 162 | public Iterable<String> getSwitchDPID(); |
| 163 | |
| 164 | @JsonProperty("number") |
| 165 | @GremlinGroovy("_().in('host').transform{it.number}") |
| 166 | public Iterable<Short> getPortNumber(); |
| 167 | |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 168 | @JsonProperty("AttachmentPoint") |
| 169 | @GremlinGroovy("_().in('host').in('on').path(){it.number}{it.dpid}") |
Pankaj Berde | ac1a8c3 | 2013-02-26 17:45:57 -0800 | [diff] [blame] | 170 | public Iterable<SwitchPort> getAttachmentPoints();*/ |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 171 | } |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 172 | |
| 173 | public interface IFlowPath extends IBaseObject { |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 174 | @JsonProperty("flowId") |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 175 | @Property("flow_id") |
| 176 | public String getFlowId(); |
| 177 | |
| 178 | @Property("flow_id") |
| 179 | public void setFlowId(String flowId); |
| 180 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 181 | @JsonProperty("installerId") |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 182 | @Property("installer_id") |
| 183 | public String getInstallerId(); |
| 184 | |
| 185 | @Property("installer_id") |
| 186 | public void setInstallerId(String installerId); |
| 187 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 188 | @JsonProperty("srcDpid") |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 189 | @Property("src_switch") |
| 190 | public String getSrcSwitch(); |
| 191 | |
| 192 | @Property("src_switch") |
| 193 | public void setSrcSwitch(String srcSwitch); |
| 194 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 195 | @JsonProperty("srcPort") |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 196 | @Property("src_port") |
| 197 | public Short getSrcPort(); |
| 198 | |
| 199 | @Property("src_port") |
| 200 | public void setSrcPort(Short srcPort); |
| 201 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 202 | @JsonProperty("dstDpid") |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 203 | @Property("dst_switch") |
| 204 | public String getDstSwitch(); |
| 205 | |
| 206 | @Property("dst_switch") |
| 207 | public void setDstSwitch(String dstSwitch); |
| 208 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 209 | @JsonProperty("dstPort") |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 210 | @Property("dst_port") |
| 211 | public Short getDstPort(); |
| 212 | |
| 213 | @Property("dst_port") |
| 214 | public void setDstPort(Short dstPort); |
| 215 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 216 | @JsonProperty("dataPath") |
| 217 | @JsonSerialize(using=DatapathSummarySerializer.class) |
Pavlin Radoslavov | dbaaf2e | 2013-03-29 04:25:55 -0700 | [diff] [blame] | 218 | @Property("data_path_summary") |
| 219 | public String getDataPathSummary(); |
| 220 | |
| 221 | @Property("data_path_summary") |
| 222 | public void setDataPathSummary(String dataPathSummary); |
| 223 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 224 | @JsonIgnore |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 225 | @Adjacency(label="flow", direction=Direction.IN) |
| 226 | public Iterable<IFlowEntry> getFlowEntries(); |
| 227 | |
| 228 | @Adjacency(label="flow", direction=Direction.IN) |
| 229 | public void addFlowEntry(final IFlowEntry flowEntry); |
| 230 | |
| 231 | @Adjacency(label="flow", direction=Direction.IN) |
| 232 | public void removeFlowEntry(final IFlowEntry flowEntry); |
Pavlin Radoslavov | 67b3ef3 | 2013-04-03 02:44:48 -0700 | [diff] [blame] | 233 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 234 | @JsonIgnore |
Pavlin Radoslavov | 67b3ef3 | 2013-04-03 02:44:48 -0700 | [diff] [blame] | 235 | @Property("matchEthernetFrameType") |
| 236 | public Short getMatchEthernetFrameType(); |
| 237 | |
| 238 | @Property("matchEthernetFrameType") |
| 239 | public void setMatchEthernetFrameType(Short matchEthernetFrameType); |
| 240 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 241 | @JsonIgnore |
Pavlin Radoslavov | 67b3ef3 | 2013-04-03 02:44:48 -0700 | [diff] [blame] | 242 | @Property("matchSrcMac") |
| 243 | public String getMatchSrcMac(); |
| 244 | |
| 245 | @Property("matchSrcMac") |
| 246 | public void setMatchSrcMac(String matchSrcMac); |
| 247 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 248 | @JsonIgnore |
Pavlin Radoslavov | 67b3ef3 | 2013-04-03 02:44:48 -0700 | [diff] [blame] | 249 | @Property("matchDstMac") |
| 250 | public String getMatchDstMac(); |
| 251 | |
| 252 | @Property("matchDstMac") |
| 253 | public void setMatchDstMac(String matchDstMac); |
| 254 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 255 | @JsonIgnore |
Pavlin Radoslavov | 67b3ef3 | 2013-04-03 02:44:48 -0700 | [diff] [blame] | 256 | @Property("matchSrcIPv4Net") |
| 257 | public String getMatchSrcIPv4Net(); |
| 258 | |
| 259 | @Property("matchSrcIPv4Net") |
| 260 | public void setMatchSrcIPv4Net(String matchSrcIPv4Net); |
| 261 | |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 262 | @JsonIgnore |
Pavlin Radoslavov | 67b3ef3 | 2013-04-03 02:44:48 -0700 | [diff] [blame] | 263 | @Property("matchDstIPv4Net") |
| 264 | public String getMatchDstIPv4Net(); |
| 265 | |
| 266 | @Property("matchDstIPv4Net") |
| 267 | public void setMatchDstIPv4Net(String matchDstIPv4Net); |
Pankaj Berde | d007974 | 2013-03-27 17:53:25 -0700 | [diff] [blame] | 268 | |
| 269 | @JsonIgnore |
Toshio Koide | 1326010 | 2013-06-17 13:44:27 -0700 | [diff] [blame] | 270 | @GremlinGroovy("it.in('flow').out('switch')") |
Pankaj Berde | f1404a7 | 2013-04-03 11:50:07 -0700 | [diff] [blame] | 271 | public Iterable<ISwitchObject> getSwitches(); |
Jonathan Hart | 01f2d27 | 2013-04-04 20:03:46 -0700 | [diff] [blame] | 272 | |
| 273 | @JsonIgnore |
| 274 | @Property("state") |
| 275 | public String getState(); |
Pavlin Radoslavov | 710e2a7 | 2013-04-08 02:31:05 +0000 | [diff] [blame] | 276 | |
| 277 | @JsonIgnore |
| 278 | @Property("user_state") |
| 279 | public String getUserState(); |
| 280 | |
| 281 | @Property("user_state") |
| 282 | public void setUserState(String userState); |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 283 | } |
| 284 | |
| 285 | public interface IFlowEntry extends IBaseObject { |
| 286 | @Property("flow_entry_id") |
| 287 | public String getFlowEntryId(); |
| 288 | |
| 289 | @Property("flow_entry_id") |
| 290 | public void setFlowEntryId(String flowEntryId); |
| 291 | |
| 292 | @Property("switch_dpid") |
| 293 | public String getSwitchDpid(); |
| 294 | |
| 295 | @Property("switch_dpid") |
| 296 | public void setSwitchDpid(String switchDpid); |
| 297 | |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 298 | @Property("user_state") |
| 299 | public String getUserState(); |
| 300 | |
| 301 | @Property("user_state") |
| 302 | public void setUserState(String userState); |
| 303 | |
| 304 | @Property("switch_state") |
| 305 | public String getSwitchState(); |
| 306 | |
| 307 | @Property("switch_state") |
| 308 | public void setSwitchState(String switchState); |
| 309 | |
| 310 | @Property("error_state_type") |
| 311 | public String getErrorStateType(); |
| 312 | |
| 313 | @Property("error_state_type") |
| 314 | public void setErrorStateType(String errorStateType); |
| 315 | |
| 316 | @Property("error_state_code") |
| 317 | public String getErrorStateCode(); |
| 318 | |
| 319 | @Property("error_state_code") |
| 320 | public void setErrorStateCode(String errorStateCode); |
Pavlin Radoslavov | e2f0de8 | 2013-03-12 01:39:30 -0700 | [diff] [blame] | 321 | |
| 322 | @Property("matchInPort") |
| 323 | public Short getMatchInPort(); |
| 324 | |
| 325 | @Property("matchInPort") |
| 326 | public void setMatchInPort(Short matchInPort); |
| 327 | |
| 328 | @Property("matchEthernetFrameType") |
| 329 | public Short getMatchEthernetFrameType(); |
| 330 | |
| 331 | @Property("matchEthernetFrameType") |
| 332 | public void setMatchEthernetFrameType(Short matchEthernetFrameType); |
| 333 | |
| 334 | @Property("matchSrcMac") |
| 335 | public String getMatchSrcMac(); |
| 336 | |
| 337 | @Property("matchSrcMac") |
| 338 | public void setMatchSrcMac(String matchSrcMac); |
| 339 | |
| 340 | @Property("matchDstMac") |
| 341 | public String getMatchDstMac(); |
| 342 | |
| 343 | @Property("matchDstMac") |
| 344 | public void setMatchDstMac(String matchDstMac); |
| 345 | |
| 346 | @Property("matchSrcIPv4Net") |
| 347 | public String getMatchSrcIPv4Net(); |
| 348 | |
| 349 | @Property("matchSrcIPv4Net") |
| 350 | public void setMatchSrcIPv4Net(String matchSrcIPv4Net); |
| 351 | |
| 352 | @Property("matchDstIPv4Net") |
| 353 | public String getMatchDstIPv4Net(); |
| 354 | |
| 355 | @Property("matchDstIPv4Net") |
| 356 | public void setMatchDstIPv4Net(String matchDstIPv4Net); |
| 357 | |
| 358 | @Property("actionOutput") |
| 359 | public Short getActionOutput(); |
| 360 | |
| 361 | @Property("actionOutput") |
| 362 | public void setActionOutput(Short actionOutput); |
Pavlin Radoslavov | 1d4a107 | 2013-03-28 05:29:49 -0700 | [diff] [blame] | 363 | |
| 364 | @Adjacency(label="flow") |
| 365 | public IFlowPath getFlow(); |
| 366 | |
| 367 | @Adjacency(label="flow") |
| 368 | public void setFlow(IFlowPath flow); |
| 369 | |
Pankaj Berde | d007974 | 2013-03-27 17:53:25 -0700 | [diff] [blame] | 370 | @Adjacency(label="switch") |
| 371 | public ISwitchObject getSwitch(); |
Pavlin Radoslavov | 1d4a107 | 2013-03-28 05:29:49 -0700 | [diff] [blame] | 372 | |
Pankaj Berde | d007974 | 2013-03-27 17:53:25 -0700 | [diff] [blame] | 373 | @Adjacency(label="switch") |
| 374 | public void setSwitch(ISwitchObject sw); |
Pavlin Radoslavov | 1d4a107 | 2013-03-28 05:29:49 -0700 | [diff] [blame] | 375 | |
Pankaj Berde | d007974 | 2013-03-27 17:53:25 -0700 | [diff] [blame] | 376 | @Adjacency(label="inport") |
| 377 | public IPortObject getInPort(); |
Pavlin Radoslavov | 1d4a107 | 2013-03-28 05:29:49 -0700 | [diff] [blame] | 378 | |
Pankaj Berde | d007974 | 2013-03-27 17:53:25 -0700 | [diff] [blame] | 379 | @Adjacency(label="inport") |
| 380 | public void setInPort(IPortObject port); |
Pavlin Radoslavov | 1d4a107 | 2013-03-28 05:29:49 -0700 | [diff] [blame] | 381 | |
Pankaj Berde | d007974 | 2013-03-27 17:53:25 -0700 | [diff] [blame] | 382 | @Adjacency(label="outport") |
| 383 | public IPortObject getOutPort(); |
Pavlin Radoslavov | 1d4a107 | 2013-03-28 05:29:49 -0700 | [diff] [blame] | 384 | |
Pavlin Radoslavov | 4fead9c | 2013-03-28 03:09:27 -0700 | [diff] [blame] | 385 | @Adjacency(label="outport") |
Pankaj Berde | d007974 | 2013-03-27 17:53:25 -0700 | [diff] [blame] | 386 | public void setOutPort(IPortObject port); |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 387 | } |
Pankaj Berde | 1b8a42f | 2013-02-15 08:25:03 -0800 | [diff] [blame] | 388 | } |