ants.p2p
Class DirectNeighbour

java.lang.Object
  extended by ants.p2p.DirectNeighbour
All Implemented Interfaces:
Neighbour

public class DirectNeighbour
extends java.lang.Object
implements Neighbour


Constructor Summary
DirectNeighbour(java.lang.String ip, Ant local)
           
 
Method Summary
 void decQueuedMessages()
           
 Ant getAnt()
           
 java.lang.String getIdent()
           
 long getQueuedMessages()
           
 void incQueuedMessages()
           
 SenderThread route(Message m)
           
 void send(Message m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectNeighbour

public DirectNeighbour(java.lang.String ip,
                       Ant local)
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

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