de.cau.cs.kieler.graphs.wizards
Class CreateRandomModelWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by de.cau.cs.kieler.graphs.wizards.CreateRandomModelWizardPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage

public class CreateRandomModelWizardPage
extends WizardPage

The "New" wizard page allows setting the container for the new file as well as the file name. The page will only accept file name without the extension or with the extension that matches the expected one.

Rating red

Field Summary
static boolean DEF_DIRECTED
          default value for digraph option.
static float DEF_HIERARCHY
          default value for probability of hierarchy.
static float DEF_HYPER_NODE
          default value for probability of hyper node.
static int DEF_MAX_CONNECTIONS
          default value for maximal number of connections.
static int DEF_MIN_CONNECTIONS
          default value for minimal number of connections.
static int DEF_NODES
          default value for number of nodes.
static boolean DEF_USE_PORTS
          default value for port usage.
static String FILE_EXT
          extension for graph files.
static String PREF_DIRECTED
          preference name for digraph option.
static String PREF_HIERARCHY
          preference name for probability of hierarchy.
static String PREF_HYPER_NODE
          preference name for probability of hyper node.
static String PREF_MAX_CONNECTIONS
          preference name for maximal number of connections.
static String PREF_MIN_CONNECTIONS
          preference name for minimal number of connections.
static String PREF_NODES
          preference name for number of nodes.
static String PREF_USE_PORTS
          preference name for port usage.
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
CreateRandomModelWizardPage(ISelection theselection)
          Constructor for SampleNewWizardPage.
 
Method Summary
 void createControl(Composite parent)
          
 String getContainerName()
          Returns the name of the container.
 boolean getDirected()
          Returns if the graph will be a digraph.
 String getFileName()
          Returns the file name.
 float getHierarchyProb()
          Returns the probability of new hierarchy.
 float getHyperNodeProb()
          Returns the probability of creating hyper nodes.
 int getMaxConnections()
          Returns the maximal number of outgoing connections.
 int getMinConnections()
          Returns the minimal number of outgoing connections.
 int getNodes()
          Returns the number of nodes.
 boolean getUsePorts()
          Returns if ports will be used.
 void storeDefaults()
          Store the current value into the preference store.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Field Detail

FILE_EXT

public static final String FILE_EXT
extension for graph files.

See Also:
Constant Field Values

PREF_NODES

public static final String PREF_NODES
preference name for number of nodes.

See Also:
Constant Field Values

PREF_MIN_CONNECTIONS

public static final String PREF_MIN_CONNECTIONS
preference name for minimal number of connections.

See Also:
Constant Field Values

PREF_MAX_CONNECTIONS

public static final String PREF_MAX_CONNECTIONS
preference name for maximal number of connections.

See Also:
Constant Field Values

PREF_HIERARCHY

public static final String PREF_HIERARCHY
preference name for probability of hierarchy.

See Also:
Constant Field Values

PREF_HYPER_NODE

public static final String PREF_HYPER_NODE
preference name for probability of hyper node.

See Also:
Constant Field Values

PREF_DIRECTED

public static final String PREF_DIRECTED
preference name for digraph option.

See Also:
Constant Field Values

PREF_USE_PORTS

public static final String PREF_USE_PORTS
preference name for port usage.

See Also:
Constant Field Values

DEF_NODES

public static final int DEF_NODES
default value for number of nodes.

See Also:
Constant Field Values

DEF_MIN_CONNECTIONS

public static final int DEF_MIN_CONNECTIONS
default value for minimal number of connections.

See Also:
Constant Field Values

DEF_MAX_CONNECTIONS

public static final int DEF_MAX_CONNECTIONS
default value for maximal number of connections.

See Also:
Constant Field Values

DEF_HIERARCHY

public static final float DEF_HIERARCHY
default value for probability of hierarchy.

See Also:
Constant Field Values

DEF_HYPER_NODE

public static final float DEF_HYPER_NODE
default value for probability of hyper node.

See Also:
Constant Field Values

DEF_DIRECTED

public static final boolean DEF_DIRECTED
default value for digraph option.

See Also:
Constant Field Values

DEF_USE_PORTS

public static final boolean DEF_USE_PORTS
default value for port usage.

See Also:
Constant Field Values
Constructor Detail

CreateRandomModelWizardPage

public CreateRandomModelWizardPage(ISelection theselection)
Constructor for SampleNewWizardPage.

Parameters:
theselection - the current selection
Method Detail

createControl

public void createControl(Composite parent)


getContainerName

public String getContainerName()
Returns the name of the container.

Returns:
the container name

getFileName

public String getFileName()
Returns the file name.

Returns:
the file name

getNodes

public int getNodes()
Returns the number of nodes.

Returns:
the number of nodes

getMinConnections

public int getMinConnections()
Returns the minimal number of outgoing connections.

Returns:
the minimal number of connections

getMaxConnections

public int getMaxConnections()
Returns the maximal number of outgoing connections.

Returns:
the maximal number of connections

getHierarchyProb

public float getHierarchyProb()
Returns the probability of new hierarchy.

Returns:
the probability of hierarchy

getHyperNodeProb

public float getHyperNodeProb()
Returns the probability of creating hyper nodes.

Returns:
the probability of creating hyper nodes

getDirected

public boolean getDirected()
Returns if the graph will be a digraph.

Returns:
true if the graph will be a digraph, false else

getUsePorts

public boolean getUsePorts()
Returns if ports will be used.

Returns:
true if ports will be used, false else

storeDefaults

public void storeDefaults()
Store the current value into the preference store.