blob: cdf51bd6fc06293c8cf1879dfc4c07ad6ab8eabc [file] [log] [blame]
Jonathan Harte37e4e22014-05-13 19:12:02 -07001package net.onrc.onos.core.topology;
2
3
Praseed Balakrishnan57ed8432014-06-26 11:49:56 -07004
Yuta HIGUCHIc45e0b62014-06-24 22:34:20 -07005/**
6 * Base class for Topology Objects.
7 */
Praseed Balakrishnan57ed8432014-06-26 11:49:56 -07008public abstract class TopologyObject {
Jonathan Harte37e4e22014-05-13 19:12:02 -07009
Yuta HIGUCHIc45e0b62014-06-24 22:34:20 -070010 /**
11 * Topology instance this object belongs to.
12 */
Jonathan Harte37e4e22014-05-13 19:12:02 -070013 protected final Topology topology;
14
Yuta HIGUCHIc45e0b62014-06-24 22:34:20 -070015 /**
16 * Constructor.
17 *
18 * @param topology Topology instance this object belongs to
19 */
20 protected TopologyObject(Topology topology) {
Jonathan Harte37e4e22014-05-13 19:12:02 -070021 this.topology = topology;
22 }
23
Praseed Balakrishnan57ed8432014-06-26 11:49:56 -070024
25 /**
26 * Returns the type of topology object.
27 *
28 * @return the type of the topology object
29 */
30 public abstract String getType();
31
32
Jonathan Harte37e4e22014-05-13 19:12:02 -070033}