|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.DefaultJHeap
public class DefaultJHeap
The DefaultJHeap class is the default implementation of the JHeap interface. This is the Corosol memory heap where the application object are allocated. In this heap :
JReferenceManager| Constructor Summary | |
|---|---|
DefaultJHeap()
Creates a new DefaultJHeap object. |
|
DefaultJHeap(int size)
Creates a new DefaultJHeap with the specified number of bytes. |
|
| Method Summary | |
|---|---|
void |
configure(JVirtualMachine jvm)
Configures the heap via the specified JVM. |
java.lang.Class |
getComponentClass()
Returns the class object describing this component. |
JReferenceManager |
getReferenceManager()
Returns the reference manager that collaborates with this heap. |
boolean |
readBoolean(int index)
Reads a boolean value starting at the specified position in this heap. |
byte |
readByte(int index)
Reads one byte at the specified position in this memory. |
char |
readChar(int index)
Reads a char value starting at the specified position in this heap. |
double |
readDouble(int index)
Reads a double value starting at the specified position in this heap. |
float |
readFloat(int index)
Reads a float value starting at the specified position in this heap. |
int |
readInt(int index)
Reads an int value starting at the specified position in this heap. |
long |
readLong(int index)
Reads a long value starting at the specified position in this heap. |
JHeapObject |
readReference(int index)
Reads a reference value starting at the specified position in this heap and returns the object it referents to. |
short |
readShort(int index)
Reads a short value starting at the specified position in this heap. |
void |
replace(JVMComponent component)
Replaces the data of this heap by the data of the specified component. |
int |
size()
Returns the number of bytes composing this heap. |
int |
sizeof(JClass type)
Returns the number of bytes necessary to represent the specified type. |
java.lang.String |
toString()
Returns a string representation of the heap. |
void |
writeBoolean(int index,
boolean value)
Writes the specified boolean value at the specified position in this memory. |
void |
writeByte(int index,
byte value)
Writes the specified byte value at the specified position in this memory. |
void |
writeChar(int index,
char value)
Writes the specified char value at the specified position in this memory. |
void |
writeDouble(int index,
double value)
Writes the specified double at the specified position in this heap. |
void |
writeFloat(int index,
float value)
Writes the specified float at the specified position in this heap. |
void |
writeInt(int index,
int value)
Writes the specified int value at the specified position in this heap. |
void |
writeLong(int index,
long value)
Writes the specified long at the specified position in this heap. |
void |
writeReference(int index,
JHeapObject object)
Writes the reference of the specified object at the specified position in this heap. |
void |
writeShort(int index,
short value)
Writes the specified short value at the specified position in this memory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJHeap()
public DefaultJHeap(int size)
size - the number of bytes of the memory heap| Method Detail |
|---|
public java.lang.Class getComponentClass()
getComponentClass in interface JVMComponentpublic void configure(JVirtualMachine jvm)
configure in interface JVMComponentjvm - the Java Virtual Machinepublic void replace(JVMComponent component)
replace in interface JVMComponentcomponent - a component to be used to initialize this heappublic byte readByte(int index)
readByte in interface JMemoryindex - index at which the byte is to be read
public boolean readBoolean(int index)
readBoolean in interface JMemoryindex - index at which the boolean value is to be read
public short readShort(int index)
readShort in interface JMemoryindex - index at which the short value is to be read
public char readChar(int index)
readChar in interface JMemoryindex - index at which the char value is to be read
public int readInt(int index)
readInt in interface JMemoryindex - index at which the int value is to be read
public float readFloat(int index)
readFloat in interface JMemoryindex - index at which the float value is to be read
public long readLong(int index)
readLong in interface JMemoryindex - index at which the long value is to be read
public double readDouble(int index)
readDouble in interface JMemoryindex - index at which the double value is to be read
public JHeapObject readReference(int index)
readReference in interface JMemoryindex - index at which the reference value is to be read
public void writeByte(int index,
byte value)
writeByte in interface JMemoryindex - index at which the byte value is to be writedvalue - the byte value to be writed in this memory
public void writeBoolean(int index,
boolean value)
writeBoolean in interface JMemoryindex - index at which the boolean value is to be writedvalue - the boolean value to be writed in this memory
public void writeChar(int index,
char value)
writeChar in interface JMemoryindex - index at which the char value is to be writedvalue - the char value to be writed in this memory
public void writeShort(int index,
short value)
writeShort in interface JMemoryindex - index at which the short value is to be writedvalue - the short value to be writed in this memory
public void writeInt(int index,
int value)
writeInt in interface JMemoryindex - index at which the int value is to be writedvalue - the int value to be writed in this memory
public void writeFloat(int index,
float value)
writeFloat in interface JMemoryindex - index at which the float value is to be writedvalue - the float value to be writed in this memory
public void writeLong(int index,
long value)
writeLong in interface JMemoryindex - index at which the long value is to be writedvalue - the long value to be writed in this memory
public void writeDouble(int index,
double value)
writeDouble in interface JMemoryindex - index at which the double value is to be writedvalue - the double value to be writed in this memory
public void writeReference(int index,
JHeapObject object)
writeReference in interface JMemoryindex - index at which the reference value is to be writedobject - the object which reference is to be writed in this heappublic int size()
size in interface JMemorypublic int sizeof(JClass type)
sizeof in interface JMemorytype - a class representing a Java type
public JReferenceManager getReferenceManager()
getReferenceManager in interface JHeappublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||