001    /**
002     * Created by IntelliJ IDEA.
003     * User: Wei Wang
004     * Date: May 6, 2003
005     * Time: 3:13:14 PM
006     */
007    
008    package EVolve.util.phasedetectors;
009    
010    import java.util.Stack;
011    
012    import EVolve.util.HelperFuncs;
013    
014    public class PhaseFrame implements Cloneable{
015        public Stack undoList;
016        public Stack redoList;
017        public Stack undoParams;
018        public Stack redoParams;
019    
020        public PhaseFrame() {
021            undoList = new Stack();
022            redoList = new Stack();
023            undoParams = new Stack();
024            redoParams = new Stack();
025        }
026    
027        public Object clone() {
028            PhaseFrame o = null;
029            try {
030                o = (PhaseFrame)super.clone();
031            } catch (CloneNotSupportedException e) {
032                System.out.println(e.getStackTrace());
033                return o;
034            }
035    
036            o.undoList = HelperFuncs.cloneStack(undoList);
037            o.redoList = HelperFuncs.cloneStack(redoList);
038            o.undoParams = HelperFuncs.cloneStack(undoParams);
039            o.redoParams = HelperFuncs.cloneStack(redoParams);
040            return o;
041        }
042    }