public abstract class AbstractSerializer extends Object implements StateSerializer, KernelState.ChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
cached |
protected KernelState |
ks |
protected VM |
vm |
| Constructor and Description |
|---|
AbstractSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(VM vm) |
protected abstract int[] |
computeStoringData() |
int |
getCurrentStateVectorLength() |
int[] |
getStoringData()
serialize the current state and return as int[]
|
void |
kernelStateChanged(KernelState same) |
protected int[] cached
protected VM vm
protected KernelState ks
public void attach(VM vm)
attach in interface StateSerializerpublic int getCurrentStateVectorLength()
public int[] getStoringData()
StateSerializergetStoringData in interface StateSerializerpublic void kernelStateChanged(KernelState same)
kernelStateChanged in interface KernelState.ChangeListenerprotected abstract int[] computeStoringData()