|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--giden.CORE.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.
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.
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 |
public SolverMenuBase()
Method Detail |
public void AddProblem(java.lang.String name)
name
- The name of the Problem-type to appear on the Solver menuAddSolver(java.lang.String, boolean)
public void AddSolver(java.lang.String name, boolean available)
name
- The name of the Solver to appear on the Solver->Problem submenuavailable
- True if this Solver menu should be activatedAddProblem(java.lang.String)
public void AddSolver(java.lang.String name)
name
- The name of the Solver to appear on the Solver->Problem submenuAddProblem(java.lang.String)
public java.lang.String FirstProblem()
public java.lang.String NextProblem()
public java.lang.String FirstSolver()
public java.lang.String NextSolver()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |