|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cse466.packets.CSE466Packet | +--cse466.packets.LedsPacket
Field Summary | |
int |
sourceAddr
|
int |
value
|
Fields inherited from class cse466.packets.CSE466Packet |
amType, destination, groupId |
Constructor Summary | |
LedsPacket()
|
Method Summary | |
boolean |
equals(cse466.packets.LedsPacket other)
|
byte[] |
getByteArray()
Gives you the byte array corresponding to this packet for sending over the network. |
protected byte[] |
getByteArray(byte[] childArray)
Gives you the byte array that corresponds to this packet. |
int |
getProperAMType()
Returns the proper AMType for this packet, or -1 if the packet doesn't have a proper amType. |
void |
print()
Pretty print the contents of this packet to System.out |
byte[] |
setFromBytes(byte[] fromArray)
Sets the fields in this packet from the byte array given. |
Methods inherited from class cse466.packets.CSE466Packet |
bytesToInt, byteToInt, copyIntoArray, equals, intToByte, intToLSB, intToMSB, subArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int value
public int sourceAddr
Constructor Detail |
public LedsPacket()
Method Detail |
public int getProperAMType()
CSE466Packet
getProperAMType
in class CSE466Packet
public byte[] setFromBytes(byte[] fromArray)
CSE466Packet
setFromBytes
in class CSE466Packet
protected byte[] getByteArray(byte[] childArray)
CSE466Packet
getByteArray
in class CSE466Packet
childArray
- the payload. This will be put on the end of the
array
public byte[] getByteArray()
CSE466Packet
getByteArray
in class CSE466Packet
public void print()
CSE466Packet
print
in class CSE466Packet
public boolean equals(cse466.packets.LedsPacket other)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |