public class Path
extends java.lang.Object
Remember for modeling purpose: A flow usually does not reach the output buffer of its sink. Therefore a flow's path should not contain a link to it. Otherwise the flow interference pattern of the network will be too pessimistic, yet, the results remain valid.
Modifier and Type | Field | Description |
---|---|---|
private java.util.LinkedList<Link> |
path_links |
|
private java.util.LinkedList<Server> |
path_servers |
Modifier | Constructor | Description |
---|---|---|
private |
Path() |
|
protected |
Path(Path path) |
|
|
Path(Server single_hop) |
|
protected |
Path(java.util.List<Server> path_servers,
java.util.List<Link> path_links) |
Modifier and Type | Method | Description |
---|---|---|
static Path |
createEmptyPath() |
|
boolean |
equals(java.lang.Object obj) |
|
MaxServiceCurve |
getExtraGamma() |
Returns the convolution of the maximum service curves of all servers on the
given link path
path that have the useExtraGamma flag set.If a server either has no maximum service curve set or useExtraGamma is disabled, calculations take place with the default maximum service curve, i.e., the zero delay burst curve, so the result will not be influenced. |
private MaxServiceCurve |
getExtraGamma(java.util.Collection<Server> servers) |
|
MaxServiceCurve |
getGamma() |
Returns the convolution of the maximum service curves of all servers on the
given lnik path
path that have the useGamma flag set.If a server either has no maximum service curve set or useGamma is disabled, calculations take place with the default maximum service curve, i.e., the zero delay burst curve, so the result will not be influenced. |
private MaxServiceCurve |
getGamma(java.util.Collection<Server> servers) |
|
java.util.LinkedList<Link> |
getLinks() |
|
MaxServiceCurve |
getMaxServiceCurve() |
Returns the convolution of the maximum service curves of all servers on the
given link path
path If a server has no maximum service curve, calculations take place with the default maximum service curve, i.e., the zero delay burst curve, so the result will not be influenced. |
private MaxServiceCurve |
getMaxServiceCurve(java.util.Collection<Server> servers) |
|
Link |
getPrecedingLink(Server s) |
|
Server |
getPrecedingServer(Server s) |
|
java.util.LinkedList<Server> |
getServers() |
|
ServiceCurve |
getServiceCurve() |
Just convolves the service curves on the path and returns the result.
|
private ServiceCurve |
getServiceCurve(java.util.Collection<Server> servers) |
|
Server |
getSink() |
|
Server |
getSource() |
|
Path |
getSubPath(Server from,
Server to) |
|
Link |
getSucceedingLink(Server s) |
|
Server |
getSucceedingServer(Server s) |
|
int |
hashCode() |
|
int |
numLinks() |
|
int |
numServers() |
|
java.lang.String |
toExtendedString() |
|
java.lang.String |
toShortString() |
|
java.lang.String |
toString() |
private java.util.LinkedList<Server> path_servers
private java.util.LinkedList<Link> path_links
private Path()
protected Path(Path path)
public Path(Server single_hop)
public static Path createEmptyPath()
public Server getSource()
public Server getSink()
public int numServers()
public int numLinks()
public java.util.LinkedList<Link> getLinks()
public java.util.LinkedList<Server> getServers()
public Path getSubPath(Server from, Server to) throws java.lang.Exception
from
- Source, inclusive.to
- Sink, inclusive.java.lang.Exception
- No subpath found; most probably an input parameter problem.public Link getPrecedingLink(Server s) throws java.lang.Exception
java.lang.Exception
public Link getSucceedingLink(Server s) throws java.lang.Exception
java.lang.Exception
public Server getPrecedingServer(Server s) throws java.lang.Exception
java.lang.Exception
public Server getSucceedingServer(Server s) throws java.lang.Exception
java.lang.Exception
public ServiceCurve getServiceCurve() throws java.lang.Exception
java.lang.Exception
private ServiceCurve getServiceCurve(java.util.Collection<Server> servers) throws java.lang.Exception
java.lang.Exception
public MaxServiceCurve getGamma() throws java.lang.Exception
path
that have the useGamma flag set.java.lang.Exception
private MaxServiceCurve getGamma(java.util.Collection<Server> servers) throws java.lang.Exception
java.lang.Exception
public MaxServiceCurve getExtraGamma() throws java.lang.Exception
path
that have the useExtraGamma flag set.java.lang.Exception
private MaxServiceCurve getExtraGamma(java.util.Collection<Server> servers) throws java.lang.Exception
java.lang.Exception
public MaxServiceCurve getMaxServiceCurve() throws java.lang.Exception
path
java.lang.Exception
private MaxServiceCurve getMaxServiceCurve(java.util.Collection<Server> servers) throws java.lang.Exception
java.lang.Exception
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toShortString()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toExtendedString()