Iain,
The /n is actually \n (back slash).
The Constructors section of the Javadoc shows how to create an item. ?The set methods are used to modify an item. ?The items have to be created in the proper order because dependent items contain the parent IDs. ?
What is the current structure of the main timetable? ? Is it an image or a spreadsheet? ?I assume you want to add the new trains to the existing layout using the other station list.
It is not necessary to set the arrive and depart times. ?During a mass load, the calculation process can be disabled to prevent a lot of error messages. ?Once the load has finished, the calculation process is enabled and a small change is made to trigger the calculations.
I will create a basic structure that you can work with to load your data. ?This will also be the prototype for a general purpose import that will be added to the Java code.
Dave Sand
toggle quoted message
Show quoted text
On Dec 21, 2018, at 6:51 AM, Iain <iain@...> wrote:
I have spent a little time doing the two things I mentioned above in 154753. ?All is well but I seem to be having some trouble with my '/n' not always?(apparently) working. ?Obviously a bug but not urgent.
I have been looking at getting my main timetable into the system - but it just isn't possible unless I hire some monkeys to put in some 2000 entries or?more sensibly create a data take on system which will take in a csv and write out the required data structure. ?I note that there are set routines like the?get routines. ?Would these write brand new records or only update old ones? ?I need to be able to create data structures and write them or maybe not -?do I just create an xml file?
I would assume I would need to do the calculations and set (for example) the stop arrive and depart time which ever was the right approach.
Christmas is here and I will be very busy on other things for most of January - but some guidance would be most helpful so I can progress things over?the next few months. ?My objective again is to produce a general purpose tool not just to read in my data. ?I have put a sample spreadsheet of what I?mean as data take on in the file space.