View Issue Details

IDProjectCategoryView StatusLast Update
0000020advtrainsCorepublic2018-11-20 11:15
ReporterkrokoschlangeAssigned Toorwell 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0000020: Improve system for train lines
DescriptionA function set_train_line() for atlatc tracks - would set a field of a train to a string, e.g. "2 - Airport"
A function get_train_line() for atlatc tracks - would return this string

This would be very helpful when a switch is set according to the line of a train, e.g. line "2 - Airport" will go to the Airport while line "1 - Main Station" would go to the train station. Making the field a string would enable the atlatc track to distinguish trains of the same line going in opposite directions if they meet at one switch, e.g. line "2 -Airport" and line "2 - Harbour"
TagsNo tags attached.

Activities

orwell

2018-07-23 21:38

administrator   ~0000008

Yes, this is certainly useful. At the moment, you can save some data associated to a train by creating a subtable in S, such as
S.line = {}
and then
S.line[atc_id]="3"
But there's already a set_line() function to set the line number on the subway train, but it has no getter, this is required.

orwell

2018-11-15 12:37

administrator   ~0000019

Will implement "line" property for trains

orwell

2018-11-20 11:15

administrator   ~0000020

37166b5c142b6b3578e589b75b86d2e11345f49d

Issue History

Date Modified Username Field Change
2018-07-23 18:58 krokoschlange New Issue
2018-07-23 21:38 orwell Assigned To => orwell
2018-07-23 21:38 orwell Status new => acknowledged
2018-07-23 21:38 orwell Note Added: 0000008
2018-11-15 12:37 orwell Note Added: 0000019
2018-11-20 11:15 orwell Status acknowledged => resolved
2018-11-20 11:15 orwell Resolution open => fixed
2018-11-20 11:15 orwell Note Added: 0000020