Simulator/src/model/agent/humanAgent/aatom/tacticalLevel/navigation/NavigationModule.java
/**
	 * Update the goals based on the place that the agent is currently located.
	 * 
	 * @param timeStep
	 *            The time step.
	 */
Update the goals based on the place that the agent is currently located.

@param timeStep
The time step.
Update the goals based on the place that the agent is currently located . @param timeStep The time step .
protected void updateReachedGoals(int timeStep) {
		goalRefreshTime += timeStep / 1000.0;
		if (reachedGoal(0))
			removeGoals(1);
		else if (reachedGoal(1)) {
			if (activityModule.getActiveActivity() == null)
				removeGoals(2);
		}
		else if (activityModule.getActiveActivity() == null && !inQueuingArea()) {
			if (goalRefreshTime > 5) {
				goalRefreshTime = 0;
				if (!isCollision(3))
					removeGoals(3);
				else if (!isCollision(2))
					removeGoals(2);
			}
		}
	}
protected void updateReachedGoals ( int timeStep ) { goalRefreshTime += timeStep / 1000.0 ; if ( reachedGoal ( 0 ) ) removeGoals ( 1 ) ; else if ( reachedGoal ( 1 ) ) { if ( activityModule . getActiveActivity ( ) == null ) removeGoals ( 2 ) ; } else if ( activityModule . getActiveActivity ( ) == null && ! inQueuingArea ( ) ) { if ( goalRefreshTime > 5 ) { goalRefreshTime = 0 ; if ( ! isCollision ( 3 ) ) removeGoals ( 3 ) ; else if ( ! isCollision ( 2 ) ) removeGoals ( 2 ) ; } } }
Update the goals based on the place that the agent is currently located.
Update the goals based on the place that the agent is currently located .
// update goal refresh time. // check if we reached original goal. // check if we reached next goal. // check if we are already on our way to the next goals