Ajith Ranabahu wrote:
Hi Alek,all,
java serialization supports any graphs including cycles
Ah, My fault. I should have investigated the java serialization mechanism more. It indeed allows circular references.
So in a sense this solves most of our problems!
actually you need to be very careful as java serialization tends to serialize more than you need - if you have any references to actual implementation classes it may try to serialize whole engine state ...
if it is hierarchical why not make it so there is XML serialization - it would be much more robust and able to survive internal changes in Java classes if there is well defined format for XML describing *context state.
Yep, if we stick to the oneway hierarchy we can have an XML serialization as well.
just generating XML is easy but specify what XML should be used to describe context state is more useful as it could allow for long term checkpointing of engine state.
alek
-- The best way to predict the future is to invent it - Alan Kay
