code: public static int getMedium(final String mediumName)
  	{
  		if ("tp1".equalsIgnoreCase(mediumName))
  			return MEDIUM_TP1;
  		else if ("p110".equalsIgnoreCase(mediumName) || "pl110".equalsIgnoreCase(mediumName))
  			return MEDIUM_PL110;
  		else if ("rf".equalsIgnoreCase(mediumName))
  			return MEDIUM_RF;
  		else if ("knxip".equalsIgnoreCase(mediumName) || "knx ip".equalsIgnoreCase(mediumName))
  			return MEDIUM_KNXIP;
  		else
  			throw new KNXIllegalArgumentException("unknown medium type " + mediumName);
  	}
docs: Returns the KNX medium type code for the specified medium type name.
  <p>
  Allowed type names are, case is ignored:
  <ul>
  <li>TP1</li>
  <li>PL110, P110</li>
  <li>RF</li>
  <li>KNXIP, KNX IP</li>
  </ul>
  
  @param mediumName the textual representation of a medium type as returned by
  {@link #getMediumString()}, case-insensitive
  @return the KNX medium type code
  @throws KNXIllegalArgumentException on unknown medium code