Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Defining variables in .rou file?
  • From: Maytheewat Aramrattana <maytheewat.aramrattana@xxxxx>
  • Date: Fri, 27 Mar 2020 11:35:05 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hh.se; dmarc=pass action=none header.from=hh.se; dkim=pass header.d=hh.se; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=huVLVLSVd/dU69C4MpgAWgjcQEHLQAfpXrj6jncQDxs=; b=WZ35QtUDkEFlOwdhNYfKRjU4vZ1lF3sTBzFR41IrMOId21tWKnmB+WUFdghOm6S2HR4EnjKFcoddm/5c0DMzhxTPNVdGU/3kqQeaG8kwSxIm6BmfXgNFKVJJMchX/hgSatoSVh8/gx/l4vODrXE+zgPV/2iUz1wrm+A48wmCNosB9aLLMi9GV63aWNeWTRb3O5tRw4YZGWPJB3Bqoq2eu6Z/KlkeB55gLwOkBKHnQdv7SPLo8a/jKcL5z/J8OQB1xRtxZ/V+su1cq+ceuQVMEhX3Z48NvbOZqa9Mt8tcE9E9OC93Jc1UsWgCWuz6sbo3NKm4v5HHLM9N2irhpmaCFw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WdDAKCe+vFFkw3I7RdKPyH2E9yWLmPr5KKru0vsQO97kVoXxblFPffTcsqXVvyDeVeJPv5YFGto7haDkqSlAgfWmIB+Z/z5MSDGXrNQoBnKohqXmJxSAVizmOu9+bKDrcZwaGFKDlKDonnY7Tctr+0jhVSFgPwAhm2DUZ4I5nh8hFyGzkd1e1qfxmX6Mq3rc7CaCd6KHtgpCJkZuVQaHTYs5kW13Pk1O9G72UgpI8gbB7FJqP18cJ8GFPGD+E/3/JMIhH5Tt96U0pnmw4FmeLYiQhUz8hwUs0Eu6DfYgNXwpMorNJc73IXvz0Of2CvFSZaUgEFI1aeSRn9ieYmaJ6A==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWBCp51mfNx1IBrkyV+TD48qQNxA==
  • Thread-topic: Defining variables in .rou file?

Dear all,

I would like to know if there is anyway of defining variables in .rou.xml file in SUMO configuration? What I would ideally like to do is to have something like the following in the .rou file:

my_accel = 3.1
my_sigma_1 = 0.5
my_sigma_2 = 1.0

<vType id="type1" accel=my_accel  decel="4.5" sigma=my_sigma_1  length="5" maxSpeed="70"/>
<vType id="type2" accel=my_accel  decel="4.5" sigma=my_sigma_1  length="5" maxSpeed="70"/>
<vType id="type3" accel=my_accel  decel="4.5" sigma=my_sigma_2 length="5" maxSpeed="70"/>
<vType id="type4" accel=my_accel  decel="4.5" sigma=my_sigma_2 length="5" maxSpeed="70"/>
<vType id="type5" accel=my_accel  decel="4.5" sigma=my_sigma_2 length="5" maxSpeed="70"/>

instead of changing them one-by-one every time. Perhaps there is a better way that I did not know? Thank you for your help in advance.

Best Regards,
Maytheewat Aramrattana

Back to the top