public final class Broadwick extends Object
Modifier and Type | Field and Description |
---|---|
private String |
configXml |
private org.slf4j.Logger |
log |
private Project |
project |
Constructor and Description |
---|
Broadwick(String[] args)
Create the Broadwick project to read and verify the configuration files and initialise the project.
|
Modifier and Type | Method and Description |
---|---|
private NodeList |
getAllModelConfigurations()
Get a collection of XML elements one for each
|
private String |
getModelsConfiguration(String id,
NodeList models)
Get the XML string of the model with the given id from a list of configured models.
|
static void |
main(String[] args)
Invocation point.
|
private void |
readConfigFile(LoggingFacade logFacade,
String configFile)
Read the configuration file from the configuration file.
|
private Map<String,Model> |
registerModels(Project project,
Lookup lookup)
Create and register the models internally.
|
void |
run()
Run the Broadwick framework.
|
private Project project
private org.slf4j.Logger log
private String configXml
public Broadwick(String[] args)
args
- the command line arguments supplied to the project.private void readConfigFile(LoggingFacade logFacade, String configFile)
logFacade
- the LoggingFacade object used to log any messages.configFile
- the name of the configuration file.public void run()
private Map<String,Model> registerModels(Project project, Lookup lookup)
project
- the unmarshalled configuration file.lookup
- the Lookuup object that allows the model to access the data specified in the data files.private NodeList getAllModelConfigurations() throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
- if the nodes for the configured models cannot be found.SAXException
- if the nodes for the configured models cannot be found.IOException
- if the nodes for the configured models cannot be found.private String getModelsConfiguration(String id, NodeList models)
id
- the id of the model to be found.models
- a list of XML public static void main(String[] args)
args
- the command line arguments passed to Broadwick.Copyright © 2015 University of Glasgow. All rights reserved.