this.stepList = new ArrayList<Step>();
this.stateList = new ArrayList <AbstractActivityState>();
    public ActivityScheduler(final Activity activity, MainFrame frame)    {    	System.out.println("Constr ActivityScheduler ");        // TODO a suppr         this.activity = activity;        this.stepList = new ArrayList<Step>();        this.stepList = this.activity.getSteps();        this.state = State.INIT;                this.stateList = new ArrayList<AbstractActivityState>();               this.stateList.add(new PreConditionCheckerState(this, this.activity));        System.out.println("test add statelist OK ");        this.mfPagod = frame;                // pour pagod        if (this.activity.hasInputProducts())        {  	        	this.activityState = new PreConditionCheckerState (this, activity);//        	this.initComboBox();        	System.out.println("Checkbox init OK");        	this.activityState.display();        }        else        {        	this.activityState = new ActivityPresentationState(this, activity);  //      	this.initComboBox();        	System.out.println("Checkbox init OK");        	this.activityState.display();        	        }    }