floppydriveparameters.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 111 行
JAVA
111 行
/*
* $Id: FloppyDriveParameters.java,v 1.1 2003/11/25 11:50:45 epr Exp $
*/
package org.jnode.driver.floppy;
/**
* @author epr
*/
public class FloppyDriveParameters {
private final int cmosType;
private final int mtr;
private final int hlt;
private final int hut;
private final int srt;
private final String name;
private final FloppyParameters[] autodetect;
/**
* Create a new instance
* @param cmosType
* @param mtr
* @param hlt
* @param hut
* @param srt
* @param name
* @param autodetect
*/
public FloppyDriveParameters(
int cmosType,
int mtr,
int hlt,
int hut,
int srt,
String name,
FloppyParameters[] autodetect) {
this.cmosType = cmosType;
this.mtr = mtr;
this.hlt = hlt;
this.hut = hut;
this.srt = srt;
this.autodetect = autodetect;
this.name = name;
}
/**
* Is this drive present?
* @return boolean
*/
public boolean isPresent() {
return (cmosType != 0);
}
/**
* Gets a human readable type name for this drive
* @return name
*/
public String getTypeName() {
return name;
}
/**
* Gets the head load time fom this drive in msec
* @return head load time
*/
public int getHeadLoadTime() {
return hlt;
}
/**
* Gets the head unload time fom this drive in msec
* @return head unload time
*/
public int getHeadUnloadTime() {
return hut;
}
/**
* Gets the step rate time fom this drive in usec
* @return step rate time
*/
public int getStepRateTime() {
return srt;
}
/**
* Gets the maximum transfer rate for this drive in Kb/sec
* @return int
*/
public int getMaxTransferRate() {
return mtr;
}
/**
* Gets the CMOS type of this drive
* @return int
*/
public int getCmosType() {
return cmosType;
}
/**
* Gets the formats that can be autodetected on this drive
* @return parameters
*/
public FloppyParameters[] getAutodetectFormats() {
return autodetect;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?