Class FirmwareFragment.FirmwareEntry
java.lang.Object
com.kosdev.kos.commons.util.json.fragments.FirmwareFragment.FirmwareEntry
- Enclosing class:
- FirmwareFragment
Describes a single firmware file within a
kos.firmware KAB file. This
information is encoded in the descriptor.json file so that KOS can
automatically detect all available firmware.- Since:
- 1
- Version:
- 1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe list of revisions of the board this firmware is compatible with.The type of board this firmware is compatible with.Path to the firmware file within the KAB file.The type of firmware.The version of the firmware.inthashCode()voidsetBoardRevisions(List<String> boardRevisions) The list of revisions of the board this firmware is compatible with.voidsetBoardType(String boardType) The type of board this firmware is compatible with.voidsetFilePath(String filePath) Path to the firmware file within the KAB file.voidsetFirmwareType(String firmwareType) The type of firmware.voidsetVersion(String version) The version of the firmware.toString()
-
Constructor Details
-
FirmwareEntry
public FirmwareEntry()
-
-
Method Details
-
getBoardType
The type of board this firmware is compatible with. This corresponds to the value ofBoard.getType().- Since:
- 1
-
getBoardRevisions
The list of revisions of the board this firmware is compatible with. This is only used if the firmware updater for the board specifies a board revision, otherwise it will be ignored.- Since:
- 1
-
getFirmwareType
The type of firmware. Types are user defined and must be coordinated with the corresponding firmware updater for the board. This handles the case where a single board may have more than one firmware image installed, such as a bootloader and an application.- Since:
- 1
-
getVersion
The version of the firmware. KOS currently expects this to be inmajor.minor.patch.buildformat. The default internal comparator ofFirmwareServicewill sort according to this format.- Since:
- 1
-
getFilePath
Path to the firmware file within the KAB file.- Since:
- 1
-
setBoardType
The type of board this firmware is compatible with. This corresponds to the value ofBoard.getType().- Since:
- 1
-
setBoardRevisions
The list of revisions of the board this firmware is compatible with. This is only used if the firmware updater for the board specifies a board revision, otherwise it will be ignored.- Since:
- 1
-
setFirmwareType
The type of firmware. Types are user defined and must be coordinated with the corresponding firmware updater for the board. This handles the case where a single board may have more than one firmware image installed, such as a bootloader and an application.- Since:
- 1
-
setVersion
The version of the firmware. KOS currently expects this to be inmajor.minor.patch.buildformat. The default internal comparator ofFirmwareServicewill sort according to this format.- Since:
- 1
-
setFilePath
Path to the firmware file within the KAB file.- Since:
- 1
-
equals
-
hashCode
public int hashCode() -
toString
-