blob: 3de47ce5914d0a4f948bd412dc277eed4a652481 [file] [log] [blame]
package net.onrc.onos.ofcontroller.networkgraph;
import java.util.Collection;
import net.onrc.onos.ofcontroller.util.FlowEntry;
public interface Switch {
public long getDpid();
public Collection<Port> getPorts();
public Port getPort(short number);
// Flows
public Collection<FlowEntry> getFlowEntries();
// Graph traversal API
public Iterable<Switch> getNeighbors();
public Iterable<Link> getLinks();
public Link getLinkToNeighbor(long dpid);
public Collection<Device> getDevices();
}