org.limn.engine
Interface LimnBasisFactory

All Known Implementing Classes:
FileBasisFactory, RecordingFactory

public interface LimnBasisFactory

includes contract methods for generating new projection basis, seeding new basis to begin the process. It also provides methods for recording the basis that are generated and a finishing method for cleaning up when finished with a recording to write to and close files.


Method Summary
 void finishing()
          finishing will release resources and finish the animation process.
 void generateBasis(double[][] b, double[][] t)
          generates a new target basis t, checking that the target is compatible with the base.
 void init()
          will reseed the basis generator or reset if reading basis from a file this allows the TourEngine to seek to a specific index in a set tour (littletour or filebasistour), and allows a random tour to reset if something has gone strange.
 double[][] newBasis()
          seeds a new basis array.
 void recordBasis(java.lang.String file)
          allows the basis projections to be written out to a file, given the name.
 

Method Detail

generateBasis

public void generateBasis(double[][] b,
                          double[][] t)
generates a new target basis t, checking that the target is compatible with the base.

newBasis

public double[][] newBasis()
seeds a new basis array. this is used before the production process begins to make sure that the basis arrays are dimensioned and initialized.

init

public void init()
will reseed the basis generator or reset if reading basis from a file this allows the TourEngine to seek to a specific index in a set tour (littletour or filebasistour), and allows a random tour to reset if something has gone strange.

recordBasis

public void recordBasis(java.lang.String file)
allows the basis projections to be written out to a file, given the name.

finishing

public void finishing()
finishing will release resources and finish the animation process.