@Override
	public void receiveData(Request req) {

		if (req.getCommand().equals(Constants.GANTRY_ROBOT_GET_BIN_COMMAND)) {
			tempBin = (BinData) req.getData();
			for (int i = 0; i < binList.size(); i++) {
				if (binList.get(i).getPartType().equals(tempBin.getBinPartType())) {
					heldBin = binList.get(i);
					isBinHeld = true;
				}
			}
			tempBin = null;
		} else if (req.getCommand().equals(Constants.GANTRY_ROBOT_MOVE_TO_LOC_COMMAND)) {
			// System.out.println("Received moved to loc command");
			destinationLocation = (Location) req.getData();
			isMoving = true;
		} else if (req.getCommand().equals(Constants.GANTRY_ROBOT_DROP_BIN_COMMAND)) {
			heldBin = null;
			isBinHeld = false;
		} else if (req.getCommand().equals(Constants.GANTRY_ROBOT_ADD_NEW_BIN)) {
			tempBin = (BinData) req.getData();
			System.out.println("new bin: " + tempBin.getBinPartType());
			binList.add(new BinGraphicsDisplay(new Location(tempBin.getBinLocation()), tempBin.getBinPartType()));
			// tempBin = null;
		} else if (req.getCommand().equals(Constants.GANTRY_ROBOT_EDIT_BIN)) {
			for (int i = 0; i < binList.size(); i++) {
				tempBin = (BinData) req.getData();
				if (binList.get(i).getPartType().equals(tempBin.getBinPartType())) {
					binList.get(i).setPartType(tempBin.getBinPartType());
				}
			}
		}
	}