pamvotis.sources
Class HTTPSource
java.lang.Object
pamvotis.sources.Source
pamvotis.sources.HTTPSource
public class HTTPSource
- extends Source
This class represents an HTTP source according to 3GPP TR 25.892 V6.0.0.
- Author:
- Dimitris El. Vassis
Constructor Summary |
HTTPSource(int sourceId,
int pktSize,
float mainObjectMean,
float mainObjectStDev,
float mainObjectMin,
float mainObjectMax,
float embObjectMean,
float embObjectStDev,
float embObjectMin,
float embObjectMax,
float NumOfEmbObjectsMean,
float NumOfEmbObjectsMax,
float readingTime,
float parsingTime)
Creates an HTTP (WWW) source according to 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 HTTP. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPSource
public HTTPSource(int sourceId,
int pktSize,
float mainObjectMean,
float mainObjectStDev,
float mainObjectMin,
float mainObjectMax,
float embObjectMean,
float embObjectStDev,
float embObjectMin,
float embObjectMax,
float NumOfEmbObjectsMean,
float NumOfEmbObjectsMax,
float readingTime,
float parsingTime)
- Creates an HTTP (WWW) source according to 3GPP TR 25.892 V6.0.0.
- Parameters:
sourceId
- The ID of the new sourcepktSize
- The packet size mean value in bits.mainObjectMean
- The mean size of the main object in Bytes.mainObjectStDev
- The standard deviation of the size of the main object in Bytes.mainObjectMin
- The minimum size of the main object in Bytes.mainObjectMax
- The maximum size of the main object in Bytes.embObjectMean
- The mean size of an embedded object in Bytes.embObjectStDev
- The standard deviation of the size of an embedded object in Bytes.embObjectMin
- The minimum size of an embedded object in Bytes.embObjectMax
- The maximum size of an embedded object in Bytes.NumOfEmbObjectsMean
- The mean value of the number of embedded objects.NumOfEmbObjectsMax
- The maximum number of embedded objects.readingTime
- The mean value of the reading time in seconds. Can be float as well.parsingTime
- The mean value of the parsing time in seconds. Can be float as well.
getNextPacket
public void getNextPacket()
- If a session is empty, a new one is created. Then the first packet of the session is picked up and
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 HTTP.
- Specified by:
synchronize
in class Source