thejosmeister / SimsigTtTools

A more 'polished' attempt at parsing and writing Simsig TTs via python
0 stars 0 forks source link

Add custom logic capability for filtering/modifying location lists #4

Closed thejosmeister closed 3 years ago

thejosmeister commented 3 years ago

Idea is to use a yaml config for each sim. Can have the following options:

thejosmeister commented 3 years ago

Developing the design:

Deal with trains that have times both sides of midnight. (Poss just send them in for now and manually edit)

Apply custom entry logic first: potential_entry = x

list_to_delete_if_before: TIPLOC/Readable

Then apply general entry logic: if potential entry is 1st location then capture dep time as entry time and delete location. if potential entry is not 1st location (implicitly no custom) then assume train starts on sim. if potential entry does not match to any locations then assume at start and take nominal entry time from 1st location if no potential entry then assume starts on sim.

Then have other location rules: if_x_y_concurrent: path_x:asda, path_y:dfsdf ... if_x_location_then_split_train: if_x_y_z_then_delete_y: x: y: z:

thejosmeister commented 3 years ago

Generic entry logic and 1st custom entry rule has implementation.

Todo:

thejosmeister commented 3 years ago

Todos coming out of testing

Entry:

Locations:

thejosmeister commented 3 years ago

More progress made will close this as barebones implementtations are working