src/model/agent/Agent.java
private Action think() {
        log.fine("Requesting random route");
        route = context.getRandomRoute();

        if (route != null) {
            log.fine("Got route, moving");
            setState(AgentState.MOVING);
        }

        return Action.WAIT;
    }
/**
     * - Request new route;
     * - Check if route is ready;
     * - When it is, switch to moving.
     */
- Request new route;
- Check if route is ready;
- When it is, switch to moving.
- Request new route ; - Check if route is ready ; - When it is switch to moving .
private Action think() {
        log.fine("Requesting random route");
        route = context.getRandomRoute();
        if (route != null) {
            log.fine("Got route, moving");
            setState(AgentState.MOVING);
        }
        return Action.WAIT;
    }
private Action think ( ) { log . fine ( "Requesting random route" ) ; route = context . getRandomRoute ( ) ; if ( route != null ) { log . fine ( "Got route, moving" ) ; setState ( AgentState . MOVING ) ; } return Action . WAIT ; }
- Request new route;
 - Check if route is ready;
 - When it is, switch to moving.
- Request new route ; - Check if route is ready ; - When it is switch to moving .