Simulator/src/model/map/ModelComponentBuilder.java
/**
	 * Create a check in area.
	 * 
	 * @param start
	 *            The starting position.
	 * @param numberOfDesks
	 *            The number of desks.
	 * @param degreeRotation
	 *            The degrees it is rotated.
	 * @return A list of SimulationObjects that form the check in area.
	 */
Create a check in area.

@param start
The starting position.
@param numberOfDesks
The number of desks.
@param degreeRotation
The degrees it is rotated.
@return A list of SimulationObjects that form the check in area.
Create a check in area . @param start The starting position . @param numberOfDesks The number of desks . @param degreeRotation The degrees it is rotated . @return A list of SimulationObjects that form the check in area .
public static List<SimulationObject> checkInArea(Position start, int numberOfDesks, double degreeRotation) {
		List<SimulationObject> components = new ArrayList<>();
		for (int i = 0; i < numberOfDesks; i++) {
			Position agentPosition = Utilities.transform(new Position(start.x + i * 2 + 0.5, start.y - 0.3), start,
					degreeRotation);
			Position deskPosition = Utilities.transform(new Position(start.x + i * 2 + 0.5, start.y + 0.35), start,
					degreeRotation);
			Desk desk = createDesk(new Position(start.x + i * 2, start.y), 1, 0.2, start, degreeRotation, deskPosition);
			components.add(desk);
			OperatorAgent agent = new OperatorAgent(agentPosition, 0.25, 80,
					new BasicOperatorCheckInActivity(desk, new NormalDistribution(60, 6)));
			components.add(agent);
		}
		double xOffsetQueue = 0;
		double yOffsetQueue = 2;
		List<SimulationObject> queueComponents = queue(new Position(start.x + xOffsetQueue, start.y + yOffsetQueue), 4,
				numberOfDesks * 2, false, start, degreeRotation);
		components.addAll(queueComponents);
		return components;
	}
public static List < SimulationObject > checkInArea ( Position start , int numberOfDesks , double degreeRotation ) { List < SimulationObject > components = new ArrayList < > ( ) ; for ( int i = 0 ; i < numberOfDesks ; i ++ ) { Position agentPosition = Utilities . transform ( new Position ( start . x + i * 2 + 0.5 , start . y - 0.3 ) , start , degreeRotation ) ; Position deskPosition = Utilities . transform ( new Position ( start . x + i * 2 + 0.5 , start . y + 0.35 ) , start , degreeRotation ) ; Desk desk = createDesk ( new Position ( start . x + i * 2 , start . y ) , 1 , 0.2 , start , degreeRotation , deskPosition ) ; components . add ( desk ) ; OperatorAgent agent = new OperatorAgent ( agentPosition , 0.25 , 80 , new BasicOperatorCheckInActivity ( desk , new NormalDistribution ( 60 , 6 ) ) ) ; components . add ( agent ) ; } double xOffsetQueue = 0 ; double yOffsetQueue = 2 ; List < SimulationObject > queueComponents = queue ( new Position ( start . x + xOffsetQueue , start . y + yOffsetQueue ) , 4 , numberOfDesks * 2 , false , start , degreeRotation ) ; components . addAll ( queueComponents ) ; return components ; }
Create a check in area.
Create a check in area .
// desks // queue // other