gov.sns.xal.model
Interface IArchive

All Known Implementing Classes:
PhaseMap, PhaseMatrix, PhaseVector, Probe, ProbeState, Tracker, Trajectory

public interface IArchive

Interface for storing and restoring the state of an object via a data archive exposing the DataAdaptor interface.


Method Summary
 void load(DataAdaptor daptArchive)
          Recover an object's state from an archived data source.
 void save(DataAdaptor daptArchive)
          Save the state of the object to a data adaptor for later reconstruction.
 

Method Detail

save

public void save(DataAdaptor daptArchive)
Save the state of the object to a data adaptor for later reconstruction.

Parameters:
daptArchive - DataAdaptor interface to an archive

load

public void load(DataAdaptor daptArchive)
          throws DataFormatException
Recover an object's state from an archived data source.

Parameters:
daptArchive - DataAdaptor interface to an archive
Throws:
DataFormatException - data format of the adaptor is corrupt