Package xal.tools.data
Interface IArchive
- All Known Subinterfaces:
IAlgorithm,IProbeState
- All Known Implementing Classes:
BaseMatrix,BaseVector,BunchProbe,BunchProbeState,CovarianceMatrix,DiagnosticProbe,DiagnosticProbeState,DiagnosticTracker,ElsProbe,ElsTracker,EnergyVector,EnsembleProbe,EnsembleProbeState,EnsembleTracker,EnvelopeBacktracker,EnvelopeProbe,EnvelopeProbeState,EnvelopeTracker,EnvelopeTrackerBase,EnvelopeTrackerPmq,EnvelopeTrackerPmqDipole,EnvTrackerAdapt,FieldMapIntegrator,GenericMatrix,GenericSquareMatrix,GenericVector,ParticleProbe,ParticleProbeState,ParticleTracker,PhaseMap,PhaseMatrix,PhaseVector,Probe,ProbeState,R2x2,R3,R3x3,R4,R4x4,R6,R6x6,Rmxn,Rn,SquareMatrix,SynchronousProbe,SynchronousState,SynchronousTracker,Trace3dTracker,Tracker,TrackerAdaptive,Trajectory,TransferMapProbe,TransferMapState,TransferMapTracker,Twiss3D,TwissProbe,TwissProbeState,TwissTracker,TwissTrackerPmq
public interface IArchive
Interface for storing and restoring the state of an object via a data archive
exposing the DataAdaptor interface.
- Author:
- Christopher Allen
-
Method Summary
Modifier and TypeMethodDescriptionvoidload(DataAdaptor daSource) Recover an object's state from an archived data source.voidsave(DataAdaptor daArchive) Save the state of the object to a data adaptor for later reconstruction.
-
Method Details
-
save
Save the state of the object to a data adaptor for later reconstruction.- Parameters:
daArchive- DataAdaptor interface to a data archive
-
load
Recover an object's state from an archived data source.- Parameters:
daSource- DataAdaptor interface to a data source- Throws:
DataFormatException- data format of the adaptor is corrupt
-