blob: e25e812057e57b6d7fa6d731ec9a1177e958d5a9 [file] [log] [blame]
Jonathan Hart062a2e82014-02-03 09:41:57 -08001package net.onrc.onos.ofcontroller.networkgraph;
2
3import java.net.InetAddress;
4import java.util.Collection;
5
6import net.floodlightcontroller.util.MACAddress;
7
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -08008/**
9 * Interface of Device Object exposed to the "NB" read-only Topology.
10 *
11 * Everything returned by these interfaces must be either Unmodifiable view,
12 * immutable object, or a copy of the original "SB" In-memory Topology.
13 *
14 */
Jonathan Hart062a2e82014-02-03 09:41:57 -080015public interface Device {
16 public MACAddress getMacAddress();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080017
Jonathan Hart062a2e82014-02-03 09:41:57 -080018 public Collection<InetAddress> getIpAddress();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080019
Jonathan Hart062a2e82014-02-03 09:41:57 -080020 public Iterable<Port> getAttachmentPoints();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080021
Jonathan Hart062a2e82014-02-03 09:41:57 -080022 public long getLastSeenTime();
23}