Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
G
H
I
L
M
N
P
R
S
T
V
_
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.
bytesToInt32(byte, byte, 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
CommandPacket
- class cse466.packets.
CommandPacket
.
CommandPacket()
- Constructor for class cse466.packets.
CommandPacket
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
currentTime
- Variable in class cse466.packets.
AdjustGlobalsPacket
currentTime
- Variable in class cse466.packets.
CommandPacket
currentTime
- Variable in class cse466.packets.
SangSongPacket
currentTime
- Variable in class cse466.packets.
StartledPacket
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
endAddr
- Variable in class cse466.packets.
CommandPacket
endAddr
- Variable in class cse466.packets.
StopAndWaitPacket
equals(AdjustGlobalsPacket)
- Method in class cse466.packets.
AdjustGlobalsPacket
equals(CommandPacket)
- Method in class cse466.packets.
CommandPacket
equals(CSE466Packet)
- Method in class cse466.packets.
CSE466Packet
Returns true if the fields of this packet match the other packet's fields
equals(IdentificationPacket)
- Method in class cse466.packets.
IdentificationPacket
equals(LedsPacket)
- Method in class cse466.packets.
LedsPacket
equals(LightSensorPacket)
- Method in class cse466.packets.
LightSensorPacket
equals(SangSongPacket)
- Method in class cse466.packets.
SangSongPacket
equals(StartledPacket)
- Method in class cse466.packets.
StartledPacket
equals(StopAndWaitPacket)
- Method in class cse466.packets.
StopAndWaitPacket
G
getByteArray()
- Method in class cse466.packets.
AdjustGlobalsPacket
getByteArray()
- Method in class cse466.packets.
CommandPacket
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.
IdentificationPacket
getByteArray()
- Method in class cse466.packets.
LedsPacket
getByteArray()
- Method in class cse466.packets.
LightSensorPacket
getByteArray()
- Method in class cse466.packets.
SangSongPacket
getByteArray()
- Method in class cse466.packets.
StartledPacket
getByteArray()
- Method in class cse466.packets.
StopAndWaitPacket
getByteArray(byte[])
- Method in class cse466.packets.
AdjustGlobalsPacket
getByteArray(byte[])
- Method in class cse466.packets.
CommandPacket
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.
IdentificationPacket
getByteArray(byte[])
- Method in class cse466.packets.
LedsPacket
getByteArray(byte[])
- Method in class cse466.packets.
LightSensorPacket
getByteArray(byte[])
- Method in class cse466.packets.
SangSongPacket
getByteArray(byte[])
- Method in class cse466.packets.
StartledPacket
getByteArray(byte[])
- Method in class cse466.packets.
StopAndWaitPacket
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.
CommandPacket
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.
IdentificationPacket
getProperAMType()
- Method in class cse466.packets.
LedsPacket
getProperAMType()
- Method in class cse466.packets.
LightSensorPacket
getProperAMType()
- Method in class cse466.packets.
SangSongPacket
getProperAMType()
- Method in class cse466.packets.
StartledPacket
getProperAMType()
- Method in class cse466.packets.
StopAndWaitPacket
groupId
- Variable in class cse466.packets.
CSE466Packet
the groupID of this packet
H
hopCount
- Variable in class cse466.packets.
StartledPacket
I
IdentificationPacket
- class cse466.packets.
IdentificationPacket
.
IdentificationPacket()
- Constructor for class cse466.packets.
IdentificationPacket
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
intToLSBHigh(int)
- Method in class cse466.packets.
CSE466Packet
Get the least significant byte of the high half of the value (for 32 bit values)
intToMSB(int)
- Method in class cse466.packets.
CSE466Packet
Get the most significant byte of the low half of the value (for 16 bit values)
intToMSBHigh(int)
- Method in class cse466.packets.
CSE466Packet
Get the most significant byte of the value (for 32 bit values)
L
LED
- Variable in class cse466.packets.
CommandPacket
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
lightReading
- Variable in class cse466.packets.
LightSensorPacket
LightSensorPacket
- class cse466.packets.
LightSensorPacket
.
LightSensorPacket()
- Constructor for class cse466.packets.
LightSensorPacket
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
maxPointSongNum
- Variable in class cse466.packets.
SangSongPacket
maxPointValue
- Variable in class cse466.packets.
SangSongPacket
minListen
- Variable in class cse466.packets.
AdjustGlobalsPacket
minPointSongNum
- Variable in class cse466.packets.
SangSongPacket
minPointValue
- Variable in class cse466.packets.
SangSongPacket
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.
CommandPacket
node0
- Variable in class cse466.packets.
StopAndWaitPacket
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
playtime
- Variable in class cse466.packets.
CommandPacket
populateFields(Object)
- Static method in class cse466.packets.
PacketTester
print()
- Method in class cse466.packets.
AdjustGlobalsPacket
print()
- Method in class cse466.packets.
CommandPacket
print()
- Method in class cse466.packets.
CSE466Packet
Pretty print the contents of this packet to System.out
print()
- Method in class cse466.packets.
IdentificationPacket
print()
- Method in class cse466.packets.
LedsPacket
print()
- Method in class cse466.packets.
LightSensorPacket
print()
- Method in class cse466.packets.
SangSongPacket
print()
- Method in class cse466.packets.
StartledPacket
print()
- Method in class cse466.packets.
StopAndWaitPacket
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
runnerUpSongNum
- Variable in class cse466.packets.
SangSongPacket
runnerUpValue
- Variable in class cse466.packets.
SangSongPacket
S
SangSongPacket
- class cse466.packets.
SangSongPacket
.
SangSongPacket()
- Constructor for class cse466.packets.
SangSongPacket
senderAddr
- Variable in class cse466.packets.
LightSensorPacket
sequenceNum
- Variable in class cse466.packets.
SangSongPacket
setFromBytes(byte[])
- Method in class cse466.packets.
AdjustGlobalsPacket
setFromBytes(byte[])
- Method in class cse466.packets.
CommandPacket
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.
IdentificationPacket
setFromBytes(byte[])
- Method in class cse466.packets.
LedsPacket
setFromBytes(byte[])
- Method in class cse466.packets.
LightSensorPacket
setFromBytes(byte[])
- Method in class cse466.packets.
SangSongPacket
setFromBytes(byte[])
- Method in class cse466.packets.
StartledPacket
setFromBytes(byte[])
- Method in class cse466.packets.
StopAndWaitPacket
setupSocket(String, int)
- Method in class cse466.
Tester
Sets up the connection to the SerialForwarder.
signalStrength
- Variable in class cse466.packets.
LightSensorPacket
silence
- Variable in class cse466.packets.
AdjustGlobalsPacket
song
- Variable in class cse466.packets.
CommandPacket
songNum
- Variable in class cse466.packets.
SangSongPacket
songPointValue
- 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.
startAddr
- Variable in class cse466.packets.
CommandPacket
startAddr
- Variable in class cse466.packets.
StopAndWaitPacket
startledHopCount
- Variable in class cse466.packets.
AdjustGlobalsPacket
StartledPacket
- class cse466.packets.
StartledPacket
.
StartledPacket()
- Constructor for class cse466.packets.
StartledPacket
startledSeqNum
- Variable in class cse466.packets.
StartledPacket
StopAndWaitPacket
- class cse466.packets.
StopAndWaitPacket
.
StopAndWaitPacket()
- Constructor for class cse466.packets.
StopAndWaitPacket
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
toString()
- Method in class cse466.parser.
ParserException
transmitPower
- Variable in class cse466.packets.
AdjustGlobalsPacket
transmittingNodeNum
- Variable in class cse466.packets.
IdentificationPacket
transmittingNodeNum
- Variable in class cse466.packets.
SangSongPacket
transmittingNodeNum
- Variable in class cse466.packets.
StartledPacket
V
value
- Variable in class cse466.packets.
LedsPacket
_
_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
H
I
L
M
N
P
R
S
T
V
_
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes