protected Action getActionForStep(int step) { EWaypointType waypoint; if (step <= 0) { waypoint = SetTradingWaypointAction.EWaypointType.WAYPOINT_1; } else if (step <= 1) { waypoint = SetTradingWaypointAction.EWaypointType.WAYPOINT_2; } else if (step <= 2) { waypoint = SetTradingWaypointAction.EWaypointType.WAYPOINT_3; } else { waypoint = SetTradingWaypointAction.EWaypointType.DESTINATION; } return new AskSetTradingWaypointAction(waypoint); } }