A B C D E G I L M N P R S T V W _

A

Action - interface cse466.actions.Action.
Represents an action as described in the actions file.
AdjustGlobalsPacket - class cse466.packets.AdjustGlobalsPacket.
 
AdjustGlobalsPacket() - Constructor for class cse466.packets.AdjustGlobalsPacket
 
amType - Variable in class cse466.packets.CSE466Packet
the amType of this packet

B

bytesToInt(byte, byte) - Method in class cse466.packets.CSE466Packet
Get the int value of the two bytes.
byteToInt(byte) - Method in class cse466.packets.CSE466Packet
Get the int value of the byte

C

copyIntoArray(byte[], byte[], int) - Method in class cse466.packets.CSE466Packet
Copies the contents of fromHere into intoHere starting at an offset of offsetIntoIntoHere, and going for as long as the fromHere array is.
cse466 - package cse466
 
cse466.actions - package cse466.actions
 
cse466.ledtest - package cse466.ledtest
 
cse466.packets - package cse466.packets
 
cse466.parser - package cse466.parser
 
CSE466Packet - class cse466.packets.CSE466Packet.
The base class for all of the packets.
CSE466Packet() - Constructor for class cse466.packets.CSE466Packet
 

D

DelayAction - class cse466.actions.DelayAction.
 
DelayAction(long) - Constructor for class cse466.actions.DelayAction
 
destination - Variable in class cse466.packets.CSE466Packet
where this packet is headed
doParsing(boolean) - Method in class cse466.parser.Parser
Runs the parser and appends the incoming actions to the list of actions.

E

equals(AdjustGlobalsPacket) - Method in class cse466.packets.AdjustGlobalsPacket
 
equals(CSE466Packet) - Method in class cse466.packets.CSE466Packet
Returns true if the fields of this packet match the other packet's fields
equals(LedsPacket) - Method in class cse466.packets.LedsPacket
 
equals(SangSongPacket) - Method in class cse466.packets.SangSongPacket
 
equals(SingSongNPacket) - Method in class cse466.packets.SingSongNPacket
 
equals(StopAndListenPacket) - Method in class cse466.packets.StopAndListenPacket
 

G

getByteArray() - Method in class cse466.packets.AdjustGlobalsPacket
 
getByteArray() - Method in class cse466.packets.CSE466Packet
Gives you the byte array corresponding to this packet for sending over the network.
getByteArray() - Method in class cse466.packets.LedsPacket
 
getByteArray() - Method in class cse466.packets.SangSongPacket
 
getByteArray() - Method in class cse466.packets.SingSongNPacket
 
getByteArray() - Method in class cse466.packets.StopAndListenPacket
 
getByteArray(byte[]) - Method in class cse466.packets.AdjustGlobalsPacket
 
getByteArray(byte[]) - Method in class cse466.packets.CSE466Packet
Gives you the byte array that corresponds to this packet.
getByteArray(byte[]) - Method in class cse466.packets.LedsPacket
 
getByteArray(byte[]) - Method in class cse466.packets.SangSongPacket
 
getByteArray(byte[]) - Method in class cse466.packets.SingSongNPacket
 
getByteArray(byte[]) - Method in class cse466.packets.StopAndListenPacket
 
getInstance() - Static method in class cse466.Tester
Get the singleton instance of the tester
getProperAMType() - Method in class cse466.packets.AdjustGlobalsPacket
 
getProperAMType() - Method in class cse466.packets.CSE466Packet
Returns the proper AMType for this packet, or -1 if the packet doesn't have a proper amType.
getProperAMType() - Method in class cse466.packets.LedsPacket
 
getProperAMType() - Method in class cse466.packets.SangSongPacket
 
getProperAMType() - Method in class cse466.packets.SingSongNPacket
 
getProperAMType() - Method in class cse466.packets.StopAndListenPacket
 
groupId - Variable in class cse466.packets.CSE466Packet
the groupID of this packet

I

intToByte(int) - Method in class cse466.packets.CSE466Packet
Get the byte value of the value
intToLSB(int) - Method in class cse466.packets.CSE466Packet
Get the least significant byte of the value
intToMSB(int) - Method in class cse466.packets.CSE466Packet
Get the least significant byte of the value

L

LedsPacket - class cse466.packets.LedsPacket.
 
LedsPacket() - Constructor for class cse466.packets.LedsPacket
 
LedTest - class cse466.ledtest.LedTest.
 
LedTest(String, int) - Constructor for class cse466.ledtest.LedTest
 
logReceivedPacket(CSE466Packet) - Method in class cse466.Tester
Log to System.out that a packet was received
logSentPacket(CSE466Packet) - Method in class cse466.Tester
Log to System.out that a packet was sent

M

main(String[]) - Static method in class cse466.ledtest.LedTest
 
main(String[]) - Static method in class cse466.packets.PacketTester
 
main(String[]) - Static method in class cse466.Tester
 
maxListen - Variable in class cse466.packets.AdjustGlobalsPacket
 
minListen - Variable in class cse466.packets.AdjustGlobalsPacket
 
minThreshold - Variable in class cse466.packets.AdjustGlobalsPacket
 

N

nextLine() - Method in class cse466.parser.Parser
Grab the next line from the file, but if it hits the end of the file it will throw an IOException saying that it was expecting more.
nextLineEndOk() - Method in class cse466.parser.Parser
Grab the next line from the file.
node0 - Variable in class cse466.packets.AdjustGlobalsPacket
 
node0 - Variable in class cse466.packets.SingSongNPacket
 
node0 - Variable in class cse466.packets.StopAndListenPacket
 

P

PacketAction - class cse466.actions.PacketAction.
 
PacketAction(CSE466Packet) - Constructor for class cse466.actions.PacketAction
 
PacketTester - class cse466.packets.PacketTester.
 
PacketTester() - Constructor for class cse466.packets.PacketTester
 
parseDelayAction(String) - Method in class cse466.parser.Parser
Creates a DelayAction out of the input line.
parseFile(String, boolean) - Static method in class cse466.parser.Parser
Parses the file specified and gives back the ordered list of actions declared in the file.
parseFile(String, boolean) - Method in class cse466.Tester
Parses the input file that should contain a list of actions.
parseNextAction(boolean) - Method in class cse466.parser.Parser
Grab the next line and figure out what type of action it is (delay or packet) then delegate the rest of the parsing to the appropriate method.
parsePacketAction(String, boolean) - Method in class cse466.parser.Parser
Parses the sequence of lines that make up a @link PacketAction.
Parser - class cse466.parser.Parser.
This class implements the functionality needed for parsing the input file and generating the action list that will later be executed.
Parser(BufferedReader) - Constructor for class cse466.parser.Parser
Initializes the current line, and assigns the buffered reader to be the one the rest of the parser will use
ParserException - exception cse466.parser.ParserException.
An exception to throw on malformed input.
ParserException(String, int) - Constructor for class cse466.parser.ParserException
 
populateFields(Object) - Static method in class cse466.packets.PacketTester
 
print() - Method in class cse466.packets.AdjustGlobalsPacket
 
print() - Method in class cse466.packets.CSE466Packet
Pretty print the contents of this packet to System.out
print() - Method in class cse466.packets.LedsPacket
 
print() - Method in class cse466.packets.SangSongPacket
 
print() - Method in class cse466.packets.SingSongNPacket
 
print() - Method in class cse466.packets.StopAndListenPacket
 
printUsage() - Static method in class cse466.Tester
 
probability - Variable in class cse466.packets.AdjustGlobalsPacket
 

R

repetition - Variable in class cse466.packets.AdjustGlobalsPacket
 
run() - Method in class cse466.ledtest.LedTest
 
run() - Method in class cse466.Tester.SocketReader
 
run(List) - Method in class cse466.Tester
Run through the list and do the actions
run(OutputStream) - Method in interface cse466.actions.Action
 
run(OutputStream) - Method in class cse466.actions.DelayAction
 
run(OutputStream) - Method in class cse466.actions.PacketAction
 

S

SangSongPacket - class cse466.packets.SangSongPacket.
 
SangSongPacket() - Constructor for class cse466.packets.SangSongPacket
 
sequenceNum - Variable in class cse466.packets.SangSongPacket
 
setFromBytes(byte[]) - Method in class cse466.packets.AdjustGlobalsPacket
 
setFromBytes(byte[]) - Method in class cse466.packets.CSE466Packet
Sets the fields in this packet from the byte array given.
setFromBytes(byte[]) - Method in class cse466.packets.LedsPacket
 
setFromBytes(byte[]) - Method in class cse466.packets.SangSongPacket
 
setFromBytes(byte[]) - Method in class cse466.packets.SingSongNPacket
 
setFromBytes(byte[]) - Method in class cse466.packets.StopAndListenPacket
 
setupSocket(String, int) - Method in class cse466.Tester
Sets up the connection to the SerialForwarder.
silence - Variable in class cse466.packets.AdjustGlobalsPacket
 
singSongN - Variable in class cse466.packets.SingSongNPacket
 
SingSongNPacket - class cse466.packets.SingSongNPacket.
 
SingSongNPacket() - Constructor for class cse466.packets.SingSongNPacket
 
songNum - Variable in class cse466.packets.SangSongPacket
 
songWeight - Variable in class cse466.packets.SangSongPacket
 
sourceAddr - Variable in class cse466.packets.LedsPacket
 
splitInTwo(String) - Method in class cse466.parser.Parser
A helper function that splits a string into two space delimited strings and then trims them.
StopAndListenPacket - class cse466.packets.StopAndListenPacket.
 
StopAndListenPacket() - Constructor for class cse466.packets.StopAndListenPacket
 
subArray(byte[], int) - Method in class cse466.packets.CSE466Packet
Gives you a sub array starting at startIndex in original and going to the end.

T

Tester - class cse466.Tester.
This is the main class for the tester.
Tester.SocketReader - class cse466.Tester.SocketReader.
Reads from the socket and logs when packets come in.
Tester.SocketReader() - Constructor for class cse466.Tester.SocketReader
 
Tester() - Constructor for class cse466.Tester
This class is a singleton, so this is protected
threshold - Variable in class cse466.packets.AdjustGlobalsPacket
 
topNodeNum - Variable in class cse466.packets.SangSongPacket
 
topNodeStrength - Variable in class cse466.packets.SangSongPacket
 
topSong2Num - Variable in class cse466.packets.SangSongPacket
 
topSong2Weight - Variable in class cse466.packets.SangSongPacket
 
toString() - Method in class cse466.parser.ParserException
 
transmitPower - Variable in class cse466.packets.AdjustGlobalsPacket
 
transmittingNodeNum - Variable in class cse466.packets.SangSongPacket
 

V

value - Variable in class cse466.packets.LedsPacket
 

W

weightMax - Variable in class cse466.packets.SangSongPacket
 
weightMaxSongNum - Variable in class cse466.packets.SangSongPacket
 
weightMin - Variable in class cse466.packets.SangSongPacket
 
weightMinSongNum - Variable in class cse466.packets.SangSongPacket
 

_

_br - Variable in class cse466.parser.Parser
The buffered reader that is reading the file
_length - Variable in class cse466.actions.DelayAction
 
_line - Variable in class cse466.parser.ParserException
 
_lineNumber - Variable in class cse466.parser.Parser
The current line number being parsed
_message - Variable in class cse466.parser.ParserException
 
_os - Variable in class cse466.ledtest.LedTest
 
_pak - Variable in class cse466.actions.PacketAction
 
_self - Static variable in class cse466.Tester
My singleton instance
_sock - Variable in class cse466.Tester
The socket to the SerialForwarder
_sockIs - Variable in class cse466.Tester
The input stream from the SerialForwarder
_sockOs - Variable in class cse466.Tester
The output stream to the SerialForwarder
_startTime - Variable in class cse466.Tester
The time that this test was started.
_stdOutLock - Variable in class cse466.Tester
A lock to prevent interleaved writes to System.out There is the potential since the receiving from the SerialForwarder and sending to the SerialForwarder are on separate threads

A B C D E G I L M N P R S T V W _