my.ABB_UI
Class generatorManager

java.lang.Object
  extended by java.lang.Thread
      extended by my.ABB_UI.generatorManager
All Implemented Interfaces:
java.lang.Runnable

public class generatorManager
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 DynamicPlot bandwithPlot
          The variable name of the real-time bandwidth graph.
 javax.swing.JPanel base
           
 java.lang.String calculationInterval
          The calculation interval.
 java.lang.Object[] channels
          Contains the channels muted at the BS.
 java.lang.String comPort
          The comport used to connect the BS.
 java.lang.String date
          A string of the date.
 javax.swing.JPanel diffPanel
           
 java.lang.String fileName
          Name of the file used to configure the BS.
 int final_time
          NOT USED.
 boolean generateReport
          Generate report or not.
 java.lang.String generatorBandwith
          The bandwidth of UDP.
 java.lang.String generatorCommand
          String used to start Iperf client porcess.
 boolean get_RxRate
          Get data rate of AP or not.
 javax.swing.JPanel graphPanel
           
 DynamicPlot jitterPlot
          The variable name of the real-time jitter graph.
 java.lang.String localIPAdress
          IP address of the local computer.
 DynamicPlot lossPlot
          The variable name of the real-time datagrams loss graph.
 java.lang.String mode
          Mode of the BS.
 javax.swing.JPanel offPanel
           
 javax.swing.JPanel onPanel
           
 javax.swing.JPanel otherPanel
           
 javax.swing.JFrame owner
           
 javax.swing.JPanel parametersPanel
           
 boolean plotBandwith
          Show graph of bandwidth or not.
 boolean plotJitter
          Show graph of delay jitter or not.
 boolean plotLoss
          Show graph of datagram loss or not.
 java.lang.String protocol
          The protocol used.
 java.lang.String receiverCommand
          Sring used to start a Iperf server process.
 java.lang.String remoteIPAdress
          IP address for the remote computer.
 javax.swing.JFrame reportFrame
          The variable name of the Report window.
 javax.swing.JPanel reportPanel
           
 boolean runTwice
          Double run or not.
 DynamicPlot RxRatePlot
          The variable name of the real-time data rate graph.
 javax.swing.JPanel savePanel
           
 java.lang.String startTime
          The start time of the simulation.
 java.lang.String stopTime
          The end time of the simulation.
 javax.swing.JPanel summaryPanel
           
 boolean table
          NOT USED.
 java.lang.String totalTime
          Total time of simulation
 int type
          TCP or UDP.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
generatorManager()
          Creates a new instance of generatorManager.
 
Method Summary
 javax.swing.JScrollPane createTCPTable(org.jfree.data.xy.XYSeries bandwithSerie, org.jfree.data.xy.XYSeries rxRateSerie)
          Creates the table when TCP has been generated.
 javax.swing.JScrollPane createUDPTable(org.jfree.data.xy.XYSeries bandwithSerie, org.jfree.data.xy.XYSeries jitterSerie, org.jfree.data.xy.XYSeries lossSerie, org.jfree.data.xy.XYSeries rxRateSerie)
          Creates the table when UDP has been generated.
 double getAverageValue(org.jfree.data.xy.XYSeries serie)
          Returns average value.
 double getMaximumValue(org.jfree.data.xy.XYSeries serie)
          Returns maximum value.
 double getMinimumValue(org.jfree.data.xy.XYSeries serie)
          Returns minimum value.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

receiverCommand

public java.lang.String receiverCommand
Sring used to start a Iperf server process.


generatorCommand

public java.lang.String generatorCommand
String used to start Iperf client porcess.


generateReport

public boolean generateReport
Generate report or not.


runTwice

public boolean runTwice
Double run or not.


type

public int type
TCP or UDP.


plotBandwith

public boolean plotBandwith
Show graph of bandwidth or not.


plotJitter

public boolean plotJitter
Show graph of delay jitter or not.


plotLoss

public boolean plotLoss
Show graph of datagram loss or not.


bandwithPlot

public DynamicPlot bandwithPlot
The variable name of the real-time bandwidth graph.


jitterPlot

public DynamicPlot jitterPlot
The variable name of the real-time jitter graph.


lossPlot

public DynamicPlot lossPlot
The variable name of the real-time datagrams loss graph.


RxRatePlot

public DynamicPlot RxRatePlot
The variable name of the real-time data rate graph.


reportFrame

public javax.swing.JFrame reportFrame
The variable name of the Report window.


owner

public javax.swing.JFrame owner

base

public javax.swing.JPanel base

graphPanel

public javax.swing.JPanel graphPanel

otherPanel

public javax.swing.JPanel otherPanel

summaryPanel

public javax.swing.JPanel summaryPanel

parametersPanel

public javax.swing.JPanel parametersPanel

onPanel

public javax.swing.JPanel onPanel

offPanel

public javax.swing.JPanel offPanel

diffPanel

public javax.swing.JPanel diffPanel

reportPanel

public javax.swing.JPanel reportPanel

savePanel

public javax.swing.JPanel savePanel

date

public java.lang.String date
A string of the date.


startTime

public java.lang.String startTime
The start time of the simulation.


stopTime

public java.lang.String stopTime
The end time of the simulation.


totalTime

public java.lang.String totalTime
Total time of simulation


table

public boolean table
NOT USED.


fileName

public java.lang.String fileName
Name of the file used to configure the BS.


generatorBandwith

public java.lang.String generatorBandwith
The bandwidth of UDP.


calculationInterval

public java.lang.String calculationInterval
The calculation interval.


protocol

public java.lang.String protocol
The protocol used.


localIPAdress

public java.lang.String localIPAdress
IP address of the local computer.


remoteIPAdress

public java.lang.String remoteIPAdress
IP address for the remote computer.


mode

public java.lang.String mode
Mode of the BS.


final_time

public int final_time
NOT USED.


comPort

public java.lang.String comPort
The comport used to connect the BS.


get_RxRate

public boolean get_RxRate
Get data rate of AP or not.


channels

public java.lang.Object[] channels
Contains the channels muted at the BS.

Constructor Detail

generatorManager

public generatorManager()
Creates a new instance of generatorManager.

Method Detail

getMaximumValue

public double getMaximumValue(org.jfree.data.xy.XYSeries serie)
Returns maximum value.


getMinimumValue

public double getMinimumValue(org.jfree.data.xy.XYSeries serie)
Returns minimum value.


getAverageValue

public double getAverageValue(org.jfree.data.xy.XYSeries serie)
Returns average value.


createUDPTable

public javax.swing.JScrollPane createUDPTable(org.jfree.data.xy.XYSeries bandwithSerie,
                                              org.jfree.data.xy.XYSeries jitterSerie,
                                              org.jfree.data.xy.XYSeries lossSerie,
                                              org.jfree.data.xy.XYSeries rxRateSerie)
Creates the table when UDP has been generated.


createTCPTable

public javax.swing.JScrollPane createTCPTable(org.jfree.data.xy.XYSeries bandwithSerie,
                                              org.jfree.data.xy.XYSeries rxRateSerie)
Creates the table when TCP has been generated.


run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread