This demo
is extensible to add further analysis functionality. The file Abs.java
can be used as a template, but here is a list of some basic rules to follow:
com.imsl.demo.SeriesAnalysis.Lib
pacakge.
import java.util.ArrayList;
to update the List in the main class, you may want to import com.imsl.demo.SeriesAnalysis.SeriesAnalysis
,
but this is of course optional.
javax.swing.JDialog
javax.swing.JFrame
parent
. The parent here is the SeriesAnalysis object creating an instance
of this class (i.e., this).
setData
method that accepts two parameters:
ArrayList names, ArrayList dataList
. These are used to populate
the list of available params and contain all the data.
((SeriesAnalysis)parentFrame).updateList();
System.exit(0)
) with setVisible(false);
dispose();
.
Finally, it will have to be added to the main list of available functions. Add it to the file functions.xml, filling in the tags as appropriate