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
|
|||
|
|||
Modifying TrafficControls
Hi,
is it possible to modify a TrafficControl in a way, that only certain travelers on a network (e.g. TaskExecuters with a certain destination) are recognized and controlled and all the other travelers can pass without restrictions? Thanks in advance Patrick |
#2
|
||||
|
||||
Hello Patrick,
yes, you can. The information is in the command manual for "trafficcontrolinfo". If you want control the area on your own, you can define the controlled and uncontrolled Taskexecuters in the OnEntryRequest-Trigger of the TrafficControl. The Return-value of the controlled Taskexecuters is "TC_ON_ENTRY_REQUEST_DEFAULT", all other Taskexecuters return value is "TC_ON_ENTRY_REQUEST_ALLOW". In the following source code are all Taskexecuters of the Operator-Class independent from the TrafficControl. The other Classtype-Travelers, such as Transporter, Taskexecuter, ASRS-Vehicle and other, are still controlled by the TrafficControl. The Code is from the OnEntryRequest-Trigger. Code:
/**Custom Code - uncontrolled Classtype Operator*/ treenode current = ownerobject(c); treenode traveler = parnode(1); if(eq(classobject(traveler),node("/Operator",library()))) return TC_ON_ENTRY_REQUEST_ALLOW; |
The Following 8 Users Say Thank You to Jörg Vogel For This Useful Post: | ||
Vadim Fooks (07-22-2013) |
Thread | Thread Starter | Forum | Replies | Last Post |
Modifying the arrival schedule of the Source Object at runtime | Vadim Fooks | Q&A | 2 | 01-22-2013 11:52 PM |
Modifying Access MDB files… without Access (and free) | Jorge Toucet | Tips and Tricks | 1 | 11-21-2008 05:13 AM |