|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rescuecore.RescueMessage
A RescueMessage is a package of Commands to be sent to the kernal
Field Summary |
Constructor Summary | |
RescueMessage()
|
Method Summary | |
void |
append(Command command)
Append a new Command to the end of this message |
int |
count(int type)
Go through all parts of this message and count how many of each type of Commannd we have |
int |
cull(int type,
int max)
Go through all parts of this message and make sure we don't have too many of any kind of Command |
byte[] |
toByteArray()
Turn this RescueMessage into a raw byte array ready for wrapping in a LongUDPMessage |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RescueMessage()
Method Detail |
public void append(Command command)
command
- The Command to appendpublic int cull(int type, int max)
type
- The bitwise or of the types of Command that are being culledmax
- The maximum number of Commands of the given type that we are allowed
public int count(int type)
type
- The bitwise or of the types of Command that are being counted
public byte[] toByteArray()
LongUDPMessage
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |