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 ) ; } }
Creates the medium settings for the specified KNX medium .