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
-
alg
- The Algorithm to load.
-
BenchmarkDialog(Frame)
- Construct a BenchmarkDialog.
-
checkFormat()
- Check if the input valid.
-
getAlgorithm()
- Get the algorithm to load.
-
getArg(Object[])
- Return the parameters of the Dialog get.
-
setCentralPanel()
- Initite the custom panel(central)Panel.
-
setDirectPanel()
-
alg
protected Algorithm alg
- The Algorithm to load.
BenchmarkDialog
public BenchmarkDialog(Frame fr)
- Construct a BenchmarkDialog.
- Parameters:
- fr - the parent window.
setCentralPanel
protected void setCentralPanel()
- Initite the custom panel(central)Panel.
- Overrides:
- setCentralPanel in class StringDialog
setDirectPanel
protected void setDirectPanel()
checkFormat
protected boolean checkFormat()
- Check if the input valid.
- Returns:
-
true if inputs is valid; false if otherwise.
- Overrides:
- checkFormat in class AlgorithmDialog
getAlgorithm
public Algorithm getAlgorithm()
- Get the algorithm to load.
- Returns:
- the algorithm.
- Overrides:
- getAlgorithm in class AlgorithmDialog
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