#ifndef SETUP_INITIAL_CONDITIONS_INTENTION_H
#define SETUP_INITIAL_CONDITIONS_INTENTION_H

#ifndef INTENTION_FRAME_H
#include "Intention_frame.h"
#endif

#include "Duration_unit.h"
#include "Protocol_stage.h"

namespace MM
{

class Setup_initial_conditions_intention : public Intention_frame
{
public:        
   explicit         Setup_initial_conditions_intention (Protocol_stage & stage)
        : Intention_frame ("Initial conditions", stage) {;}

    bool    check()
    {
        //Duration_unit unit;     unit.from_text (stage_.option ("Length"));
        //if (unit.steps() != 0)
        //{
        //    Text text ("Should not be simulation steps "
        //               "during setup of initial conditions,\n"
        //               "but simulator have ");
        //    text += unit.steps();
        //    text += " steps.";
        //    set_message (text);
        //    return false;
        //}

        //fix

        set_message ("");
        return true;
    }

    void    apply ()
    {
        //stage_.set_option ("Length", "0 steps");
    }

    bool    was_reached ()  {return true;}
};

}//MM

#endif //SETUP_INITIAL_CONDITIONS_INTENTION_H
