@Override public void transformState(boolean isSuc) { log.info("##transformState(isSuc=[" + isSuc + "]):"); log.info("old getCurretStateInDetailed(): " + getCurretStateInDetailed()); IEspHelpHandler handler = __getHandler(); this.mCurrentStateOrdinal = handler.getNextStateOrdinal(this.mCurrentStateOrdinal, isSuc); log.info("new getCurretStateInDetailed(): " + getCurretStateInDetailed()); }
@Override public void retry() { log.info("##retry():"); log.info("old getCurretStateInDetailed(): " + getCurretStateInDetailed()); IEspHelpHandler handler = __getHandler(); this.mCurrentStateOrdinal = handler.getRetryStateOrdinal(mCurrentStateOrdinal); log.info("new getCurretStateInDetailed(): " + getCurretStateInDetailed()); }
@Override public String getCurretStateInDetailed() { IEspHelpHandler handler = __getHandler(); if (handler != null) { return handler.getStateInDetailed(mCurrentStateOrdinal); } else { throw new IllegalStateException("can't find the handler"); } }