return cache.get(this);
}
private byte[] getDynamicPartPerception(int protocolVersion) throws IOException {
ByteArrayOutputStream array = new ByteArrayOutputStream();
OutputSerializer serializer = new OutputSerializer(array);
serializer.setProtocolVersion(protocolVersion);
serializer.write(timestampPerception);
if (myRPObjectModifiedAdded == null) {
serializer.write((byte) 0);
} else {
serializer.write((byte) 1);
myRPObjectModifiedAdded.writeObject(serializer, DetailLevel.PRIVATE);
}
if (myRPObjectModifiedDeleted == null) {
serializer.write((byte) 0);
} else {
serializer.write((byte) 1);
myRPObjectModifiedDeleted.writeObject(serializer, DetailLevel.PRIVATE);
}
return array.toByteArray();
}