Comments (3)
Are you using PT in your simulation?
If so, PT doesn't have any plans (like a regular agent has) so this could explain why you are getting the java.lang.NullPointerException from line 131 in the class PlansTranslatorBasedOnEvents.java:
Plan selectedPlan = person.getSelectedPlan();
This is a known issue - more details and a possible fix here:
https://matsim.atlassian.net/browse/MATSIM-648
from matsim-code-examples.
Hello again,
Yes, i'm using PT simulation and I want to use Cadyts to work with a scenario that simulates public transit vehicles as regular vehicles on links. (transit vehicles pass a count station the same way as private cars)
I believe I did what you recommended correctly,
I defined - ((person == null)? return - in the PlansTranslatorBasedonEvents, but the same error in the same place (L131) happened .. it seems the change I made did not work .
I don't know if i did something wrong or actually to put (person=null) return it will not make difference in my case.
Do you know anything else I can do?
Follow my logfile.
Thanks for any help!!
from matsim-code-examples.
I defined - ((person == null)? return - in the PlansTranslatorBasedonEvents, but the same error in the same place (L131) happened .. it seems the change I made did not work .
if ( person == null ) return ;
is probably not the same as what you tried with ? and :; see here:
https://stackoverflow.com/questions/18124745/java-ternary-operator-and-nullpointerexception
Your code is not exactly the same as that one, but since you did not give the full code I cannot really tell.
from matsim-code-examples.
Related Issues (20)
- Route through resticted/private roads HOT 3
- Problem with Car availability attribute
- Score function calculation HOT 3
- The steps to apply DVRP extensions
- Pedestrian modeling and simulation HOT 1
- Integrate traffic volumes after 24 hours
- Creating synthetic population on MATSim HOT 7
- Unreasonably high travel speeds in simulation results HOT 8
- Unexpected Agent Behavior in MATSim Simulation Across Iterations HOT 4
- Any references for why we chose values for maxTravelTimeAlpha and Beta in DRT?
- Any previouos studies about DRT sensitiveity analysis?
- Vulkaneifel scenario keep failing to compile. HOT 5
- How to fix the insuffiencent memory HOT 4
- Estimate the total travel time for all the vehicles HOT 3
- OTFVis in windows
- Different roadPricing for cars and SAVs HOT 2
- Query regarding the 1st Homework Task HOT 5
- Trip-based Network Routing Disutility HOT 3
- How can we make sure that the results obtained with matsim is correct ? HOT 1
- integrating roadPricing and multiModeDrt with drtServiceArea
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matsim-code-examples.