import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.applet.*; import java.awt.geom.*; import java.math.*; import java.util.Arrays; /**This file generates some of the pre-stored data that we use.**/ public class GenerateData implements Runnable { int halt; Manager M; public GenerateData() {} public GenerateData(Manager MM) { this.M=MM; } public void run() { int mode=M.C.CON_D.ACTION.mode; if(mode==0) pinwheel(); if(mode==1) edgeList(); if(mode==2) phiCover(); if(mode==3) returnPositive(); if(mode==4) printHeightsA(); if(mode==5) printHeightsB(); if(mode==6) printSequence(); if(mode==7) printPolys(); if(mode==8) printAPolys(); if(mode==9) printBPolys(); } /**LaTeX printout of the partition polyhedra**/ public void printPolys() { for(int i=0;i<64;++i) { GoldenPolyhedron P=DataPartition.getGoldenPolyhedron(i); Integer I=new Integer(i); String S="P"+I.toString(); P.texPrint(S); } } /**LaTeX printout of the A renorm polyhedra**/ public void printAPolys() { for(int q=0;q<9;++q) { int[] L=ProofSupport.lookup(q); for(int br=0;br<4;++br) { GoldenPolyhedron P=DataRenorm.getGoldenA(L[0],L[1],br); Integer I1=new Integer(L[0]+1); Integer I2=new Integer(L[1]+1); Integer I3=new Integer(br+1); String S="A"+I1.toString()+I2.toString()+I3.toString(); P.texPrint(S); } } } /**LaTeX printout of the B renorm polyhedra**/ public void printBPolys() { for(int LB=0;LB<3;++LB) { for(int br=0;br<4;++br) { GoldenPolyhedron P=DataRenorm.getGoldenB(LB,br); Integer I1=new Integer(LB+1); Integer I2=new Integer(br+1); String S="B"+I1.toString()+I2.toString(); P.texPrint(S); } } } /**This generates and sorts the list of 2nd coordinates of the A and B atoms. In the A case we just list those heights in [0,1]. In these routines, we generate the initial list of goldenreals, then convert to doubles and sort, then convert back. To make sure that there is no floating point error, we check that the first and last lists match.*/ public void printSequence() { for(int i=22;i<64;++i) { int[] q=DataPartitionRaw.successor(i); System.out.print(i+": "); Lists.printout(q); } } public void printHeightsA() { for(int q=0;q<18;++q) printHeightsA(q); } public void printHeightsA(int q) { int[] L=ProofSupport.lookup(q); int LA=L[0]; int LB=L[1]; GoldenReal[] LIST1=new GoldenReal[200]; int total=0; for(int br=0;br<4;++br) { int lim=DataRenormReturn.limits(LB,br); for(int k=0;k0) { OUT.println("public static int[][] returnData"+i+"() {"); OUT.print("int[][] A={"); for(int q=0;q