JavaScript is disabled on your browser.
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
A
B
C
D
G
H
I
L
M
N
O
P
R
S
V
A
add(E)
- Method in interface
ListADT
Adds item to the end of the List.
add(int, E)
- Method in interface
ListADT
Adds item at position pos in the List, moving the items originally in positions pos through size() - 1 one place to the right to make room.
add(E)
- Method in class
PacketLinkedList
add(int, E)
- Method in class
PacketLinkedList
askForMissingPacket(int)
- Method in class
Receiver
Asks for retransmitting the packet with a sequence number.
askForNextPacket()
- Method in class
Receiver
Returns the next packet.
askForRetransmit(SimplePacket)
- Method in class
Receiver
Asks for retransmitting the packet.
B
BadImageContentException
- Exception in
<Unnamed>
This exception should be thrown whenever the image ONLY has errors in its body.
BadImageContentException(String)
- Constructor for exception
BadImageContentException
Constructs a BadImageContentException with a message
BadImageContentException()
- Constructor for exception
BadImageContentException
Constructs a BadImageContentException
BadImageHeaderException
- Exception in
<Unnamed>
This exception should be thrown whenever the image has errors in its header.
BadImageHeaderException(String)
- Constructor for exception
BadImageHeaderException
Constructs a BadImageHeaderException with a message
BadImageHeaderException()
- Constructor for exception
BadImageHeaderException
Constructs a BadImageHeaderException
BrokenImageException
- Exception in
<Unnamed>
This exception should be thrown whenever the received image buffer has any broken part.
BrokenImageException(String)
- Constructor for exception
BrokenImageException
Constructs a BrokenImageException with a message
BrokenImageException()
- Constructor for exception
BrokenImageException
Constructs a BrokenImageException
C
compareTo(SimplePacket)
- Method in class
SimplePacket
Not usable
contains(E)
- Method in interface
ListADT
Returns true iff item is in the List (i.e., there is an item x in the List such that x.equals(item))
contains(E)
- Method in class
PacketLinkedList
D
displayList()
- Method in class
Receiver
Outputs the formatted content in the PacketLinkedList buffer.
G
get(int)
- Method in interface
ListADT
Returns the item at position pos in the List.
get(int)
- Method in class
PacketLinkedList
getData()
- Method in class
SimplePacket
Returns the bytes delivered by the packet
getListBuffer()
- Method in class
Receiver
Returns the PacketLinkedList buffer in the receiver
getNextPacket()
- Method in class
InputDriver
Do not use this method.
getPred()
- Method in class
SimplePacket
Not usable
getSeq()
- Method in class
SimplePacket
Returns the sequence number of the packet
H
hasNext()
- Method in class
PacketLinkedListIterator
Returns true if the iteration has more elements.
I
ImageDriver
- Class in
<Unnamed>
Using ImageIO to display the image by creating an ImageIcon, placing that icon an a JLabel, and placing that label on a JFrame.
ImageDriver(InputDriver)
- Constructor for class
ImageDriver
Creates a ImageDriver
InputDriver
- Class in
<Unnamed>
The driver class for generating and simulating the input queue.
InputDriver(String, boolean)
- Constructor for class
InputDriver
Constructs a InputDriver.
isEmpty()
- Method in interface
ListADT
Returns true iff the List is empty.
isEmpty()
- Method in class
PacketLinkedList
isValidCheckSum()
- Method in class
SimplePacket
Returns true if the packet has a valid checksum; otherwise, false
iterator()
- Method in class
PacketLinkedList
L
ListADT
<
E
> - Interface in
<Unnamed>
Listnode
<
E
> - Class in
<Unnamed>
The internal node structure of
PacketLinkedList
.
M
main(String[])
- Static method in class
Receiver
Initiates a Receiver to reconstruct collected packets and open the Image file, which is specified by args[0].
N
next()
- Method in class
PacketLinkedListIterator
Returns the next element in the iteration.
O
openImage(PacketLinkedList<SimplePacket>)
- Method in class
ImageDriver
Opens the image file by merging the content in the list.
openImage()
- Method in class
Receiver
Opens the image file by merging the content in the maintained list buffer.
P
PacketLinkedList
<
E
> - Class in
<Unnamed>
A Single-linked linkedlist with a "dumb" header node (no data in the node), but without a tail node.
PacketLinkedList()
- Constructor for class
PacketLinkedList
Constructs a empty PacketLinkedList
PacketLinkedListIterator
<
T
> - Class in
<Unnamed>
The iterator implementation for PacketLinkedList.
PacketLinkedListIterator(Listnode<T>)
- Constructor for class
PacketLinkedListIterator
Constructs a PacketLinkedListIterator by passing a head node of PacketLinkedList.
R
Receiver
- Class in
<Unnamed>
The main class.
Receiver(String)
- Constructor for class
Receiver
Constructs a Receiver to obtain the image file transmitted.
reconstructFile()
- Method in class
Receiver
Reconstructs the file by arranging the
PacketLinkedList
in correct order.
remove(int)
- Method in interface
ListADT
Removes and returns the item at position pos in the List, moving the items originally in positions pos+1 through size() - 1 one place to the left to fill in the gap.
remove(int)
- Method in class
PacketLinkedList
remove()
- Method in class
PacketLinkedListIterator
The remove operation is not supported by this iterator
resendMissingPacket(int)
- Method in class
InputDriver
Do not use this method.
resendPacket(SimplePacket)
- Method in class
InputDriver
Do not use this method.
S
SimplePacket
- Class in
<Unnamed>
The Packet structure which includes a sequence number, a checksum (true/false), and the delivered data.
SimplePacket(int, boolean, byte[])
- Constructor for class
SimplePacket
Constructs a SimplePacket with sequence number, checksum validation, and the data.
size()
- Method in interface
ListADT
Returns the number of items in the List.
size()
- Method in class
PacketLinkedList
V
validFile(PacketLinkedList<SimplePacket>)
- Method in class
InputDriver
Do not use this method.
validHeader(SimplePacket)
- Method in class
InputDriver
Do not use this method.
validImageContent()
- Method in class
Receiver
Returns true if the maintained list buffer has a valid image content.
validImageHeader()
- Method in class
Receiver
Returns if the maintained list buffer has a valid image header
A
B
C
D
G
H
I
L
M
N
O
P
R
S
V
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes