giden.userSOLVERS
Class SolverMenu

java.lang.Object
  |
  +--giden.CORE.SolverMenuBase
        |
        +--giden.userSOLVERS.SolverMenu

public class SolverMenu
extends SolverMenuBase

Copyright (c) 1993-2004 C. R. Coullard, D. S. Dilworth, J. H. Owen, All Rights Reserved.
We make no representations or warranties about the suitability of the software, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. We shall not be liable for any damages suffered by user as a result of using, modifying or distributing this software or its derivatives.

SolverMenu is an interface class that provides implementors with a method for creating menu selections (CreateMenu) and responding to those selections (CreateSolver). The menus are created in a sequence of two steps: first create the problem type (AddProblem) and then create one or more solvers (AddSolver) for that type of problem. These problem types and solver names then become menu items under the GIDEN Solver menu selection. After a user selects a particular solver, GIDEN calls CreateSolver method and passes it the name of the solver (as it appears in the menu). The CreateSolver method then creates the solver and returns the base class of that solver for execution by GIDEN.

The SolverMenu class includes two methods to include the GIDEN solvers on the menu and to create them. These methods are called by CreateMenu and CreateSolver.

Copyright (c) 1993-2003 C. R. Coullard, D. S. Dilworth, J. H. Owen, All Rights Reserved.

Version:
4.0a 2004 08 29
Author:
D. S. Dilworth
See Also:
Network, SolverMenuBase

Constructor Summary
SolverMenu()
           
 
Method Summary
 void CreateMenu()
          Creates the Problem and Solver menu picks.
 giden.CORE.ExecBase CreateSolver(java.lang.String name, giden.CORE.SolverServices solvserv, giden.CORE.GUISolver gui)
          Creates a solver, given its name and other GIDEN information.
 
Methods inherited from class giden.CORE.SolverMenuBase
AddProblem, AddSolver, AddSolver, FirstProblem, FirstSolver, NextProblem, NextSolver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolverMenu

public SolverMenu()
Method Detail

CreateMenu

public void CreateMenu()
Creates the Problem and Solver menu picks. This method is maintained by implementors and is called once during the GIDEN initialization. This method provides implementors with a mechanism for creating the menu picks that appear under the GIDEN Solver menu selection.
See Also:
SolverMenuBase.AddProblem(java.lang.String), SolverMenuBase.AddSolver(java.lang.String, boolean)

CreateSolver

public giden.CORE.ExecBase CreateSolver(java.lang.String name,
                                        giden.CORE.SolverServices solvserv,
                                        giden.CORE.GUISolver gui)
Creates a solver, given its name and other GIDEN information. This method is maintained by implementors and is called by GIDEN after a user selects a Solver from the menu. The implementor must create a UserIO object and pass it to the Solver's constructor. The Solver constructor returns an ExecBase object that this method returns.
Parameters:
name - The name of the Solver selected by the user
draw - The GidenDraw object for user interaction
net - The network for this solver
Returns:
The ExecBase object for the created Solver, or null if the solver couldn't be created