ants.p2p
Class DirectNeighbour
java.lang.Object
ants.p2p.DirectNeighbour
- All Implemented Interfaces:
- Neighbour
public class DirectNeighbour
- extends java.lang.Object
- implements Neighbour
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectNeighbour
public DirectNeighbour(java.lang.String ip,
Ant local)
throws java.lang.Exception
- Throws:
java.lang.Exception
route
public SenderThread route(Message m)
- Specified by:
route
in interface Neighbour
send
public void send(Message m)
throws java.lang.Exception
- Specified by:
send
in interface Neighbour
- Throws:
java.lang.Exception
getIdent
public java.lang.String getIdent()
- Specified by:
getIdent
in interface Neighbour
getAnt
public Ant getAnt()
- Specified by:
getAnt
in interface Neighbour
incQueuedMessages
public void incQueuedMessages()
- Specified by:
incQueuedMessages
in interface Neighbour
decQueuedMessages
public void decQueuedMessages()
- Specified by:
decQueuedMessages
in interface Neighbour
getQueuedMessages
public long getQueuedMessages()
- Specified by:
getQueuedMessages
in interface Neighbour