returns the reward the field in which the agent currently is yields concode_field_sep int xPosition concode_elem_sep int actionsCounter concode_elem_sep int initXPos concode_elem_sep double pNoStep concode_elem_sep int height concode_elem_sep int waittime concode_elem_sep double posReward concode_elem_sep Action[][] policies concode_elem_sep double pSidestep concode_elem_sep Random rand concode_elem_sep DrawFrame frame concode_elem_sep double negReward concode_elem_sep int yPosition concode_elem_sep int initYPos concode_elem_sep double noReward concode_elem_sep int width concode_elem_sep boolean deterministic concode_elem_sep double pBackstep concode_elem_sep double pPerform concode_elem_sep boolean showProgress concode_elem_sep Field[][] landscape concode_elem_sep boolean terminated concode_field_sep void setDeterministic concode_elem_sep void setField concode_elem_sep void pDrawMDP concode_elem_sep void setWaittime concode_elem_sep void setShowProgress concode_elem_sep boolean isTerminated concode_elem_sep void setInitialState concode_elem_sep void setNegReward concode_elem_sep void setNoReward concode_elem_sep int getWidth concode_elem_sep void drawMDP concode_elem_sep boolean isDeterministic concode_elem_sep int getHeight concode_elem_sep int getStateXPosition concode_elem_sep void setPosReward concode_elem_sep void defaultSettings concode_elem_sep void moveUp concode_elem_sep void restart concode_elem_sep double performAction concode_elem_sep Field getField concode_elem_sep void setProbsStep concode_elem_sep void moveDown concode_elem_sep Action getPolicy concode_elem_sep int getStateYPostion concode_elem_sep void moveRight concode_elem_sep void setState concode_elem_sep void setPolicies concode_elem_sep void moveLeft concode_elem_sep int getActionsCounter concode_elem_sep void doAction concode_elem_sep void setStochastic
double function ( ) { switch ( landscape [ xPosition ] [ yPosition ] ) { case EMPTY : return noReward ; case REWARD : terminated = true ; return posReward ; case NEGREWARD : terminated = true ; return negReward ; } System . err . println ( "srini_string" ) ; return 0 ; }