Int2dFiler
Name
Int2dFiler -- Saves the state of a Discrete2d object [DEPRECATED].
Description
The Int2dFiler class is used to save the state of any Discrete2d object (or a subclass thereof) to a specified file.
Use of this protocol is deprecated, the ability to write the state of a Discrete2d instance to disk (serialize) is now encoded directly to the Discrete2d class, via the lisp and HDF5 archiver features.
Methods
Phase: Using
-
fileTo: (const char *)
aFileName When the Int2dFiler receives this message, it opens a file called fileName, stores the state of a pre-specified space into it, and then closes the file.
-
setBackground: (int)
aValue This message is optional. It is used when the target Discrete2d contains objects. If a particular location in the space has no resident object, the argument of this message is the value which gets writtent to the file. The default background value is 0.
-
setValueMessage: (SEL)
aSelector This message is optional. It is used when the target Discrete2d contains objects. By sending each object the message specified by the selector, the Int2dFiler is able to get from the object an integer representing its state, which it then writes to the file.
-
setDiscrete2dToFile: (id <Discrete2d>)
sSpace Set the target space to be filled. This message can be used more than once, but often it is useful to keep one Int2dFiler per space (e.g. when the space is saved multiple times).