Package org.applecommander.device
package org.applecommander.device
Contains most of the device interfaces and implementation.
Some creational patterns for TrackSectorDevice:
-
140K DOS-ordered sectors:
Source source = DataBufferSource.create(DiskConstants.APPLE_140KB_DISK, "filename.do").get(); TrackSectorDevice device = new DosOrderedTrackSectorDevice(source); -
140K ProDOS-ordered sectors:
Source source = DataBufferSource.create(DiskConstants.APPLE_140KB_DISK, "filename.po").get(); TrackSectorDevice device = new BlockToTrackSectorAdapter(new ProdosOrderedBlockDevice(source, BlockDevice.STANDARD_BLOCK_SIZE), new ProdosBlockToTrackSectorAdapterStrategy()); -
140K Nibble-ordered sectors:
Source source = DataBufferSource.create(DiskConstants.APPLE_140KB_NIBBLE_DISK, "filename.nib").get(); TrackSectorDevice device = SkewedTrackSectorDevice.physicalToDosSkew( TrackSectorNibbleDevice.create(new NibbleImage(source), 16));
-
ClassDescriptionRepresents block devices in the Apple II world.Adapts a
BlockDeviceto aTrackSectorDevice.A simplistic set of Coordinates.Represents a (potentially) ProDOS, RDOS, CP/M, Pascal, or other block coordinate.Represents a DOS track and sector coordinate.Represents a full track coordinate.This is a marker interface for both the BlockDevice and TrackSectorDevice and should not be implemented directly.This is an overlay on a TrackSectorDevice to give the proper sector skew to the device.ATrackSectorDeviceis any type of device that supports track and sector geometry.Provides a "low-level" scan of a nibble device.Provides a _very simple_ mapping from Track/Sectors to blocks.The AdapterStrategy abstracts the differing components of a device that is expected to be composed of tracks and sectors but sits on a block device instead.