public void warn(Event event) {
		switch(event.getTypeEvent())
		{
		case GOBACKWARD_END :
			if(state == 0) {
				state++;
			}
			else if(state ==2) {
				fin = true;
			}
			else {
				ignore();
			}
			break;
		case CHILDBEHAVIOR_END :
			if(state == 1) {
				state++;
			}
			else {
				ignore();
			}
			break;
		case GOFORWARD_END :
			if(state == 2) {
				fin = true;
			}
			else {
				ignore();
			}
			break;
		default:
			ignore();
			break;
		}
	}