public class Route
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Route.Source
Source of the route.
|
| Constructor and Description |
|---|
Route(Route.Source source,
org.onlab.packet.IpPrefix prefix,
org.onlab.packet.IpAddress nextHop)
Creates a route.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
org.onlab.packet.IpAddress |
nextHop()
Returns the next hop IP address.
|
org.onlab.packet.IpPrefix |
prefix()
Returns the IP prefix of the route.
|
Route.Source |
source()
Returns the route source.
|
java.lang.String |
toString() |
public Route(Route.Source source, org.onlab.packet.IpPrefix prefix, org.onlab.packet.IpAddress nextHop)
source - route sourceprefix - IP prefixnextHop - net hop IP addresspublic Route.Source source()
public org.onlab.packet.IpPrefix prefix()
public org.onlab.packet.IpAddress nextHop()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object