Package com.scriptel.proscript.firmware
Class DeviceProductRestriction
- java.lang.Object
-
- com.scriptel.proscript.firmware.DeviceProductRestriction
-
- All Implemented Interfaces:
FirmwareRestriction
public class DeviceProductRestriction extends java.lang.Object implements FirmwareRestriction
This class is used to check if a device has the proper product id for the target firmware.
-
-
Constructor Summary
Constructors Constructor Description DeviceProductRestriction(java.util.List<FWFirmwareDevice> supported)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmeetsRestriction(Device d)This will be called by the firmware downloading functions.
-
-
-
Constructor Detail
-
DeviceProductRestriction
public DeviceProductRestriction(java.util.List<FWFirmwareDevice> supported)
-
-
Method Detail
-
meetsRestriction
public boolean meetsRestriction(Device d)
Description copied from interface:FirmwareRestrictionThis will be called by the firmware downloading functions. If the firmware does not meet the requirements for this device it should return false.- Specified by:
meetsRestrictionin interfaceFirmwareRestriction- Parameters:
d- Device to apply the restriction to.- Returns:
- True if the restriction is met (or doesn't apply), false otherwise.
-
-