|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjeco.dmm.sim2.lib.freelist.Block
public class Block
Block class. A block is formed by the data size and the header size. IMPORTANT: we can omit header information. It is only useful for maintaining the free-chunks sortered in every ADM. Most of this information is lost when the chunk in allocated. Since we are keeping the internal structure of ADMS by simulation, we do not have to take into account his kind of headers.
Field Summary | |
---|---|
protected FreeList |
freeList
Atomic Manager that owns this chunk. |
protected long |
position
Current position of this block. |
protected long |
sizeInB
Total size in B. |
protected double |
time
Last time this block is accessed (NEW, DELETE, READ OR WRITE). |
Constructor Summary | |
---|---|
Block(FreeList adm,
long position,
long sizeInB)
Data size in B. |
Method Summary | |
---|---|
FreeList |
getFreeList()
|
long |
getPosition()
|
long |
getSizeInB()
|
double |
getTime()
|
void |
setFreeList(FreeList freeList)
|
void |
setPosition(long position)
|
void |
setSizeInB(long sizeInB)
|
void |
setTime(double time)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double time
protected long position
protected FreeList freeList
protected long sizeInB
Constructor Detail |
---|
public Block(FreeList adm, long position, long sizeInB)
Method Detail |
---|
public double getTime()
public void setTime(double time)
public long getPosition()
public void setPosition(long position)
public FreeList getFreeList()
public void setFreeList(FreeList freeList)
public long getSizeInB()
public void setSizeInB(long sizeInB)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |