Yuta HIGUCHI | 54ab8cd | 2014-02-11 09:43:34 -0800 | [diff] [blame] | 1 | package 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 | */ |
| 9 | public 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 | } |