lukos / simsig_importer

.Net Desktop Application for converting Excel simplified timetables into Simsig timetables
GNU General Public License v3.0
3 stars 1 forks source link

Create a Day of the week running automatically #52

Closed breadje closed 2 years ago

breadje commented 2 years ago

Apparently you can already filter out the trains based on their running days. Would it be hard to ad in an automatic rule for that? So when a train has 'SX' as running days it would ad the lines

   <EntryDecision>DOTW</EntryDecision>
      <EntryChoice>[not] SAT | SUN</EntryChoice>

and for WFO

      <EntryDecision>DOTW</EntryDecision>
      <EntryChoice>[any] WED | FRI </EntryChoice>

or am I asking to much now? It would have to create a decision tree automatically that corresponds with it of course.

  <Decision ID="DOTW">
      <Description>Day of the week</Description>
      <Choices>
        <Choice ID="MON">
          <Announcement>It is monday</Announcement>
        </Choice>
        <Choice ID="TUE">
          <Announcement>It is Tuesday</Announcement>
        </Choice>
        <Choice ID="WED">
          <Announcement>It is Wednesday</Announcement>
        </Choice>
        <Choice ID="THU">
          <Announcement>It is Thursday</Announcement>
        </Choice>
        <Choice ID="FRI">
          <Announcement>It is Friday</Announcement>
        </Choice>
      </Choices>
    </Decision>
lukos commented 2 years ago

Is there any need for this if you can export separate timetables easily?

breadje commented 2 years ago

If you want to create a multi-day timetable as most new timetables are these day's then it can be useful. The other option would be to create a separate timetable per day, but I have not seen many of these. And 'need for' is maybe the wrong choice of words, I'm already very happy with what there is. I'm just posting suggestions to ad more options/create a more powerful tool. There is no need for them, but it is nice to have ;).