Giter Site home page Giter Site logo

movsim's Introduction

MovSim

Movsim == Multi-model open-source vehicular-traffic Simulator

Current build status for branch Master: Build Status Master

Current build status for branch develop: Build Status Bidirectional

Quick links to this file:

Description

MovSim is a microscopic lane-based traffic simulator with xml-based configuration and csv text output. The simulator implements various car-following models and provides reference implementations for the models described in the textbook Traffic Flow Dynamics.

MovSim aims at modeling and simulating all basic traffic situations and discrete decision like lane changes, reacting to a traffic light, yielding and overtaking on rural roads. Lane changes are modeled with the general MOBIL strategy based on longitudinal accelerations which is applicable to other discrete decisions as well.

MovSim can be run from commandline or with a graphical user interface including visualization. Several output quantities can be written to file for further in-depth analysis. MovSim also provides a physics-based fuel-consumption model to calculate consumption on an individual or collective level.

Features:

  • multi-lane simulator including onramps, offramps, "flow-conserving bottlenecks" and traffic-lights
  • multiple models of different model classes (car-following models, coupled-map models and cellular automata)
    • Intelligent Driver Model (IDM) Paper, Wikipedia
    • Enhanced IDM/Adaptive Cruise Control Model Preprint
    • Optimal Velocity or Bando Model
    • Velocity Difference Model
    • Gipps Model Wikipedia
    • Krauss Model
    • Nagel-Schreckenberg Cellular Automaton Wikipedia
    • Kerner-Klenov-Wolf Cellular Automaton
  • general lane-changing model MOBIL Paper
  • detailed physics-based model for fuel consumption and emissions Paper and Book
  • drivers' behavioral models
  • text-file output of detectors, spatiotemporal fields, floating-car data etc.
  • road network description by the opendrive.org standard

Submodule Components:

  • The core contains the main MovSim library and a console application that can run a traffic simulation and produce .csv output for further processing or graphical display.
  • The viewer displays an animated traffic simulation.
  • The consumption comprises a physics-based fuel consumption model which can also be fed by csv data.
  • The xsd module comprises the xsd schema resources for the xml bindung (JAXB)
  • The common provides general functionality for all submodules.

Documentation

A mathematical description of the models as well as the basic simulation and evaluation concepts can be found in the book Traffic Flow Dynamics by Treiber/Kesting. A good starting point is the free chapter about Car-Following Models based on Driving Strategies.

Documentation by example can be found in the sim directory.

Installation

Install the git version control system and clone the repository via ssh

git clone [email protected]:movsim/movsim.git

or via https (to prevent firewall problems)

git clone https://github.com/movsim/movsim.git

Java is required at least in version 8 (JRE 1.8).

Apache Maven is the software build and management tool for MovSim.

MovSim produces csv/text-based output that can be plotted using gnuplot or other tools.

Usage

To build MovSim, type mvn install from the main MovSim directory.

To run the movsim core or viewer see their respective readme files: core and viewer.

Development

We follow the naming conventions of the Git Flow Model. Please checkout the branch develop to start with the latest source code.

Demos

There are a number of simulation scenarios defined in the sim directory.

Movsim can not only used for simulating road traffic but has been used to model a cross-country skiing race Youtube.

Commercial use

For commercial use, please contact the copyright holders at [email protected]

Copyright and License

MovSim is Copyright (C) 2010-2016 by Arne Kesting, Martin Treiber, Ralph Germ, and Martin Budden.

MovSim is licensed under GPL version 3.

For general questions use the contact at [email protected].

References

[1] M. Treiber and A. Kesting. Traffic Flow Dynamics, Data, Models and Simulation. Springer 2013.

[2] A. Kesting, M. Treiber, and D. Helbing. General lane-changing model MOBIL for car-following models. Transportation Research Record, 86-94 (2007). Paper

[3] A. Kesting, M. Treiber, and D. Helbing. Enhanced intelligent driver model to access the impact of driving strategies on traffic capacity. Philosophical Transactions of the Royal Society A, 4585-4605 (2010). Preprint

[4] A. Kesting, M. Treiber, and D. Helbing. Agents for Traffic Simulation. Chapter 11 in "Multi-Agent Systems: Simulation and Applications", 325-356 (2009). Preprint

[5] M. Treiber, A. Kesting, and D. Helbing. Delays, inaccuracies and anticipation in microscopic traffic models. Physica A: Statistical Mechanics and its Applications 71-88 (2006). Preprint

[6] M. Treiber, and A. Kesting. An open-source microscopic traffic simulator. IEEE Intelligent Transportation Systems Magazine, 6-13 (2010). Preprint

movsim's People

Contributors

akegermany avatar chenzhang22 avatar dependabot[bot] avatar jonasmatthias avatar martinbudden avatar movsim avatar mtgermany avatar rgerm avatar tracii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

movsim's Issues

xinclude for xml parsing?

It would be great if a html <xi:include href="models.xml" /> reference were parsed from the movsim.xprj file. This would e.g. allow to define models separately from the simulation configuration. My first try was not a success :-(

Fail to run MovSimcore and MovSimVeiwer

command line: java -jar MovsimViewer-1.6.0-jar-with-dependencies.jar
error:
no log4j from commandline provided. Use default log4j configuration from=jar:file:/C:/Users/beyond1self/Desktop/movsim-Movsim-1.6.0/viewer/target/MovsimViewer-1.6.0-jar-with-dependencies.jar!/config/log4j.properties
No output path provided via option. Set output path to current directory!
0 [main] INFO (FileUtils.java:dirExists:129) - dir exits: . exists!
No configuration file provided! Please specify a file via the option -f.

I can`t fix it , is there someone help me out?
thank you.

Fix HighscoreFrame in games

The HighscoreFrame.java needs a general overhaul. Whether we want to keep the highscore ranking for the game, or not (so remove the code), or best, make it configurable.

generic road network

we plan to extend the simulator to generic networks. this is a major change and requires an extension of the current code base.

Add current speed in viewer

An dynamic quantity of the current simulation status is the average speed of all vehicles suited to show on the status bar in the viewer.

Changing simulations broken

It seems when you want to change from the simulation to one shown on the list or load one from the menu both are impossible. The file opener asks for an XML file which is not how projects are currently stored. The issue with loading the scenarios is that it calls reset, which calls initialise which try's to load the original project again, something about this is also broken.

I'm going through and trying to fix this although would like to know firstly if you're trying to transition to XML files or away from them so I can fix this correctly.

MovSim JavaDocs

Hi! We are beginner in MOVSIM. Can we have documentation of MOVSIM?

Fail to install on Windows

Hi all,
I tried to install movsim on my Windows 7 machine, I have newly installed jdk-11.0.2 and maven-3.6.0. When runing mvn clean install on root dir of movsim, the following error message is shown:


[INFO] Compiling 16 source files to D:\movsim\xsd\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/movsim/xsd/src/main/java/org/movsim/simulator/vehicles/longitudinalm
odel/acceleration/parameter/IModelParameterOVMFVDM.java:[3,26] package org.movsim.
autogen does not exists
[ERROR] /D:/movsim/xsd/src/main/java/org/movsim/simulator/vehicles/longitudinalm
odel/acceleration/parameter/IModelParameterOVMFVDM.java:[13,5] fail to find symbol
symbol: class OptimalVelocityFunctionEnum
position: interface org.movsim.simulator.vehicles.longitudinalmodel.acceleration.parame
ter.IModelParameterOVMFVDM
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for movsim 1.7.0-SNAPSHOT:
[INFO]
[INFO] movsim ............................................. SUCCESS [ 0.802 s]
[INFO] MovsimXsd .......................................... FAILURE [ 4.701 s]
[INFO] MovsimCommon ....................................... SKIPPED
[INFO] MovsimConsumption .................................. SKIPPED
[INFO] MovsimCore ......................................... SKIPPED
[INFO] MovsimViewer ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.740 s
[INFO] Finished at: 2019-01-20T17:46:33+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
7.0:compile (default-compile) on project MovsimXsd: Compilation failure: Compila
tion failure:
[ERROR] /D:/movsim/xsd/src/main/java/org/movsim/simulator/vehicles/longitudinalm
odel/acceleration/parameter/IModelParameterOVMFVDM.java:[3,26] package org.movsim.
autogen does not exists
[ERROR] /D:/movsim/xsd/src/main/java/org/movsim/simulator/vehicles/longitudinalm
odel/acceleration/parameter/IModelParameterOVMFVDM.java:[13,5] could not find ex
ternal symbol
[ERROR] symbol: class OptimalVelocityFunctionEnum
[ERROR] position: interface org.movsim.simulator.vehicles.longitudinalmodel.acceleratio
n.parameter.IModelParameterOVMFVDM
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :MovsimXsd


I wonder is there anything I could do to locate the problem and solve it?
Thank you for your time!

Shutdown hook

It would be nice if movsim could handle an ordered shutdown behavior after an interrupt like CTRL-C etc. Could be combined with a "simulationCompleted" callback or so.

Progress bar depending on simuation setup

The progress bar is only shown when the simulation is configured with a finite duration. Otherwise the simulation run is intended to run infinitivly or stopped by user actions (e.g. in the games).

Unit problems when drawing CA simulations

For CAs with cell length != 1 m, there are inconsistencies between (i) drawing the roads, (ii) drawing the vehicle positions, possibly (iii) simulating the vehicle positions. What I have found playing with sim/bookScenarioSimpleOnramp/onramp_NSM.xprj and separated the links (id1-3) vertically, is the following:

  1. The length attribute of the tag is ignored, at least when drawing: What matters is the (sum of) the length attribute(s) in the environment. It seems also to be ignored in the simulation itself since cars are drawn beyond 100 m (and even beyond 750 m) if the length of the first road is set to 100m and the length in the geometry settings is greater (example: simple_onramp_CA_dx7.5.xodr)

  2. The lengths in the geometry attributes of matters. However, vehicles are drawn up to a length of 7.5that length (for NSM; cell length=7.5 m) while the road itself is drawn to 1 that length. Consequently, whatever length is set in either the geometry or top-level road attributes, the vehicles overshoot the roads

  3. This bug has not been detected since all the examples had a constant vertical displacement, i.e., the roads and vehicles were just stacked one over the other which is not visible if there are only discrete displacements

Running Problem

Why it can not run successfully after cloning? Seems like lacking something.

Simulation runtime errors

I have tested all the provided projects (on Java 1.8) and found (mostly minor) errors:

(1) runtime error for all simulations which, however,
does not stop the simulation when running:

Exception in thread "main" java.lang.IllegalStateException: it's a mistake if this is set twice
at com.google.common.base.Preconditions.checkState(Preconditions.java:507)
at org.movsim.simulator.SimulationRun.setCompletionCallback(SimulationRun.java:197)
at org.movsim.viewer.ui.HighscoreFrame.(HighscoreFrame.java:75)
at org.movsim.viewer.ui.HighscoreFrame.initialize(HighscoreFrame.java:228)
at org.movsim.viewer.ui.AppFrame.(AppFrame.java:98)
at org.movsim.viewer.App.main(App.java:67)

(2) Incorrect directory association for auxillary ressources such as images
when calling a project from another directory: it is attempted to get
the ressources from the simulation working directory (e.g.,
$movsimParent/movsim/testsim/) instead of from the movsim's ressources
(e.g., $movsimParent/sim/buildingBlocks/background_example.png)

868 [main] ERROR (TrafficCanvas.java:initGraphicSettings:314) - cannot load background image background_example.png

(3) Following projects return errors without running at all (in all
other projects, the simulation runs even if errors are produced):

fail= consumption/data/sim/consumption_sim.xprj
consumption/data/ostfalia/consumption_ostfalia.xprj
sim/bookScenarioSimpleOnramp/onramp_KKW.xprj
sim/features/bidirectional/highway_intersection.xprj
sim/buildingBlocks/onramp.xprj

(4) In several projects, nothing can be seen (although the simulation
is running correctly) because the initial position/size settings do
not match the simulation region

Failed to execute goal on project MovsimCore

Alas, Maven isn't resolving all the dependencies for me:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.727s
[INFO] Finished at: Thu Feb 07 22:35:56 GMT 2013
[INFO] Final Memory: 13M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project MovsimCore: Could not resolve dependencies for project org.movsim:MovsimCore:jar:1.3.1-SNAPSHOT: Could not find artifact org.movsim:MovsimNetwork:jar:1.3.1-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :MovsimCore

I still got some problems to run the program

Hey ,thank you for replying my dull question. I already installed all the configure files before I submit the issue, it`s my bad not explaining the problem clearly, and I stopped here:

no log4j from commandline provided. Use default log4j configuration from=jar:file:/E:/movsim/movsim/viewer/target/MovsimViewer-1.7.0-SNAPSHOT-jar-with-dependencies.jar!/config/log4j.properties
option -h. Exit Programm
usage: movsim
-d,--write_dot writes a 'dot' network file for further
analysis of the xodr
-f,--file movsim main configuration file (ending
".xprj" will be added automatically if
not provided.
-h,--help prints this message
-l,--log writes the file "log4j.properties" to
file to adjust the logging properties on
an individual level
-o,--directory argument is the output path relative to
calling directory
-s,--simulation scanning mode invokes the simulator repeatedly in a
loop (needs to be programmed by user)
-v,--validate parses xml input file for validation
(without simulation)
-w,--write_xsd writes xsd file to output (for
convenience/lookup schema definitions)

I have tried a lot times and looked up many reference materials, and I still can not use these commands correctly......
Can you take some time give me some examples on how to use this commands?
Your program means a lot to me ,exception for your reply.

upgrade to opendrive 1.5 compile error

OpenDRIVE_1.5M.xsd; lineNumber: 1059; columnNumber: 76; 具有相同名称 "com.huaweicloud.simulation.autogen.opendrive.TRoadSignalsSignalReference" 的类/接口已在使用。请使用类定制设置来解决此冲突。

It said there are same class name TRoadSignalsSignalReference. But I didn't find it.

                    <xs:complexType name="t_road_signals_signal_reference">
                        <xs:group ref="g_additionalData"/>
                        <xs:attribute name="elementType"    type="e_road_signals_signal_reference_elementType"  use="required"/>
                        <xs:attribute name="elementId"      type="xs:string"                                    use="required"/>
                        <xs:attribute name="type"           type="xs:string"                                    use="optional"/>
                    </xs:complexType> <!-- end t_road_signals_signal_reference -->
 

Errors in POM files

During the installation
filepom- movsim core
pom-movsim common
pom-movsim viewer

I found some errors in the POM file level for each Common , Core, viewer folders

The POM file error for MOVsim Common is:

Failed to read artifact descriptor for org.jdom: jdom: jar: 1.1
org.eclipse aether

the POM file error MOVsim Core is:

Missing artifact org.movsim: MovsimXsd: jar: 1.6.0-SNAPSHOT

the POM file error MOVsim Viewer is:

Missing artifact org.movsim: MovsimXsd: jar: 1.6.0-SNAPSHOT

how to fix these errors?

Thanks

New simulation building block: gradient

We already have used gradients for the CCS model. The elevation profile will be read from the xodr network input and should be applied to the car models as well. Impact on the fuel consumption is an interesting use case.

Failed to run MovSimcore

I'm trying to run movsim core using Eclipse , but there is a problem with some dependencies . How can I fix this?

Description Resource Path Location Type
Missing artifact org.movsim:MovsimCommon:jar:1.6.0-SNAPSHOT pom.xml /MovsimCore line 19 Maven Dependency Problem
Missing artifact org.movsim:MovsimConsumption:jar:1.6.0-SNAPSHOT pom.xml /MovsimCore line 24 Maven Dependency Problem
Missing artifact org.movsim:MovsimXsd:jar:1.6.0-SNAPSHOT pom.xml /MovsimCore line 14 Maven Dependency Problem
The container 'Maven Dependencies' references non existing library 'C:\Users.m2\repository\org\movsim\MovsimXsd\1.6.0-SNAPSHOT\MovsimXsd-1.6.0-SNAPSHOT.jar' MovsimCore Build path Build Path Problem
The project cannot be built until build path errors are resolved MovsimCore Unknown Java Problem

output files CSV Directory

Hi ,

By running the routing scenario simulation , we don't found the text files output CSV which contains the data. can you explain how to get it .

xml

upgrade to opendrive 1.5 compile error

OpenDRIVE_1.5M.xsd; lineNumber: 1059; columnNumber: 76; 具有相同名称 "com.huaweicloud.simulation.autogen.opendrive.TRoadSignalsSignalReference" 的类/接口已在使用。请使用类定制设置来解决此冲突。

It said there are same class name TRoadSignalsSignalReference. But I didn't find it.

                    <xs:complexType name="t_road_signals_signal_reference">
                        <xs:group ref="g_additionalData"/>
                        <xs:attribute name="elementType"    type="e_road_signals_signal_reference_elementType"  use="required"/>
                        <xs:attribute name="elementId"      type="xs:string"                                    use="required"/>
                        <xs:attribute name="type"           type="xs:string"                                    use="optional"/>
                    </xs:complexType> <!-- end t_road_signals_signal_reference -->
 

Gaussian-distributed desired speeds

So far MovSim has a mechanism for assigning equally distributed desired speeds (inter-driver variability). For the CCS gaussian-distributed v0 would be preferable.

Consistency check of input

make a consistency check for the user input:

  • are routes connected?
  • are all road ids defined in network?
  • ....
    add option on command line for this check.

Consistent input file endings

Currently movsim reads to input files: a project.xml and a referenced network file, say project.xodr. In the future there will also be an optional consumption model input file. An optionally separate input file for the (microscopic) models is also an option. I'd like to align the input files and propose to assign dedicated 4-letter endings to all movsim input files, e.g.

*.xodr for the opendrive input file
*.xmsp for the movsim project configuration
*.xmsc for the movsim consumption model
*.xmsm for the movsim model configuration

Overtaking on bidirectional roads

Movsim aims at modeling all generic situations in traffic. Overtaking on bidirectional roads is such a generic situation which we should handle.

At first the movsim network model has to be extended in a way that the opendrive format for left and right lanes is taken into account. Then we need a mapping to two RoadSegments which share the same RoadMapping as "peers" in counterflow directions. That is: The network of road segments is a directed graph and we need a mapping from a road-ID to a pair of ids for both directions.

Having this datastructure the model for the discrete decision has to be implemented taking into account the vehicle from the counterflow direction.

Last but not least the visualization needs to handle these issues (drawing the vehicles in the correct driving directions (a vehicle could use a road segment in the counter-driving direction for overtaking. The experience showed that visualization is a perfect tool for model development.

Improve highscore ranking for games

Information about the ranking ("from 100 runs you made it to rank 10") would be attractive after finishing a simulation run. Asking for initials for the highscore ranking table should only appear e.g. for the top-20.

Windows compatibility

On 6 dec 2012 where was no windows compatibility of movsim 1.3.1.

There are two reasons:

  1. Bug with separators (I sent commit with description)
  2. Bug with consumption.xml file.

About first reason:
Using "File.separator" in "ProjectMetaData.java" class around "MOVSIM_DTD_PATH" string gets movsim to crash under windows. Changing "File.separator" back to "/" restores ability to work under windows.
This bug was introduced on 24 oct at "bug fixed (writes dtd and log4j out again)" commit.

I think this is because internal movsim paths should keep "/" separators (as opposed to external paths). But it maybe wrong (I don't know exactly).

About second reason:
"consumption.xml" file should be strictly present in configuration simulation XML file (under windows). Otherwise movsim don't work under windows.
This bug was introduced on 23 oct 2012 at "added parsing of consumption filename" commit.


There is example of movsim crash output with unsolved bugs:
(Conditions: windows 7 x64, java 1.6)

d:\Projects\Roads\MovSim_tests\Learn4>java -jar d:\Projects\Roads\MovSim\viewer\target\MovsimViewer-1.3.1-SNAPSHOT-jar-with-dependencies.jar -f onramp_example.xml
No output path provided via option. Set output path to current directory!
0 [main] INFO (FileUtils.java:dirExists:156) - dir exits: . exists!
3 [main] INFO (ViewProperties.java:loadDefaultProperties:31) - read default properties from file /config/defaultviewerconfig.properties
set to system LaF
201 [main] WARN (TrafficCanvas.java:initGraphicSettings:277) - vehiclesInput is null. cannot set vehicles' labelColors.
202 [main] INFO (Simulator.java:initialize:106) - Copyright 'й' by Arne Kesting, Martin Treiber, Ralph Germ and Martin Budden (2011, 2012)
203 [main] INFO (XmlReaderSimInput.java::104) - Begin parsing: D:\Projects\Roads\MovSim_tests\Learn4\onramp_example.xml
224 [main] ERROR (XmlHelpers.java:run:93) -
java.net.MalformedURLException
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
at org.movsim.input.XmlReaderSimInput$1.run(XmlReaderSimInput.java:289)
at java.security.AccessController.doPrivileged(Native Method)
at org.movsim.input.XmlReaderSimInput.getDocument(XmlReaderSimInput.java:271)
at org.movsim.input.XmlReaderSimInput.readAndValidateXmlFromFileName(XmlReaderSimInput.java:241)
at org.movsim.input.XmlReaderSimInput.(XmlReaderSimInput.java:111)
at org.movsim.input.XmlReaderSimInput.parse(XmlReaderSimInput.java:77)
at org.movsim.simulator.Simulator.initialize(Simulator.java:112)
at org.movsim.simulator.Simulator.loadScenarioFromXml(Simulator.java:208)
at org.movsim.viewer.graphics.TrafficCanvas.setupTrafficScenario(TrafficCanvas.java:263)
at org.movsim.viewer.ui.AppFrame.(AppFrame.java:81)
at org.movsim.viewer.App.main(App.java:63)
Caused by: java.lang.NullPointerException
... 30 more
Exception in thread "main" java.lang.NullPointerException
at org.movsim.input.XmlReaderSimInput.fromDomToInternalDatastructure(XmlReaderSimInput.java:125)
at org.movsim.input.XmlReaderSimInput.(XmlReaderSimInput.java:119)
at org.movsim.input.XmlReaderSimInput.parse(XmlReaderSimInput.java:77)
at org.movsim.simulator.Simulator.initialize(Simulator.java:112)
at org.movsim.simulator.Simulator.loadScenarioFromXml(Simulator.java:208)
at org.movsim.viewer.graphics.TrafficCanvas.setupTrafficScenario(TrafficCanvas.java:263)
at org.movsim.viewer.ui.AppFrame.(AppFrame.java:81)
at org.movsim.viewer.App.main(App.java:63)

jaxb binding for xml input

Let us consider to use Jaxb to autogenerate java classes from our input schema definitions. I will start for the consumption submodule which does not yet contain the sources from core.

Add key binding for viewer exit

+Q is a typical binding for exiting a program. Should be added for the viewer. Existing key bindings could be documented on the GUI.

Add variable message sign to xml

Currently the variable message sign is set only for the routing game in the initialize method in the Simulator class.

public void initialize() {
    logger.info("Copyright '\u00A9' by Arne Kesting, Martin Treiber, Ralph Germ and Martin Budden (2011, 2012)");

    projectName = projectMetaData.getProjectName();
    // TODO temporary handling of Variable Message Sign until added to XML
    roadNetwork.setHasVariableMessageSign(projectName.equals("routing"));

Add Prospect-Theory Model

And document model by example simulations and systematic scans of input quantities for the resulting acceleration. This could be used for all acceleration models.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.