ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 07-17-2013
Patrick Frank Patrick Frank is offline
Flexsim User
 
Join Date: Jun 2013
Posts: 4
Downloads: 9
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Patrick Frank is on a distinguished road
Default 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  
Old 07-17-2013
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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;
Jörg
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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.