NDM Demo Architecture
This demo uses Oracle Spatial, Java Servlet, JSP, and Java Bean technologies.
The following diagram illustrates the major building blocks of the demo.
- DemoServer is a servlet that loads the configuration file and
initializes the analysis engine when the web server is started.
- Configuration is a Java Bean that holds the configuration settings for this demo.
- AnalysisEngine is the core Java class in this demo.
It contains methods to parse analysis requests from the JSP pages, conduct network analysis and compose results.
It is written as a singleton, which can be easily accessed from different analysis JSPs.
- The analysis JSP pages accept user input, pass the analysis requests to
the analysis engine, and render the analysis results on a map.
The source code of the analysis JSPs can be accessed under the Source Code column next to each demo on the main page.
The following two JavaScript files contain common functions shared among different analysis JSPs.
- showMap.js contains JavaScript functions to render the analysis results on a map. It calls the Oracle Maps JavaScript API
to draw the background map as well as the dynamic features on the map.
- commonFunctions.js contains other JavaScript utilities shared among the analysis JSPs.
The purpose of this demo is
to present the usage of NDM together with other Oracle Spatial components in a simple
and readable way. The source code in this demo does not reflect the best coding practices.
For example, you may want to add access control to administrator-level
configurations and have more sophisticated error handlings. Users
of NDM should organize their programs according to the requirements of
their applications.