|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ControlInterface
This interface controls the basics of the UCOT-program (starting, parsing, shuting down etc). UCOT core implements this interface and it is designed in a way that the user interface using the core can control the execution of the program effectively.
Method Summary | |
---|---|
void |
addToAnalyzeModel(java.util.Vector<UseCase> useCases)
Requests core to parse use case, perform heuristic on it and add it to given analyze model. |
void |
addToAnalyzeModel(java.util.Vector<UseCase> useCases,
ParserInterface parser,
HeuristicInterface heuristic)
Requests core to parse use case, perform heuristic on it and add it to given analyze model. |
void |
clearAnalyzeModel()
Clears the whole current analyze model. |
AnalyzeModel |
getAnalyzeModel()
Returns vector of all analyze models from core. |
HeuristicInterface |
getCurrentHeuristic()
Returns the current heuristic. |
ParserInterface |
getCurrentParser()
Returns the current default parser. |
java.util.Vector<HeuristicInterface> |
getHeuristics()
Returns a list of heuristics that are available. |
InputCollection |
getInputs()
Returns InputCollection of inputs. |
java.util.Vector<OutputInterface> |
getOutputs()
Returns a list of output adapters available. |
java.util.Vector<ParserInterface> |
getParsers()
Returns a vector of parsers that are available. |
UseCaseCollection |
getUseCaseCollection()
Returns all loaded use cases. |
void |
loadAnalyzeModel(java.net.URL url)
Loads analyze model from a file. |
void |
loadUseCases(java.net.URL url)
Loads use cases from file. |
void |
output(java.net.URL url,
OutputInterface output,
AnalyzeModel analyzeModel)
Exports given analyze model to given url using given output adapter. |
void |
reloadUseCases(java.net.URL url)
Reloads use cases from file. |
void |
saveAnalyzeModel(java.net.URL url)
Saves analyze model to a file. |
void |
setCurrentHeuristic(HeuristicInterface heuristic)
Sets the default heuristic to use. |
void |
setCurrentParser(ParserInterface parser)
Sets the default parser to use. |
void |
shutdown()
Shuts down the program. |
Methods inherited from interface ucot.ModulePropertyInterface |
---|
applyProperties, getProperties, loadDefaultProperties, loadProperties, saveProperties, setProperties |
Method Detail |
---|
void shutdown()
void clearAnalyzeModel()
void loadUseCases(java.net.URL url)
url
- URL of the file.void reloadUseCases(java.net.URL url)
url
- URL of the file to reload.void loadAnalyzeModel(java.net.URL url) throws java.io.IOException
url
- URL of the file containing analyze model.
java.io.IOException
- If something goes wrong with loading
use the analyze model from given URL.void saveAnalyzeModel(java.net.URL url)
url
- Target file.UseCaseCollection getUseCaseCollection()
void addToAnalyzeModel(java.util.Vector<UseCase> useCases)
useCases
- Use cases to work magic on.void addToAnalyzeModel(java.util.Vector<UseCase> useCases, ParserInterface parser, HeuristicInterface heuristic)
useCases
- Use case to work magic on.parser
- Parser to use.heuristic
- Heuristic to use.AnalyzeModel getAnalyzeModel()
java.util.Vector<ParserInterface> getParsers()
java.util.Vector<HeuristicInterface> getHeuristics()
java.util.Vector<OutputInterface> getOutputs()
InputCollection getInputs()
void setCurrentParser(ParserInterface parser)
parser
- Parser to be used by default.void setCurrentHeuristic(HeuristicInterface heuristic)
heuristic
- Default heuristic to be used.ParserInterface getCurrentParser()
HeuristicInterface getCurrentHeuristic()
void output(java.net.URL url, OutputInterface output, AnalyzeModel analyzeModel) throws java.lang.Exception
url
- Destination URL.output
- Output adapter to use.analyzeModel
- Analyze model to export.
java.lang.Exception
- If something goes wrong with the output, then an
exception is thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |