コード例 #1
0
ファイル: SSDManager.java プロジェクト: CarsomyrJ/SSDPlayer
 /**
  * This method simulate the normal write procedure in SSD device
  *
  * @param device - the device to write on
  * @param lp -logical page to write
  * @return the device after the write
  */
 @SuppressWarnings("unchecked")
 public D writeLP(D device, int lp, int arg) {
   D cleanDevice = (D) device.invokeCleaning();
   cleanDevice = (D) cleanDevice.invalidate(lp);
   cleanDevice = (D) cleanDevice.writeLP(lp, arg);
   return cleanDevice;
 }