code: public static KNXMediumSettings create(final int medium, final IndividualAddress device)
  	{
  		switch (medium) {
  		case MEDIUM_TP1:
  			return new TPSettings(device);
  		case MEDIUM_PL110:
  			return new PLSettings(device, null);
  		case MEDIUM_RF:
  			return new RFSettings(device);
  		case MEDIUM_KNXIP:
  			return new KnxIPSettings(device);
  		default:
  			throw new KNXIllegalArgumentException("unknown medium type " + medium);
  		}
  	}
docs: Creates the medium settings for the specified KNX medium.
  
  @param medium the KNX medium type code, see definitions in {@link KNXMediumSettings}
  @param device individual address to use as source address in KNX messages
  @return the initialized medium-specific settings
  @throws KNXIllegalArgumentException on unknown medium code