/* Java IO system project * This is a very high level abstraction for the IO operations, without scheduling, Interrupt Handling, DMA, Caching, spooling, locking, protection, streams, * and many more functions can be added later on * The project Define Buffers for the various peripherals using * Java Memory Mapped files for faster IO operations * Developed by Manal Helal for COM1032 Operating Systems Spring 2020 - Surrey University */ import java.util.ArrayList; public interface IOSystem { ArrayList peripherals = new ArrayList(); public int addDevice (String deviceName, String BufferFileName); public int write(String deviceName, int position, Byte[] bytesBuffer); public Byte[] read(String deviceName, int position, int size); public int removeDevice(String deviceName); }