org.limn.engine
Class FileBasisFactory

java.lang.Object
  |
  +--org.limn.engine.FileBasisFactory
All Implemented Interfaces:
LimnBasisFactory

public class FileBasisFactory
extends java.lang.Object
implements LimnBasisFactory

FileBasisFactory reads projection basis from a text file and cycles through the projects returning the active one each time that the generateBasis method is called. This factory could be used when external programs are used to generate the projection basis. For example projection pursuit or other 'intelligent' means of generating basis can be implemented in other programming languages and then the output of these programs can be used by this factory.


Constructor Summary
FileBasisFactory(LimnData name)
           
 
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 s)
          allows the basis projections to be written out to a file, given the name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBasisFactory

public FileBasisFactory(LimnData name)
Method Detail

init

public void init()
Description copied from interface: LimnBasisFactory
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.
Specified by:
init in interface LimnBasisFactory

generateBasis

public void generateBasis(double[][] b,
                          double[][] t)
Description copied from interface: LimnBasisFactory
generates a new target basis t, checking that the target is compatible with the base.
Specified by:
generateBasis in interface LimnBasisFactory

newBasis

public double[][] newBasis()
Description copied from interface: LimnBasisFactory
seeds a new basis array. this is used before the production process begins to make sure that the basis arrays are dimensioned and initialized.
Specified by:
newBasis in interface LimnBasisFactory

recordBasis

public void recordBasis(java.lang.String s)
Description copied from interface: LimnBasisFactory
allows the basis projections to be written out to a file, given the name.
Specified by:
recordBasis in interface LimnBasisFactory

finishing

public void finishing()
Description copied from interface: LimnBasisFactory
finishing will release resources and finish the animation process.
Specified by:
finishing in interface LimnBasisFactory