Package org.opentrafficsim.demo.web
Class OTSFederatedDemoServer
- java.lang.Object
-
- org.opentrafficsim.demo.web.OTSFederatedDemoServer
-
- All Implemented Interfaces:
Checkable
public class OTSFederatedDemoServer extends Object implements Checkable
Federated demo server for OTS models that uses Sim0MQ messaging to start and manage the executed models.
Copyright (c) 2003-2022 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.- Author:
- Alexander Verbraeck
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
OTSFederatedDemoServer.MyResourceHandler
(package private) class
OTSFederatedDemoServer.ServerThread
Handle in separate thread to avoid 'lock' of the main application.static class
OTSFederatedDemoServer.XHRHandler
Answer handles the events from the web-based user interface for a demo.
-
Field Summary
Fields Modifier and Type Field Description (package private) String
homePage
home page for the web server.(package private) int
port
internet port for the web server.(package private) String
rootDirectory
root directory for the web server.(package private) Map<String,org.opentrafficsim.core.dsol.OTSModelInterface>
sessionModelMap
the map of sessionIds to OTSModelInterface that handles the animation and updates for the started model.(package private) Map<String,OTSWebModel>
sessionWebModelMap
the map of sessionIds to OTSWebModel that handles the animation and updates for the started model.
-
Constructor Summary
Constructors Constructor Description OTSFederatedDemoServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check()
static void
main(String[] args)
Run a SuperDemo OTS Web server.
-
-
-
Field Detail
-
sessionModelMap
final Map<String,org.opentrafficsim.core.dsol.OTSModelInterface> sessionModelMap
the map of sessionIds to OTSModelInterface that handles the animation and updates for the started model.
-
sessionWebModelMap
final Map<String,OTSWebModel> sessionWebModelMap
the map of sessionIds to OTSWebModel that handles the animation and updates for the started model.
-
rootDirectory
String rootDirectory
root directory for the web server.
-
homePage
String homePage
home page for the web server.
-
port
int port
internet port for the web server.
-
-