|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmce.sim.cpm.CpmFile
public class CpmFile
CP/M file rappresentation.
The file is very simple only hold the user number, the file name and 2 array one with the allocated data block number and one with the allocated FCB number.
This class rappresent a CP/M file.
Constructor Summary | |
---|---|
CpmFile(int user,
java.lang.String name)
Constructor for new file. |
Method Summary | |
---|---|
void |
addBlock(int block)
Add a new data block to the file. |
void |
addFCB(int fcb)
Add a new FCB to the file. |
boolean |
getAttributeArchive()
Get the archive attribute. |
boolean |
getAttributeFifo()
Return the fifo attribute. |
boolean |
getAttributeGlobal()
Return the global attribute. |
boolean |
getAttributeReadOnly()
Return the read only attribute. |
int |
getBlockAt(int i)
Return the specified data block number |
int |
getBlockCount()
Return the number of allocated data block |
int |
getFCBAt(int i)
Return the specified FCB number. |
int |
getFCBCount()
Return the number of allocated FCBs |
java.lang.String |
getName()
Return the file name |
int |
getUser()
Return the CP/M user number 0 .. 15 |
void |
setAttributeArchive(boolean mode)
Set the archive attribute. |
void |
setAttributeFifo(boolean mode)
Set the fifo attribute. |
void |
setAttributeGlobal(boolean mode)
Set the global attribute. |
void |
setAttributeReadOnly(boolean mode)
Set the read only attribute. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CpmFile(int user, java.lang.String name)
user
- - User numbername
- - File nameMethod Detail |
---|
public void addBlock(int block)
block
- - Block numberpublic java.lang.String getName()
public int getBlockCount()
public int getBlockAt(int i)
public void addFCB(int fcb)
public int getFCBCount()
public int getFCBAt(int i)
public int getUser()
public void setAttributeFifo(boolean mode)
public boolean getAttributeFifo()
public void setAttributeReadOnly(boolean mode)
public boolean getAttributeReadOnly()
public void setAttributeGlobal(boolean mode)
public boolean getAttributeGlobal()
public void setAttributeArchive(boolean mode)
public boolean getAttributeArchive()
public java.lang.String toString()
toString
in class java.lang.Object
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |