public abstract class Command<I,O> extends ALSBDebuggerObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Command.EmptyCommandData
empty content class
|
| Modifier and Type | Field and Description |
|---|---|
protected short |
_cmdID |
protected short |
_cmdSetID |
protected PacketManager |
_packetManager |
static Command.EmptyCommandData |
EMPTY_DATA |
| Modifier | Constructor and Description |
|---|---|
protected |
Command(ALSBDebugger debugger, short cmdSetID, short cmdID)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
equals
|
int |
hashCode()
hashCode
|
protected abstract O |
read(PacketInputStream stream)
callback to read command specific data from the packet
|
O |
run(I data)
execute the command
|
protected abstract void |
write(I data, PacketOutputStream stream)
callback to write command specific data to the packet
|
debugger, validateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waittoStringprotected PacketManager _packetManager
protected short _cmdSetID
protected short _cmdID
public static final Command.EmptyCommandData EMPTY_DATA
protected Command(ALSBDebugger debugger, short cmdSetID, short cmdID)
public O run(I data) throws java.io.IOException, ProtocolException
java.io.IOExceptionProtocolExceptionprotected abstract void write(I data, PacketOutputStream stream) throws java.io.IOException
java.io.IOExceptionprotected abstract O read(PacketInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic int hashCode()
hashCode in class ALSBDebuggerObjectpublic boolean equals(java.lang.Object obj)
equals in class ALSBDebuggerObject