locked
config file RRS feed

  • Question

  • Hello,

    How can I generated a config.xml file of my simulation?

    Thanks

    M.Alves

     

     

     

    Thursday, May 26, 2011 10:28 PM

Answers

  •  

    OK, I got it!

    I just added in my dss code:

    ///

    <summary>

     

    /// _state
     

     

    /// </summary>
     

    [

    InitialStatePartner(Optional = true, ServiceUri = "ICar.Config.xml")]

     

    private ICarState _state = new ICarState();

     

    and, in start method:

     

     

    if (_state == null

    )

    {_state =

    new ICarState();}

     

    SaveState(_state);

     

    • Marked as answer by Trevor Taylor Saturday, June 4, 2011 4:38 AM
    Tuesday, May 31, 2011 7:14 PM