Interface StorageCardSelectionExtension
- All Superinterfaces:
- org.eclipse.keypop.reader.selection.spi.CardSelectionExtension
public interface StorageCardSelectionExtension
extends org.eclipse.keypop.reader.selection.spi.CardSelectionExtension
Extends the 
CardSelectionExtension interface of the "Keypop Reader API" to provide means
 to define optional commands to be executed during the selection phase.- Since:
- 1.0.0
- 
Method SummaryModifier and TypeMethodDescriptionprepareReadBlock(int blockAddress) Prepares the reading of a specific block from the storage card.prepareReadBlocks(int fromBlockAddress, int toBlockAddress) Prepares the reading of a range of blocks from the storage card.
- 
Method Details- 
prepareReadBlockPrepares the reading of a specific block from the storage card.Block addresses start at 0 and the maximum value is equal to ProductType.getBlockCount()- 1.Once this command is processed, the result is available in StorageCard.- Parameters:
- blockAddress- The address of the block to be read.
- Returns:
- The current instance.
- Throws:
- IllegalArgumentException- If the block address is out of range.
- Since:
- 1.0.0
- See Also:
 
- 
prepareReadBlocksPrepares the reading of a range of blocks from the storage card.Block addresses start at 0 and the maximum value is equal to ProductType.getBlockCount()- 1.Once this command is processed, the result is available in StorageCardviaStorageCard.getBlock(int)andStorageCard.getBlocks(int, int)methods.- Parameters:
- fromBlockAddress- The starting block address (inclusive).
- toBlockAddress- The ending block address (inclusive).
- Returns:
- The current instance.
- Throws:
- IllegalArgumentException- If one of the arguments is out of range.
- Since:
- 1.0.0
- See Also:
 
 
-