Class AntResponsePair

java.lang.Object
  extended by AntResponsePair
All Implemented Interfaces:
java.io.Serializable

public class AntResponsePair
extends java.lang.Object
implements java.io.Serializable

Used by the Responder in order to reply to Ants' requests about the network's structure.

See Also:
Serialized Form

Field Summary
 boolean killAnt
           
 java.util.Vector listOfLocations
           
 
Constructor Summary
AntResponsePair(boolean killAnt, java.util.Vector NeighborsOfCurrentNode)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

killAnt

public boolean killAnt

listOfLocations

public java.util.Vector listOfLocations
Constructor Detail

AntResponsePair

public AntResponsePair(boolean killAnt,
                       java.util.Vector NeighborsOfCurrentNode)
Parameters:
killAnt - Set to true in order to kill the Ant.
NeighborsOfCurrentNode - Set empty if the Ant was not allowed to ask this query. Otherwise there should be at least one Location and not more than four.