Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

JApplet1::ExpertPanel Class Reference

Panel for "expert" system. More...

Inheritance diagram for JApplet1::ExpertPanel::

List of all members.

Public Methods

void setButtonState (boolean state)
 Enables or disables button go. More...

void reset (int N)
 Resets components of the panel for initial stage. More...


Private Methods

 ExpertPanel (JApplet1 applet)
 Constructor. More...


Private Attributes

JApplet1 applet
 applet component.

int leftover
 RAM leftover from previous stage.

int curr_stage
 current stage.

GridBagLayout gridbag = new GridBagLayout()
 GridBag layout.

GridBagConstraints c = new GridBagConstraints()
 constraints for gridbag.

StageInput stage_input
 panel for stage input.

JLabel JLabel2 = new JLabel("To maximize utility, You should buy this amount of RAM at stage 1:", JLabel.CENTER)
JTextField user_q = new JTextField("10",4)
 text field for leftover input.

JTextField sys_d = new JTextField("???",4)
 text field for optimum supply output for stage curr_stage.

JButton go
 button to start calculations.


Detailed Description

User selects stage M, RAM leftover after stage M, and optimal supply can be calculated for stage M+1.


Constructor & Destructor Documentation

JApplet1::ExpertPanel::ExpertPanel ( JApplet1 applet ) [private]
 

Parameters:
applet   applet component needed to get images for the button.


Member Function Documentation

void JApplet1::ExpertPanel::reset ( int N )
 

This method is called when optimization tables are built.

Parameters:
N   number of stages.

void JApplet1::ExpertPanel::setButtonState ( boolean state )
 

Parameters:
state   new state for go.


The documentation for this class was generated from the following file:
Generated at Mon May 28 15:13:56 2001 by Giedrius Paulikas & Emilis Štuopys, © 2001