예제 #1
0
    public static RkZWaveDeviceType getByPattern(int generic, int specific) {

        for (RkZWaveDeviceType value : values()) {
            if (value.getGeneric() == generic && value.getSpecific() == specific)
                return value;
        }

        return Unknown;
    }
예제 #2
0
 public static RkLibraryDeviceType convertToLibraryFromZWave(RkZWaveDeviceType zwaveType) {
     return RkLibraryDeviceType.valueOf(getByPattern(zwaveType.getGeneric(), 0x00).name());
 }