pamvotis.sources
Class FTPSource

java.lang.Object
  extended by pamvotis.sources.Source
      extended by 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

Field Summary
 
Fields inherited from class pamvotis.sources.Source
_sourceId, generator, interArTime, packetToBeTransmittedID, pktLength, session, slot, timer
 
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 pamvotis.sources.Source
genRv, genRv, genRv, genRv
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 source
pktSize - The packet size in bits.
ftpFSizeMean - The mean file size in Bytes.
ftpFSizeStdDev - The standard deviation of the file size In bytesi
ftpFSizeMax - The maximum file size in Bytes.
ftpReadingTime - The reading time in seconds.
Method Detail

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