blob: 5444dd2ff8a85d9909dff2178a6a53154786f5ca [file] [log] [blame]
Yuta HIGUCHI54ab8cd2014-02-11 09:43:34 -08001package net.onrc.onos.ofcontroller.networkgraph;
2
3/**
4 * Self-contained Switch object for event
5 *
6 * TODO: We probably want common base class/interface for Self-Contained Event Object
7 *
8 */
9public class SwitchEvent {
10 private final Long dpid;
11
12 public SwitchEvent(Long dpid) {
13 this.dpid = dpid;
14 }
15
16 public Long getDpid() {
17 return dpid;
18 }
19
20 @Override
21 public String toString() {
22 return "[SwitchEvent 0x" + Long.toHexString(dpid) + "]";
23 }
24
25}