public ComponentState getState(){
		CTaskState state = cTaskContext.getTaskState();
		if(state.equals(CTaskState.CInit))
			return ComponentState.INIT;
		else if(state.equals(CTaskState.CPreOperational))
			return ComponentState.PRE_OPERATIONAL;
		else if(state.equals(CTaskState.CFatalError))
			return ComponentState.FATAL_ERROR;
		else if(state.equals(CTaskState.CException))
			return ComponentState.EXCEPTION;
		else if(state.equals(CTaskState.CStopped))
			return ComponentState.STOPPED;
		else if(state.equals(CTaskState.CRunning))
			return ComponentState.RUNNING;
		else if(state.equals(CTaskState.CRunTimeError))
			return ComponentState.RUNTIME_ERROR;
		else
			return null;
	}