blob: 0be5323f0ac134bd2ac21264baf63cd3e685003f [file] [log] [blame]
tomedf06bb2014-08-27 16:22:15 -07001package org.onlab.onos.net.topology;
2
3import org.onlab.onos.event.AbstractEvent;
tomedf06bb2014-08-27 16:22:15 -07004
5/**
6 * Describes network topology event.
7 */
8public class TopologyEvent extends AbstractEvent<TopologyEvent.Type, Topology> {
9
10 /**
11 * Type of topology events.
12 */
13 public enum Type {
14 /**
15 * Signifies that topology has changed.
16 */
17 TOPOLOGY_CHANGED
18 }
19
20 /**
21 * Creates an event of a given type and for the specified topology and the
22 * current time.
23 *
24 * @param type topology event type
25 * @param topology event topology subject
26 */
27 public TopologyEvent(Type type, Topology topology) {
28 super(type, topology);
29 }
30
31 /**
32 * Creates an event of a given type and for the specified topology and time.
33 *
34 * @param type link event type
35 * @param topology event topology subject
36 * @param time occurrence time
37 */
38 public TopologyEvent(Type type, Topology topology, long time) {
39 super(type, topology, time);
40 }
41
42}