Table.class

Contents

  1. Implementation
  2. The applet tag
  3. Setting the initial values
  4. Setting names and labels
  5. Other



Implementation

The main applet "Table" uses four other classes:

Table.class
ExtendedBar.class
TableHead.class
Numberee.class

The applet tag

<applet code="Table.class" width="613" height="525">
<param name="BUTTON" value="start,stop,,step,clear,new">
<param name="VARIABLE" value="N,n,p,<x>,sx,sm,max,speed">
<param name="RANGE" value="500,1,15000,10,1,35,5,1,50,45">
<param name="MESSAGE" value="real value,measured value,measurement(left),result(left),measurement(right),result(right)">
<param name="SHOW" value="y,y,y,y,y,y,y,y,y,y,y, y,y,y,y,y,y">
</applet>

The applet tag defines the size of Galton's Table and its basic parameters.
  1. The applet should be almost square,
  2. the changes in height affect the number of balls stored at the bottom of the table,
  3. and the changes in width change the diameter of the ball and columns.
  4. Each element can be shown (y in the SHOW parameter) or hidden (anything else),
    by changing the SHOW array, where
number corresponds to by default
1 start button on
2 stop button on
3 step button on
4 clear button on
5 new button on
6 N scrollbar on
7 n scrollbar on
8 p scrollbar on
9 the information labels on
10 the maximum number of balls in a column on
11 speed scrollbar on
12 text at the sides on
13 the counter showing the number of processed balls on
14 real and measured arrows on
15 the axis markers on

Setting the initial values

The initial values are set using the VALUE parameter:
<param name="RANGE" value="500,1,15000,10,1,35,5,1,50,45">
number meaning
1 N initial value
2 N minimum value
3 N maximum value
4 n initial value
5 n minimum value
6 n maximum value
7 initial speed
8 minimum speed
9 maximum speed
10 initial value of p

Setting the names and labels

<param name="BUTTON" value="start,stop,,step,clear,new">
<param name="VARIABLE" value="N,n,p,<x>,sx,sm,max,speed">
<param name="MESSAGE" value="measurement,result,real value,measured value">

Each word and phrase, as well as the variable names, can be modified, by changing the applet tag.

Final statements

N,n,p,s should be kept withing logical ranges. It is especially important not to set a high n maximum.
When less than two balls are at the bottom of the table info cannot be displayed, and the values are replaced by infinity sign (sometimes something else).