|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucot.core.Core
public class Core
This is the implementation of core of the program, the controller of the program.
Field Summary | |
---|---|
private HeuristicInterface |
currentHeuristic
|
private ParserInterface |
currentParser
|
private java.util.Vector<HeuristicInterface> |
heuristics
|
private InputCollection |
inputs
|
private AnalyzeModel |
model
|
private java.util.Vector<OutputInterface> |
outputs
|
private java.util.Vector<ParserInterface> |
parsers
|
private UIInterface |
ui
|
private UseCaseCollection |
usecases
|
Constructor Summary | |
---|---|
Core()
|
Method Summary | |
---|---|
void |
addToAnalyzeModel(UseCase usecase)
Requests core to parse use case, perform heuristic on it and add it to given analyze model |
void |
addToAnalyzeModel(UseCase usecase,
ParserInterface parser)
Requests core to parse use case, perform heuristic on it and add it to given analyze model |
void |
addToAnalyzeModel(UseCase usecase,
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 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 a list of input adapters available. |
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 usecases |
void |
loadAnalyzeModel(java.net.URL url)
Loads analyze model from a file |
void |
loadUseCases(java.net.URL url)
Loads usecases from file |
static void |
main(java.lang.String[] args)
Main method that starts the core. |
void |
output(java.net.URL url,
OutputInterface output,
AnalyzeModel model)
Exports given analyze model to given url using given outputadapter |
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private InputCollection inputs
private UseCaseCollection usecases
private AnalyzeModel model
private java.util.Vector<HeuristicInterface> heuristics
private java.util.Vector<ParserInterface> parsers
private java.util.Vector<OutputInterface> outputs
private UIInterface ui
private ParserInterface currentParser
private HeuristicInterface currentHeuristic
Constructor Detail |
---|
public Core()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- public void shutdown()
ControlInterface
shutdown
in interface ControlInterface
public void loadUseCases(java.net.URL url)
ControlInterface
loadUseCases
in interface ControlInterface
url
- url of the filepublic void loadAnalyzeModel(java.net.URL url)
ControlInterface
loadAnalyzeModel
in interface ControlInterface
url
- url of the file containing analyze modelpublic UseCaseCollection getUseCaseCollection()
ControlInterface
getUseCaseCollection
in interface ControlInterface
public void clearAnalyzeModel()
ControlInterface
clearAnalyzeModel
in interface ControlInterface
public void addToAnalyzeModel(UseCase usecase, ParserInterface parser, HeuristicInterface heuristic) throws java.lang.Exception
ControlInterface
addToAnalyzeModel
in interface ControlInterface
parser
- Parser to useheuristic
- heuristic to use
java.lang.Exception
public void addToAnalyzeModel(UseCase usecase, ParserInterface parser) throws java.lang.Exception
ControlInterface
addToAnalyzeModel
in interface ControlInterface
parser
- Parser to use
java.lang.Exception
public void addToAnalyzeModel(UseCase usecase) throws java.lang.Exception
ControlInterface
addToAnalyzeModel
in interface ControlInterface
java.lang.Exception
public AnalyzeModel getAnalyzeModel()
ControlInterface
getAnalyzeModel
in interface ControlInterface
public java.util.Vector<ParserInterface> getParsers()
ControlInterface
getParsers
in interface ControlInterface
public java.util.Vector<HeuristicInterface> getHeuristics()
ControlInterface
getHeuristics
in interface ControlInterface
public java.util.Vector<OutputInterface> getOutputs()
ControlInterface
getOutputs
in interface ControlInterface
public InputCollection getInputs()
ControlInterface
getInputs
in interface ControlInterface
public void setCurrentParser(ParserInterface parser)
ControlInterface
setCurrentParser
in interface ControlInterface
parser
- Parser to be used by defaultpublic void setCurrentHeuristic(HeuristicInterface heuristic)
ControlInterface
setCurrentHeuristic
in interface ControlInterface
heuristic
- default heuristic to be usedpublic ParserInterface getCurrentParser()
ControlInterface
getCurrentParser
in interface ControlInterface
public HeuristicInterface getCurrentHeuristic()
ControlInterface
getCurrentHeuristic
in interface ControlInterface
public void output(java.net.URL url, OutputInterface output, AnalyzeModel model) throws java.lang.Exception
ControlInterface
output
in interface ControlInterface
url
- destination urloutput
- output adaptermodel
- analyzemodel to export
java.lang.Exception
public void saveAnalyzeModel(java.net.URL url)
ControlInterface
saveAnalyzeModel
in interface ControlInterface
url
- target file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |