public class RoutingPart
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Tupel |
end |
RoutingFrame.RoutingSegment |
rs |
Tupel |
start |
Constructor and Description |
---|
RoutingPart(RoutingFrame.RoutingSegment rs) |
Modifier and Type | Method and Description |
---|---|
RoutingFrame.RoutePoint |
getEndRoutePoint()
Get RoutePoint of end
|
RoutingPart |
getPrefixPart(Tupel middlePoint,
RoutingFrame.RoutePoint rp)
Split the routing part at the given middle point and return the prefix part.
|
RoutingFrame.RoutePoint |
getStartRoutePoint()
Get RoutePoint of start
|
RoutingPart |
getSuffixPart(Tupel middlePoint,
RoutingFrame.RoutePoint rp)
Split the routing part at the given middle point and return the suffix part.
|
void |
setEndRoutePoint(RoutingFrame.RoutePoint rpEnd)
Set RoutePoint of end
|
void |
setStartRoutePoint(RoutingFrame.RoutePoint rpStart)
Set RoutePoint of start
|
java.lang.String |
toString() |
public RoutingFrame.RoutingSegment rs
public Tupel start
public Tupel end
public RoutingPart(RoutingFrame.RoutingSegment rs)
public RoutingPart getSuffixPart(Tupel middlePoint, RoutingFrame.RoutePoint rp)
middlePoint
- new startrp
- RoutePoint of the new startpublic RoutingPart getPrefixPart(Tupel middlePoint, RoutingFrame.RoutePoint rp)
middlePoint
- new startrp
- RoutePoint of the new endpublic RoutingFrame.RoutePoint getStartRoutePoint()
public void setStartRoutePoint(RoutingFrame.RoutePoint rpStart)
rpStart
- RoutePointpublic RoutingFrame.RoutePoint getEndRoutePoint()
public void setEndRoutePoint(RoutingFrame.RoutePoint rpEnd)
rpEnd
- RoutePointpublic java.lang.String toString()
toString
in class java.lang.Object