public class ToroidalLinkResolver extends LinkResolver
Constructor and Description |
---|
ToroidalLinkResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
isHeardBy(Node n1,
Node n2)
Determines whether a message sent from the first
Node could be recieved by the second one. |
double |
toroidalDistance(Node n1,
Node n2) |
public boolean isHeardBy(Node n1, Node n2)
LinkResolver
Node
could be recieved by the second one.isHeardBy
in class LinkResolver
n1
- the emitter Node
n2
- the receiver Node
true
if n2 can recieve a message from n1; false
otherwise