|
MATES 3.0-rc2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mates.sim.models.link.TemporalLinkModel
A link model that defines link quality as a function of time. Link
quality rules are added using the setLinkQuality(org.mates.sim.Host,
org.mates.sim.Host, double, long)
function. This is useful when
the link quality is not a function of the mobility model. For
example, say one has a log file containing real-world network
connectivity data; one would add a new temporal link quality rule
for each change in the topology in the file.
Constructor Summary | |
TemporalLinkModel()
Default constructor. |
Method Summary | |
void |
clearLinkQualities()
Resets all link quality rules such that the link quality between all hosts is always 0. |
double |
getLinkQuality(Host host1,
Host host2)
This function should return a real number in the range from 0.0 to 1.0, where 1.0 is a link of maximum quality. |
double |
getLinkQuality(Host fromHost,
Host toHost,
long atTime)
Returns the link quality between fromHost and
toHost at time atTime . |
void |
setLinkQuality(Host fromHost,
Host toHost,
double quality,
long startTime)
Records the link quality between hosts starting at a specific time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemporalLinkModel()
Method Detail |
public void setLinkQuality(Host fromHost, Host toHost, double quality, long startTime)
startTime
, the
preexisting quality will be overridden.
public void clearLinkQualities()
public double getLinkQuality(Host fromHost, Host toHost, long atTime)
fromHost
and
toHost
at time atTime
.
public double getLinkQuality(Host host1, Host host2)
LinkModel
getLinkQuality
in interface LinkModel
|
MATES 3.0-rc2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |