oogp2p.chord.commands
Class ChordCommand

java.lang.Object
  extended byoogp2p.InfoReceived
      extended byoogp2p.Command
          extended byoogp2p.chord.commands.ChordCommand

public class ChordCommand
extends Command

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

Field Summary
private  java.lang.String commandName
           
private  int myNumHops
           
 
Fields inherited from class oogp2p.InfoReceived
myNettableReceiver, myNettableSender
 
Constructor Summary
ChordCommand()
           
ChordCommand(Nettable n)
           
 
Method Summary
 void execute()
           
 boolean isType(Nettable n)
           
 InfoReceived makeType(Nettable n)
           
 void setNumHops(int num)
           
 
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

myNumHops

private int myNumHops

commandName

private java.lang.String commandName
Constructor Detail

ChordCommand

public ChordCommand()

ChordCommand

public ChordCommand(Nettable n)
Method Detail

isType

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

makeType

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

setNumHops

public void setNumHops(int num)

execute

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