pamvotis.sources
Class FTPSource
java.lang.Object
pamvotis.sources.Source
pamvotis.sources.FTPSource
public class FTPSource
- extends Source
This class represents an FTP source according 3GPP TR 25.892 V6.0.0.
- Author:
- Dimitris El. Vassis
Constructor Summary |
FTPSource(int sourceId,
int pktSize,
float ftpFSizeMean,
float ftpFSizeStdDev,
float ftpFSizeMax,
float ftpReadingTime)
Instantiates an FTP source as described in 3GPP TR 25.892 V6.0.0. |
Method Summary |
void |
getNextPacket()
If a session is empty, a new one is created. |
void |
synchronize()
This function is not needed for the case of FTP. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FTPSource
public FTPSource(int sourceId,
int pktSize,
float ftpFSizeMean,
float ftpFSizeStdDev,
float ftpFSizeMax,
float ftpReadingTime)
- Instantiates an FTP source as described in 3GPP TR 25.892 V6.0.0.
- Parameters:
sourceId
- The ID of the sourcepktSize
- The packet size in bits.ftpFSizeMean
- The mean file size in Bytes.ftpFSizeStdDev
- The standard deviation of the file size In bytesiftpFSizeMax
- The maximum file size in Bytes.ftpReadingTime
- The reading time in seconds.
getNextPacket
public void getNextPacket()
- If a session is empty, a new one is created. Then the first packet of the session is picked up
in order to be born when its interarrival counter expires.
- Specified by:
getNextPacket
in class Source
synchronize
public void synchronize()
- This function is not needed for the case of FTP.
- Specified by:
synchronize
in class Source