|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTrawlerNodeARPCommands
public class TrawlerNodeARPCommands
Provides method to create and parse commands sent between the Trawler and the emulated node
Constructor Summary | |
---|---|
TrawlerNodeARPCommands()
|
Method Summary | |
---|---|
static java.lang.String |
addNeighbor(int fishAddr,
java.net.InetAddress ipAddress,
int port)
Return a command to add a neighbor. |
static boolean |
receiveAddNeighbor(java.lang.String cmd,
java.util.ArrayList data)
Parse an addNeighbor command. |
static int |
receiveRemoveNeighbor(java.lang.String cmd)
Parse a removeNeighbor command |
static boolean |
receiveReset(java.lang.String cmd)
Parse a reset command |
static java.lang.String |
removeNeighbor(int fishAddr)
Return a command to remove a neighbor |
static java.lang.String |
reset()
Return a command to reset a node |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrawlerNodeARPCommands()
Method Detail |
---|
public static java.lang.String addNeighbor(int fishAddr, java.net.InetAddress ipAddress, int port)
fishAddr
- Fishnet address of neighboripAddress
- IP Address of neighborport
- Port the neighbor is using for communication with peers
public static java.lang.String removeNeighbor(int fishAddr)
fishAddr
- Fishnet address of neighbor to remove
public static java.lang.String reset()
public static boolean receiveAddNeighbor(java.lang.String cmd, java.util.ArrayList data)
cmd
- The command receiveddata
- An ArrayList that will be populated with the data if this is an addNeighbor command.
data[0] = fishned address and data[1] = EmulatorARPData.
public static int receiveRemoveNeighbor(java.lang.String cmd)
cmd
- The command received
public static boolean receiveReset(java.lang.String cmd)
cmd
- The command seen
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |