|
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.QuadraticLinkModel
org.mates.sim.models.link.GridLinkModel
Link model for a grid. If two hosts are currently on the same row
or column of the grid, the QuadraticLinkModel
is applied to
them, else the hosts are disconnected.
Constructor Summary | |
GridLinkModel(Grid grid)
Default constructor. |
Method Summary | |
double |
getLinkQuality(Host host1,
Host host2)
Returns the link quality from host1 to
host2 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GridLinkModel(Grid grid)
Method Detail |
public double getLinkQuality(Host host1, Host host2)
host1
to
host2
. If the two hosts are currently on the same
row or column of the grid, the QuadraticLinkModel
is
applied to them. Otherwise, the hosts are disconnected and
0.0
is returned.
getLinkQuality
in interface LinkModel
getLinkQuality
in class QuadraticLinkModel
[0, 1]
corresponding
to the link quality with which host1
can transmit
to host2
.
|
MATES 3.0-rc2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |