Jonathan Hart | e37e4e2 | 2014-05-13 19:12:02 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.topology; |
| 2 | |
| 3 | |
Praseed Balakrishnan | 57ed843 | 2014-06-26 11:49:56 -0700 | [diff] [blame] | 4 | |
Yuta HIGUCHI | c45e0b6 | 2014-06-24 22:34:20 -0700 | [diff] [blame] | 5 | /** |
| 6 | * Base class for Topology Objects. |
| 7 | */ |
Praseed Balakrishnan | 57ed843 | 2014-06-26 11:49:56 -0700 | [diff] [blame] | 8 | public abstract class TopologyObject { |
Jonathan Hart | e37e4e2 | 2014-05-13 19:12:02 -0700 | [diff] [blame] | 9 | |
Yuta HIGUCHI | c45e0b6 | 2014-06-24 22:34:20 -0700 | [diff] [blame] | 10 | /** |
| 11 | * Topology instance this object belongs to. |
| 12 | */ |
Jonathan Hart | e37e4e2 | 2014-05-13 19:12:02 -0700 | [diff] [blame] | 13 | protected final Topology topology; |
| 14 | |
Yuta HIGUCHI | c45e0b6 | 2014-06-24 22:34:20 -0700 | [diff] [blame] | 15 | /** |
| 16 | * Constructor. |
| 17 | * |
| 18 | * @param topology Topology instance this object belongs to |
| 19 | */ |
| 20 | protected TopologyObject(Topology topology) { |
Jonathan Hart | e37e4e2 | 2014-05-13 19:12:02 -0700 | [diff] [blame] | 21 | this.topology = topology; |
| 22 | } |
| 23 | |
Praseed Balakrishnan | 57ed843 | 2014-06-26 11:49:56 -0700 | [diff] [blame] | 24 | |
| 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 Hart | e37e4e2 | 2014-05-13 19:12:02 -0700 | [diff] [blame] | 33 | } |