org.lucci.madhoc.util
Class Buffer
java.lang.Object
org.lucci.madhoc.util.Buffer
- Direct Known Subclasses:
- MessageBuffer
public class Buffer
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BYTES
public static final int BYTES
- See Also:
- Constant Field Values
OBJECTS
public static final int OBJECTS
- See Also:
- Constant Field Values
Buffer
public Buffer()
getUnit
public int getUnit()
setUnit
public void setUnit(int limitationMode)
getOverload
public int getOverload()
- Returns:
- Returns the overheaded generated by one iteration
setOverload
public void setOverload(int overhead)
- Parameters:
overheaded
- The overheaded to set.
This method is called by the simulation to reinit this value to zero.
add
public void add(MemoryConsumingObject o)
throws java.io.IOException
- Throws:
java.io.IOException
add
public void add(int i,
MemoryConsumingObject o)
throws java.io.IOException
- Throws:
java.io.IOException
getSize
public int getSize(MemoryConsumingObject o)
get
public MemoryConsumingObject get(int i)
remove
public MemoryConsumingObject remove(int i)
remove
public void remove(MemoryConsumingObject o)
getMaximumSize
public int getMaximumSize()
setMaximumSize
public void setMaximumSize(int i)
getCurrentSize
public int getCurrentSize()
getAvailableSize
public int getAvailableSize()
internalList
public java.util.List internalList()