SaveState

classes
   fread          restore        writehoc       
   fwrite         save           
The state includes the voltage for all segments of all sections and all the STATEs defined in all the membrane and point process mechanisms. With regard to model descriptions, it does not include PARAMETERs, ASSIGNED variables or and values for ions such as cai or ena. This can be an expensive object in terms of memory storage. This class is not yet well tested.


save

SaveState

SYNTAX

.save()

DESCRIPTION

voltage and state values are stored in the object.


restore

SaveState

SYNTAX

.restore()

DESCRIPTION

voltage and state values are put back in the sections. Between a save and a restore, it is important not to create or delete sections, change the number of segments, insert or delete mechanisms, or change the location or number of point processes. Before restoring states, the object checks for consistency between its own data structure and the section structures.


fread

SaveState

SYNTAX

.fread(File)

DESCRIPTION

Reads binary state data from a File object into the SaveState object. (See File in ivochelp). This does not change the state of the sections. (That is done with .restore()). This function opens and closes the file defined by the File object.

Warning: file format depends on what mechanisms are available in the executable and the order that sections are created (and mechanisms inserted) by the user.


fwrite

SaveState

SYNTAX

.fwrite(File)

DESCRIPTION

Opens the file defined by the File object, writes saved binary state data to the beginning of the file and then closes the file.


writehoc

SaveState

SYNTAX

.writehoc(File)

DESCRIPTION

Writes saved state data as sequence of hoc statements that can be read with xopen(...). Not implemented at this time.


neuron/neuron/classes/savstate.hel : Dec 19 1996