ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Right of way in a traffic controlled area
Hello,
I want to implement in a model a priority schema (right of way) to grant access to a controlled area based on some characteristic of the TE. The controlled area is enclosed by a trafficControl object. Please refer to the attached picture. - There is one-way segment between Point A and Point B controlled by TrafficControl object (capacity is set to 1). - Empty trucks enter the segment through Point B, while loaded trucks do it through Point A. - Currently, whoever reaches the entrance point (or requests entry) first will cross the one-way segment first. The desired behavior is that loaded trucks have the highest priority and should cross the segment first, and as soon as the segment becomes available. It should not matter that an empty truck has been waiting at the entrance point (Point B) for a longer period of time. My questions: Can we assign a priority to the entry requests in order to keep empty trucks always at the bottom of the list, prioritizing the loaded ones? Handling of request by the traffic control object should be based on this priority. I saw in the tree that the trafficControl object stores the requests list under /variables/requests. Are there any commands to manipulate this list? Thanks in advance Cheers Cristian |
The Following User Says Thank You to Cristian Ramirez For This Useful Post: | ||
Jörg Vogel (11-13-2013) |
#2
|
||||
|
||||
Hello Cristian,
I haven't found a method to access the information in the content of the node "requests". But if you build your own filter with an additional network node and if you use the method described in this thread you can grant loaded trucks mostly the access to your controlled path. The methods described in mentioned thread have a fault. The amount of Taskexecuters on the network isn't controlled anymore. Jörg |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
Cristian Ramirez (11-13-2013) |
#3
|
|||
|
|||
Thank you Jörg,
I tried the solution from the other post and works as expected: the loaded trucks are free to enter the controlled area without any trouble. The problem is that loaded trucks still need to give way if the segment is already taken by an empty truck. In your post you mentioned "building a filter with an additional network node". Could you elaborate on that, please? Thanks Cristian |
Thread | Thread Starter | Forum | Replies | Last Post |
Traffic Controll | Uri Schtalheim | Q&A | 1 | 12-07-2011 10:58 AM |
Three questions about road traffic simulation | Frans Zeng | Q&A | 4 | 08-11-2011 02:09 AM |
Road traffic | mallik | Q&A | 3 | 09-25-2009 12:55 PM |
Random generator for Yard Block Area and Transfer Area | John Kim | Container Terminal (CT) Library | 1 | 09-21-2009 10:59 AM |
Modeling Traffic Flow | DavidStun | Pre-sales Questions | 2 | 03-11-2009 11:35 AM |