Class Rand_Button

Class Rand_Button

java.lang.Object
   |
   +----awt.Component
           |
           +----awt.Button
                   |
                   +----SeqButton
                           |
                           +----Rand_Button

class Rand_Button
extends SeqButton
Class for the random sequence button.
Version:
1.0
Author:
Henrik Eriksson

Rand_Button(NuclearPlant, String, int, int)
Construct a button and initialize it.

run()
Run the sequence.

Rand_Button
  public Rand_Button(NuclearPlant p,
                     String name,
                     int x,
                     int y)
Construct a button and initialize it.
Parameters:
p - The plant
name - The button label
x - The X coordinate
y - The Y coordinate

run
  public void run()
Run the sequence. This method is called in a separate thread when the button is selected by the user. Modify this method to change the sequence in question.