L2Path.Metric| Constructor and Description |
|---|
L2PathDTO()
Creates dummy L2 path.
|
L2PathDTO(DataPathId srcDpid,
DataPathId dstDpid)
Creates the L2 path for given source and destination device.
|
L2PathDTO(DataPathId srcDpid,
DataPathId dstDpid,
List<Link> paths)
Creates L2 path representing all links between the given source and
destination device.
|
L2PathDTO(DataPathId srcId,
Object... routeElements)
Concise way to instantiate a route.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compares(L2Path path) |
L2Cost |
cost()
Retrieves the cost of the path.
|
boolean |
equals(Object obj) |
DataPathId |
from()
Retrieves the datapathid associated to a source device of the L2 Path.
|
int |
hashCode() |
String |
makeKey() |
L2Path.Metric |
metric()
Returns the type of metric used in computing shortest path.
|
List<Link> |
path()
Returns the sequence of
links, which comprise the path. |
void |
setCost(L2Cost cost) |
DataPathId |
to()
Retrieves the datapathid associated to a destination device of the
L2Path.
|
static L2PathDTO |
valueOf(String pathStr) |
public L2PathDTO()
public L2PathDTO(DataPathId srcDpid, DataPathId dstDpid, List<Link> paths)
srcDpid - Id of the source device of L2 pathdstDpid - Id of the destination device of L2 pathpaths - List of links belongs to the L2 pathpublic L2PathDTO(DataPathId srcDpid, DataPathId dstDpid)
srcDpid - Id of the source device of L2 pathdstDpid - Id of the destination device of L2 pathpublic L2PathDTO(DataPathId srcId, Object... routeElements)
srcId - Id of the source devicerouteElements - path elementspublic List<Link> path()
L2Pathlinks, which comprise the path.public DataPathId from()
L2Pathpublic DataPathId to()
L2Pathpublic L2Path.Metric metric()
L2Pathpublic void setCost(L2Cost cost)
public String makeKey()
Copyright © 2014. All Rights Reserved.