All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tw.edu.ncnu.im.cnclab.Algor.UI.BenchmarkDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----tw.edu.ncnu.im.cnclab.UI.GenericDialog
                                           |
                                           +----tw.edu.ncnu.im.cnclab.UI.StringDialog
                                                   |
                                                   +----tw.edu.ncnu.im.cnclab.Algor.UI.AlgorithmDialog
                                                           |
                                                           +----tw.edu.ncnu.im.cnclab.Algor.UI.BenchmarkDialog

public class BenchmarkDialog
extends AlgorithmDialog
implements ActionListener
The BenchmarkDialog class implements the dialog that get inputs of the benchmark program.

Version:
0.4 Jul 8, 1999
Author:
Ding-Yi Chen
See Also:
Dialog, StringFrame

Variable Index

 o alg
The Algorithm to load.

Constructor Index

 o BenchmarkDialog(Frame)
Construct a BenchmarkDialog.

Method Index

 o checkFormat()
Check if the input valid.
 o getAlgorithm()
Get the algorithm to load.
 o getArg(Object[])
Return the parameters of the Dialog get.
 o setCentralPanel()
Initite the custom panel(central)Panel.
 o setDirectPanel()

Variables

 o alg
 protected Algorithm alg
The Algorithm to load.

Constructors

 o BenchmarkDialog
 public BenchmarkDialog(Frame fr)
Construct a BenchmarkDialog.

Parameters:
fr - the parent window.

Methods

 o setCentralPanel
 protected void setCentralPanel()
Initite the custom panel(central)Panel.

Overrides:
setCentralPanel in class StringDialog
 o setDirectPanel
 protected void setDirectPanel()
 o checkFormat
 protected boolean checkFormat()
Check if the input valid.

Returns:
true if inputs is valid; false if otherwise.
Overrides:
checkFormat in class AlgorithmDialog
 o getAlgorithm
 public Algorithm getAlgorithm()
Get the algorithm to load.

Returns:
the algorithm.
Overrides:
getAlgorithm in class AlgorithmDialog
 o getArg
 public Object[] getArg(Object additionalArg[])
Return the parameters of the Dialog get.

Parameters:
additionalArg - Additional arguments for another method.
Returns:
The parameters of the dialog get.
    Array[0]: the algorithm Array[1]: the argument from the dialog Array[2]: the Integer(start) Array[3]: the Integer(end) Array[4]: the Integer(step) Array[5]: the Integer(retries) Array[6]: the Double(densityStep) Array[7]: the Double(edgeLowerBound) Array[8]: the Double(edgeUpperBound) Array[9]: the Boolean(directed) Array[10]: the Boolean(selfLooped) The Other the argument from the parameter additionalArg.
Overrides:
getArg in class AlgorithmDialog
See Also:
setArg

All Packages  Class Hierarchy  This Package  Previous  Next  Index