oogp2p.search.commands
Class BreadthSearchCommand

java.lang.Object
  extended byoogp2p.InfoReceived
      extended byoogp2p.Command
          extended byoogp2p.search.commands.BreadthSearchCommand

public class BreadthSearchCommand
extends Command

Author:
dtg To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
(package private)  java.lang.String commandName
           
private  int myNumHops
           
private  java.lang.String mySearchString
           
 
Fields inherited from class oogp2p.InfoReceived
myNettableReceiver, myNettableSender
 
Constructor Summary
BreadthSearchCommand()
           
BreadthSearchCommand(Nettable n)
           
 
Method Summary
 void execute()
           
 boolean isType(Nettable n)
           
 InfoReceived makeType(Nettable n)
           
 void setNumHops(int num)
           
 void setSearchString(java.lang.String search)
           
 
Methods inherited from class oogp2p.Command
getUsername, recvInfo, sendInfo, sendInfo
 
Methods inherited from class oogp2p.InfoReceived
getNettableReceiver, getNettableSender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mySearchString

private java.lang.String mySearchString

myNumHops

private int myNumHops

commandName

java.lang.String commandName
Constructor Detail

BreadthSearchCommand

public BreadthSearchCommand()

BreadthSearchCommand

public BreadthSearchCommand(Nettable n)
Method Detail

isType

public boolean isType(Nettable n)
Specified by:
isType in class Command

setSearchString

public void setSearchString(java.lang.String search)

setNumHops

public void setNumHops(int num)

makeType

public InfoReceived makeType(Nettable n)
Specified by:
makeType in class Command

execute

public void execute()
Specified by:
execute in class Command