Simulator/test/model/agent/humanAgent/aatom/operationalLevel/action/movement/impl/RandomMovementModuleTest.java
/**
	 * Generates a base agent with a static movement model.
	 * 
	 * @return The agent.
	 */
Generates a base agent with a static movement model.

@return The agent.
Generates a base agent with a static movement model . @return The agent .
public AatomHumanAgent generateBaseAgent() {
		PlanningModule planner = new PlanningModule() {
			@Override
			public void update(int timeStep) {
			}
			@Override
			public Activity getNextActivity() {
				return null;
			}
		};
		GoalModule goal = new GoalModule(new ArrayList<Goal>()) {
		};
		BeliefModule belief = new BeliefModule();
		StrategicModel strategy = new StrategicModel(planner, goal, belief) {
			@Override
			public boolean wantsToBeDestroyed() {
				return false;
			}
		};
		ActivityModule activity = new ActivityModule();
		ArrayList<Position> goals = new ArrayList<>();
		new Position(1, 1);
		NavigationModule navigation = new NavigationModule(goals);
		TacticalModel tactical = new TacticalModel(activity, navigation) {
		};
		MovementModule movement = new RandomMovementModule(1, new RandomPlus(1));
		ObservationModule observation = new ObservationModule() {
			@Override
			public <T> Collection<T> getObservation(Class<T> type) {
				return null;
			}
		};
		CommunicationModule communication = new CommunicationModule() {
			@Override
			public void communicate(CommunicationType type, Object communication) {
			}
		};
		OperationalModel operational = new OperationalModel(movement, observation, communication) {
		};
		return new AatomHumanAgent(new Position(5, 5), 0.2, 80, strategy, tactical, operational) {
		};
	}
public AatomHumanAgent generateBaseAgent ( ) { PlanningModule planner = new PlanningModule ( ) { @ Override public void update ( int timeStep ) { } @ Override public Activity getNextActivity ( ) { return null ; } } ; GoalModule goal = new GoalModule ( new ArrayList < Goal > ( ) ) { } ; BeliefModule belief = new BeliefModule ( ) ; StrategicModel strategy = new StrategicModel ( planner , goal , belief ) { @ Override public boolean wantsToBeDestroyed ( ) { return false ; } } ; ActivityModule activity = new ActivityModule ( ) ; ArrayList < Position > goals = new ArrayList < > ( ) ; new Position ( 1 , 1 ) ; NavigationModule navigation = new NavigationModule ( goals ) ; TacticalModel tactical = new TacticalModel ( activity , navigation ) { } ; MovementModule movement = new RandomMovementModule ( 1 , new RandomPlus ( 1 ) ) ; ObservationModule observation = new ObservationModule ( ) { @ Override public < T > Collection < T > getObservation ( Class < T > type ) { return null ; } } ; CommunicationModule communication = new CommunicationModule ( ) { @ Override public void communicate ( CommunicationType type , Object communication ) { } } ; OperationalModel operational = new OperationalModel ( movement , observation , communication ) { } ; return new AatomHumanAgent ( new Position ( 5 , 5 ) , 0.2 , 80 , strategy , tactical , operational ) { } ; }
Generates a base agent with a static movement model.
Generates a base agent with a static movement model .