Upcoming Games

(UTC times)


Full list
Add a game

Upcoming Events

No events to display

Decisions and Choices

You are here: Home > Forum > General > General questions, comments, and issues > Decisions and Choices

Page 1 of 1

Decisions and Choices 06/09/2017 at 18:37 #101579
VInce
Avatar
579 posts
Hi all,

I'm in the process of converting a FO timetable to Mon-Fri and wish to use Decisions and Choices to determine which day a train runs.

I want to make a train Mondays Excepted.

So do I have to have four examples of the train with a Day Of The Week Decision and each one with a different day choice i.e. DOTW/TUE, DOTW/WED, DOTW/THU, DOTW/FRI or is there an easier way?


Vince

I walk around inside the questions of my day, I navigate the inner reaches of my disarray, I pass the altars where fools and thieves hold sway, I wait for night to come and lift this dread away : Jackson Browne - The Night Inside Me
Last edited: 06/09/2017 at 18:41 by VInce
Reason: None given

Log in to reply
Decisions and Choices 06/09/2017 at 18:55 #101580
KymriskaDraken
Avatar
963 posts
Try the Pascal method:

Seed an engine for each day (0A00MON, 0A00TUE and so on) using a decision to pick which one seeds and thereby picking the day. Then you can have a rule for your MX train that 6Z00 (or whatever) must not run if 0A00MON runs.

Log in to reply
The following user said thank you: VInce
Decisions and Choices 06/09/2017 at 19:03 #101582
VInce
Avatar
579 posts
That is clever..

Thanks very much!


Vince

I walk around inside the questions of my day, I navigate the inner reaches of my disarray, I pass the altars where fools and thieves hold sway, I wait for night to come and lift this dread away : Jackson Browne - The Night Inside Me
Log in to reply
Decisions and Choices 06/09/2017 at 20:03 #101583
postal
Avatar
5208 posts
KymriskaDraken in post 101580 said:
Try the Pascal method:

Seed an engine for each day (0A00MON, 0A00TUE and so on) using a decision to pick which one seeds and thereby picking the day. Then you can have a rule for your MX train that 6Z00 (or whatever) must not run if 0A00MON runs.
For a train which runs on only one day of the week the DOTW decision is the way to go. For trains running on more than one day you just create as many rules as necessary for the days you don't want it to run.

Then suppose that on some days of the week it drops a portion an an intermediate station and other days it runs through intact. At the intermediate station you can create an action DR NXNN and assign a decision to that. So if the portion is dropped on three days, you create three DRs each with the decision DOTW and the appropriate days selected.

Huge amount of flexibility with what you can do with the decisions module so thanks to Clive for the work. I had a discussion with Clive a few weeks ago, and it is not high on his list of priorities but there may be an option in future to have rules that only operate if a choice from a decision is invoked (so maybe a single train governed by different rules to enter 10 mins after $1A00MON, 20 mins after $1A00TUE etc.). It would also be a good enhancement in Boolean ANDs and ORs could be used (so maybe a MTFO train could have the decision DOTW and choice AND(MON,WED,FRI) rather than having to create 2 rules for the train not to run. Similarly a train might have a TTHO DR action with the decision DOTW and choice OR(TUE,THU).

If all that came to pass it would substantially reduce the 759 rules currently written in the the current Pascal TT I am bringing up to date!

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Last edited: 07/09/2017 at 11:06 by postal
Reason: Edited to strike out incorrect statement

Log in to reply
The following users said thank you: VInce, BarryM
Decisions and Choices 06/09/2017 at 20:33 #101587
VInce
Avatar
579 posts
Hi,

Thank you for all of that - its the first time I've tried to do what I'm doing now and the more I work with the Decisions tab the more opportunities for its use I can see.

I shall be using it later as a traction choice too...

Regards

Vince

I walk around inside the questions of my day, I navigate the inner reaches of my disarray, I pass the altars where fools and thieves hold sway, I wait for night to come and lift this dread away : Jackson Browne - The Night Inside Me
Log in to reply
Decisions and Choices 06/09/2017 at 20:45 #101589
58050
Avatar
2652 posts
Not only does it work to vary the traction that could work trains, but also if you want to alter the stock on the trains like in my York summer 1991 timetable where the Newcastle - Liverpool Lime Street - Newcastle services are worked by 2 car Cl.158, 3 car Cl.158 units or Cl.47/4+5Mk.2a/b/c coaches.
You can also vary the depots Units or HSTs sets work from as well. In York the cross country HSTs sets are from EC - Craigentinny T&RSMD, PM - St. Phillips Marsh, Bristol or LA - Plymouth Laira depots.
All of which makes the timetable alot more realistic, especially BR era timetables.

Log in to reply
The following user said thank you: VInce
Decisions and Choices 06/09/2017 at 21:07 #101590
postal
Avatar
5208 posts
One thing I forgot to add. You can seed trains depending on the day of the week but the selective seeding does not work if the differentiator is the UID. It has to be the TD.

I have found by trial and error that the TDs of the DOTW seeds should be the first train in alphanumeric order that the TT reads as the sim seems to read all of the seed trains alphanumerically. That gives a list of seeds starting with for example 0A00FRI, 0A00MON, 0A00THU, 0A00TUE, 0A00WED each with a DOTW decision. If your seeds were 9A00MON etc, it would enter all of the seed trains alphanumerically ahead of them before reading the DOTW seed. After the DOTW seeds, you might have dated trains to seed like 1A00MO, 1A01TTHO etc. If you set up the seed trains with the full descriptor in the TD then the ordering and seeding work as expected.

If you set up the seeds as 0A00/$0A00FRI, 0A00/$0A00MON etc and the other seeds as 1A00/$1A00MO, 1A01/$1A01TTHO etc. then the selective seeding does not work and you get random seeding with trains from different days appearing. There is an open MANTIS bug about the problem.

There is nothing to stop you setting up as 0A00FRI/$0A00FRI etc as long as you have a distinctive descriptor as TD.

Once you get past the seeding stage, further trains entering by rule or decision work OK with the 1A00/$1A00MON format but you do need the expanded TD for the seeds which you need to select by day.

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
The following user said thank you: VInce
Decisions and Choices 07/09/2017 at 16:00 #101603
postal
Avatar
5208 posts
Another trick of the trade. You can't use more than one decision to govern the entry of a train. I you have a train due to enter on a single day of the week and also want to use another decision regarding the train, you can replace the DOTW decision with a rule that the train must enter 0 mins after the entry of the relevant DOTW seed. You can't use a rule like that if the train enters on more than one day as all rules must be satisfied before a train enters; if the train has rules to enter 0 mins after both the MON and WED seeds it will never enter as at least one of the seeds will not run.
“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
The following user said thank you: VInce
Decisions and Choices 07/09/2017 at 16:56 #101607
northroad
Avatar
872 posts
postal in post 101603 said:
Another trick of the trade. You can't use more than one decision to govern the entry of a train. I you have a train due to enter on a single day of the week and also want to use another decision regarding the train, you can replace the DOTW decision with a rule that the train must enter 0 mins after the entry of the relevant DOTW seed. You can't use a rule like that if the train enters on more than one day as all rules must be satisfied before a train enters; if the train has rules to enter 0 mins after both the MON and WED seeds it will never enter as at least one of the seeds will not run.
All this talk of changing rules for entry and exit sounds like a Brexit bill being discussed........

Log in to reply
Decisions and Choices 07/09/2017 at 16:59 #101608
postal
Avatar
5208 posts
The TT process has a satisfactory outcome.
“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply