001         package com.croftsoft.apps.backpropxor;
002    
003         import java.awt.Dimension;
004    
005         /*********************************************************************
006         * BackpropXor constants.
007         *
008         * @version
009         *   2002-02-28
010         * @since
011         *   2002-02-28
012         * @author
013         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
014         *********************************************************************/
015    
016         public interface  BackpropXorConstants
017         //////////////////////////////////////////////////////////////////////
018         //////////////////////////////////////////////////////////////////////
019         {
020    
021         public static final String  VERSION = "2002-02-28";
022    
023         public static final String  TITLE = "CroftSoft BackpropXOR";
024    
025         public static final String  APPLET_INFO
026           = "\n" + TITLE + "\n"
027           + "\u00A9 2002 CroftSoft Inc\n"
028           + "https://www.croftsoft.com/\n"
029           + "Version " + VERSION + "\n";
030    
031         //////////////////////////////////////////////////////////////////////
032         //////////////////////////////////////////////////////////////////////
033    
034         public static final long  REPAINT_PERIOD = 1000;
035    
036         public static final String  SHUTDOWN_CONFIRMATION_PROMPT
037           = "Close BackpropXOR?";
038    
039         public static final Dimension  FRAME_SIZE = null;
040    
041    // change this to fill frame?
042         public static final Dimension  SIZE = new Dimension ( 600, 400 );
043    
044         public static final int  OVAL_SIZE = 4;
045    
046         //////////////////////////////////////////////////////////////////////
047         //////////////////////////////////////////////////////////////////////
048    
049         public static final int  ITERATIONS_PER_EPOCH = 100;
050    
051    //     BA Z N X N X N X N A X A N B N O O
052    //        E O A B B A O A N N   X   X R N
053    //        R R         R N D O   B   A   E
054    //        O             D   R
055    //     00 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
056    //     01 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
057    //     10 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
058    //     11 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
059    
060         public static final String [ ]  FUNCTION_NAMES = {
061           "ZERO",        
062           "NOR",
063           "XA",
064           "NB",
065           "XB",
066           "NA",
067           "XOR",
068           "NAND",
069           "AND",
070           "XNOR",
071           "A",
072           "NXB",
073           "B",
074           "NXA",
075           "OR",
076           "ONE" };
077    
078         public static final int  INITIAL_FUNCTION = 8; // AND
079    
080         //////////////////////////////////////////////////////////////////////
081         //////////////////////////////////////////////////////////////////////
082    
083         public static final int  FONT_SIZE = 10;
084    
085         public static final int  Y = 60;
086    
087         public static final int  XTAB = FONT_SIZE * 7;
088    
089         public static final int  YTAB
090           = ( int ) ( ( double ) FONT_SIZE * 1.5 );
091    
092         //////////////////////////////////////////////////////////////////////
093         //////////////////////////////////////////////////////////////////////
094         }