Never mind, solved it.
I had to ignore the "--" in front of each option, so addOption("start","1")
does the trick.
Didac
---------------------------------------------
Didac Busquets, PhD
Senior Technologist
Transport Systems Catapult
3rd floor, The Pinnacle
170 Midsummer Boulevard
Milton Keynes
MK9 1BP
Tel: +44 (0) 1902 359 999 Ext: 1126
Email: [email protected]
Web: ts.catapult.org.uk
________________________________________
From: Didac Busquets <[email protected]>
Sent: Wednesday, August 26, 2015 4:46 PM
To: [email protected]
Cc: Christos Tsotskas
Subject: [sumo-user] Auto-start using Traci4J
Hi all,
I'm using Traci4J and I'd like to get SUMO start on launch. I know how to do it
with TraCI in python, but it's not clear how to do so with Java. I've tried
using:
SumoTraciConnection.addOption("--start","")
but it doesn't work. Actually it doesn't work for other SUMO options so it
might be the wrong method to call.
Any help will be much appreciated.
Thanks,
Didac
---------------------------------------------
Didac Busquets, PhD
Senior Technologist
Transport Systems Catapult
3rd floor, The Pinnacle
170 Midsummer Boulevard
Milton Keynes
MK9 1BP
Tel: +44 (0) 1902 359 999 Ext: 1126
Email: [email protected]
Web: ts.catapult.org.uk
The Transport Systems Catapult is one of a network of elite technology and
innovation centres established by Innovate UK as a long-term investment in the
UK's economic capability. Applying business-led research, Catapults help
businesses transform great ideas into valuable products and services to compete
in the global markets of tomorrow. Transport Systems Catapult is a company
limited by guarantee, registered in England and Wales with company number
08041919. Registered office: The Pinnacle, Midsummer Boulevard, Milton Keynes,
Bucks, MK9 1BP. This email and any attachments are confidential and intended
solely for the use of the recipient(s) to whom they are addressed. If you have
received it in error, please destroy all copies and inform the sender.
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user
The Transport Systems Catapult is one of a network of elite technology and
innovation centres established by Innovate UK as a long-term investment in the
UK’s economic capability. Applying business-led research, Catapults help
businesses transform great ideas into valuable products and services to compete
in the global markets of tomorrow. Transport Systems Catapult is a company
limited by guarantee, registered in England and Wales with company number
08041919. Registered office: The Pinnacle, Midsummer Boulevard, Milton Keynes,
Bucks, MK9 1BP. This email and any attachments are confidential and intended
solely for the use of the recipient(s) to whom they are addressed. If you have
received it in error, please destroy all copies and inform the sender.
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user