multimedia.generation
Class ScenarioFileAnalyzer

java.lang.Object
  |
  +--multimedia.generation.ScenarioFileAnalyzer

public class ScenarioFileAnalyzer
extends java.lang.Object

ScenarioFileAnalyzer :

Version:
0.1, 06/06/03
Author:
mladoue

Constructor Summary
ScenarioFileAnalyzer(java.lang.String scenarioFileName)
           
ScenarioFileAnalyzer(java.lang.String scenarioFileName, boolean graphic)
           
 
Method Summary
static void getMeanIPTime(java.lang.String scenarioFileName, boolean graphic)
          IPTimeavgN = [ (N-1)*IPTimeavgN-1 +IPTimeN] / N
static boolean isValidScenario(java.lang.String scenarioFileName, double IPTime, int acceptancePercentage, boolean graphic)
          This permits to know if a file could be played by the system or not.
static void main(java.lang.String[] args)
          To test this class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioFileAnalyzer

public ScenarioFileAnalyzer(java.lang.String scenarioFileName)
                     throws java.io.FileNotFoundException,
                            java.lang.IllegalArgumentException

ScenarioFileAnalyzer

public ScenarioFileAnalyzer(java.lang.String scenarioFileName,
                            boolean graphic)
                     throws java.io.FileNotFoundException,
                            java.lang.IllegalArgumentException
Method Detail

isValidScenario

public static boolean isValidScenario(java.lang.String scenarioFileName,
                                      double IPTime,
                                      int acceptancePercentage,
                                      boolean graphic)
                               throws java.io.FileNotFoundException,
                                      java.lang.IllegalArgumentException
This permits to know if a file could be played by the system or not. scenario file format: millis nanos [octect]

Parameters:
IPTime - in ms
acceptancePercentage - in %
Returns:
true if the scenario respects conditions
Throws:
java.io.FileNotFoundException
java.lang.IllegalArgumentException

getMeanIPTime

public static void getMeanIPTime(java.lang.String scenarioFileName,
                                 boolean graphic)
                          throws java.io.FileNotFoundException,
                                 java.lang.IllegalArgumentException
IPTimeavgN = [ (N-1)*IPTimeavgN-1 +IPTimeN] / N

Parameters:
scenarioFileName -
graphic -
Throws:
java.io.FileNotFoundException
java.lang.IllegalArgumentException - void

main

public static void main(java.lang.String[] args)
                 throws java.io.FileNotFoundException,
                        java.lang.IllegalArgumentException
To test this class

Throws:
java.io.FileNotFoundException
java.lang.IllegalArgumentException