Hi Ankur,
if you modify the source code directly, you need to recompile sumo (see
here for links to instructions http://sumo.dlr.de/wiki/Installing) and
use your newly compiled version. Implementing it with TraCI is a little
bit more involved. You should start with analyzing one of the existing
commands and maybe discuss the new command on the sumo-devel list before
starting your implementation.

Best regards,
Michael

Am 13.01.2016 um 15:03 schrieb Ankur Sarker:
> Dear Pablo,
> 
> At first, I would like to thank you for valuable information. After reading
> your reply, I have understood what I need to change or modify in source
> code. Can you do me another favor? I do not understand how to link my
> changes with SUMO runtime simulation. I want that the power distribution
> will be dynamic based on the number of vehicles, vehicles' battery power,
> etc. If I need to add a new command in TracI, what would be my steps? Or,
> is there any other way to link my distribution with runtime SUMO
> environment?
> 
> Thanks again!
> 
> With Best Regards
> Ankur
> 
> On Wed, Jan 13, 2016 at 12:20 AM, Pablo Álvarez López <
> [email protected]> wrote:
> 
>> Hi Ankur.
>>
>> at the present time busStops und ChargingStations cannot be modified using
>> traCi (Will be implemented soon). You can find a solution with the
>> modification of the files "src\microsim\trigger\MSChargingStation.h -
>> src\microsim\trigger\MSChargingStation.cpp", specifically the
>> functions getChargingPower(), getEfficency(), getChargeInTransit()
>> and getChargeDelay(). Currently this values are statics (Defined in the
>> private part of the class), but if you modify the code to make this values
>> dynamically with respect of the currently timeStep of the Simulation and
>> your own distribution function, your problem will be solved.
>>
>> Regards
>>
>> 2016-01-13 3:02 GMT+01:00 Ankur Sarker <[email protected]>:
>>
>>> To Whom It May Concern,
>>>
>>> I am a student and trying to simulate a situation where electric vehicles
>>> are charged by charging stations. In my simulation, I need to change the
>>> properties of charging stations during run time. I have found that the
>>> charging stations are implemented based on the bus stops in SUMO. I have
>>> read about TracI interface to change the simulation scenario dynamically.
>>> But there is nothing about changing the bus stop or charging section's
>>> properties.
>>>
>>> In this situation, can anyone give me suggestion or direction to do so? If
>>> it is necessary to change the source code to do that, I should start from
>>> where or which code block?
>>>
>>> I am looking forward to getting useful feedback.
>>>
>>> With Best Regards
>>> A. Sarker
>>>
>>> ------------------------------------------------------------------------------
>>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>>> Monitor end-to-end web transactions and take corrective actions now
>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>>
>>
>>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> 


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to