giden.CORE
Class SolverMenuBase

java.lang.Object
  |
  +--giden.CORE.SolverMenuBase
Direct Known Subclasses:
SolverMenu

public class SolverMenuBase
extends java.lang.Object

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.

SolverMenuBase is a base class for creating and menu entries for types of problems and specific solvers of those problems. Implementors use the CreateMenu method in the SolverMenu class to add problems and solvers to the GIDEN Solver menu. SolverMenu inherits this class and makes direct calls in to it. This class provides two methods AddProblem and AddSolver that must be called in the correct order. The AddProblem method is called first and creates a menu selection inside the GIDEN Solver menu. After a method has been created, calls to AddSolver will create menu selections for that type of problem. After a user has selected a solver, GIDEN will call the CreateSolver method in the SolverMenu class and pass it the name of the solver that has been selected. The implementor is responsible for creating that solver and returning its base class pointer to GIDEN.

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

Version:
4.0a 2004 08 27
Author:
D. S. Dilworth
See Also:
Network, SolverMenu

Constructor Summary
SolverMenuBase()
           
 
Method Summary
 void AddProblem(java.lang.String name)
          Adds the name for a Problem-type to the GIDEN Solver menu.
 void AddSolver(java.lang.String name)
          Adds the name for a particular Solver to the GIDEN Solver->Problem submenu.
 void AddSolver(java.lang.String name, boolean available)
          Adds the name for a particular Solver to the GIDEN Solver->Problem submenu.
 java.lang.String FirstProblem()
          Internal method
 java.lang.String FirstSolver()
          Internal method
 java.lang.String NextProblem()
          Internal method
 java.lang.String NextSolver()
          Internal method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolverMenuBase

public SolverMenuBase()
Method Detail

AddProblem

public void AddProblem(java.lang.String name)
Adds the name for a Problem-type to the GIDEN Solver menu. The given name will be added as a menu pick in the Solver menu. This method is used to add Problem-types to the GIDEN Solver menu. The AddSolver method adds particular Solvers to the submenu of the most recently added Problem-type menu.
Parameters:
name - The name of the Problem-type to appear on the Solver menu
See Also:
AddSolver(java.lang.String, boolean)

AddSolver

public void AddSolver(java.lang.String name,
                      boolean available)
Adds the name for a particular Solver to the GIDEN Solver->Problem submenu. The given name will be added as a menu pick below the most recent Problem-type specified through the AddProblem method. This method is used to add Solver names to GIDEN Solver->Problem submenu. The AddProblem method creates the Problem-Type menu picks, and must be called prior to calling AddSolver
Parameters:
name - The name of the Solver to appear on the Solver->Problem submenu
available - True if this Solver menu should be activated
See Also:
AddProblem(java.lang.String)

AddSolver

public void AddSolver(java.lang.String name)
Adds the name for a particular Solver to the GIDEN Solver->Problem submenu. The given name will be added as a menu pick below the most recent Problem-type specified through the AddProblem method. This method is used to add Solver names to GIDEN Solver->Problem submenu. The AddProblem method creates the Problem-Type menu picks, and must be called prior to calling AddSolver
Parameters:
name - The name of the Solver to appear on the Solver->Problem submenu
See Also:
AddProblem(java.lang.String)

FirstProblem

public java.lang.String FirstProblem()
Internal method

NextProblem

public java.lang.String NextProblem()
Internal method

FirstSolver

public java.lang.String FirstSolver()
Internal method

NextSolver

public java.lang.String NextSolver()
Internal method