163 lines
6.1 KiB
HTML
163 lines
6.1 KiB
HTML
<!--NewPage-->
|
|
<html>
|
|
<head>
|
|
<!-- Generated by javadoc on Sat May 10 12:20:47 1997 -->
|
|
<a name="_top_"></a>
|
|
<title>
|
|
Class BreedingPanel
|
|
</title>
|
|
</head>
|
|
<body>
|
|
<h1>
|
|
Class BreedingPanel
|
|
</h1>
|
|
<pre>
|
|
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
|
|
|
|
|
+----<a href="java.awt.Component.html#_top_">java.awt.Component</a>
|
|
|
|
|
+----<a href="java.awt.Container.html#_top_">java.awt.Container</a>
|
|
|
|
|
+----<a href="java.awt.Panel.html#_top_">java.awt.Panel</a>
|
|
|
|
|
+----BreedingPanel
|
|
</pre>
|
|
<hr>
|
|
<dl>
|
|
<dt> class <b>BreedingPanel</b>
|
|
<dt> extends <a href="java.awt.Panel.html#_top_">Panel</a>
|
|
</dl>
|
|
This panel contains a <tt>TitlePanel</tt> and a <tt>GridBagPanel</tt>
|
|
that accepts input for the following <i>lilgp</i> parameters:
|
|
<br><tt>
|
|
<ul> <li>breed_phases <li>probabilistic_operators</ul></tt><p>
|
|
After entering the number of bread phases, the user has to click
|
|
on the <tt>Go</tt> button in order to enter the additional
|
|
breed phase parameters. Clicking on the <tt>Go</tt> button causes
|
|
a new <tt>BreedFrame</tt> to be instantiated. Clicking on the
|
|
<tt>purge</tt> button causes all of the parameters associated
|
|
with breed phases to be removed from the database.
|
|
<dl>
|
|
<dt> <b>See Also:</b>
|
|
<dd> <a href="TitlePanel.html#_top_">TitlePanel</a>, <a href="GridBagPanel.html#_top_">GridBagPanel</a>, <a href="BreedFrame.html#_top_">BreedFrame</a>, <a href="ParameterDB.html#purgeOldPhases">purgeOldPhases</a>
|
|
</dl>
|
|
<hr>
|
|
<a name="index"></a>
|
|
<h2>
|
|
<img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
|
|
</h2>
|
|
<dl>
|
|
<dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
|
|
<a href="#BreedingPanel()"><b>BreedingPanel</b></a>()
|
|
<dd> Add each of the UI components needed to accept input.
|
|
</dl>
|
|
<h2>
|
|
<img src="images/method-index.gif" width=207 height=38 alt="Method Index">
|
|
</h2>
|
|
<dl>
|
|
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
|
|
<a href="#action(java.awt.Event, java.lang.Object)"><b>action</b></a>(Event, Object)
|
|
<dd> Trap <tt>TextField</tt> events and <tt>Button</tt> events.
|
|
<dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
|
|
<a href="#enableButtons()"><b>enableButtons</b></a>()
|
|
<dd> Allow the <tt>BreedFrame</tt> to re-enable the button after the user
|
|
closes the frame.
|
|
<dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
|
|
<a href="#flushParameters()"><b>flushParameters</b></a>()
|
|
<dd> Collect the contents of each UI component and store it in the
|
|
<tt>ParameterDB</tt>.
|
|
<dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
|
|
<a href="#loadParams()"><b>loadParams</b></a>()
|
|
<dd> This method is responsible for loading parameters onto the <tt>BreedingPanel</tt>
|
|
after the user opens a parameter file.
|
|
</dl>
|
|
<a name="constructors"></a>
|
|
<h2>
|
|
<img src="images/constructors.gif" width=231 height=38 alt="Constructors">
|
|
</h2>
|
|
<a name="BreedingPanel"></a>
|
|
<a name="BreedingPanel()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
|
|
<b>BreedingPanel</b>
|
|
<pre>
|
|
public BreedingPanel()
|
|
</pre>
|
|
<dl>
|
|
<dd> Add each of the UI components needed to accept input.
|
|
<dl>
|
|
<dt> <b>See Also:</b>
|
|
<dd> <a href="GridBagPanel.html#addComponent">addComponent</a>
|
|
</dl>
|
|
</dl>
|
|
<a name="methods"></a>
|
|
<h2>
|
|
<img src="images/methods.gif" width=151 height=38 alt="Methods">
|
|
</h2>
|
|
<a name="flushParameters()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
|
|
<a name="flushParameters"><b>flushParameters</b></a>
|
|
<pre>
|
|
public static void flushParameters()
|
|
</pre>
|
|
<dl>
|
|
<dd> Collect the contents of each UI component and store it in the
|
|
<tt>ParameterDB</tt>. The parameters associated with breed phases
|
|
are flushed into the database in the <tt>action()</tt> method of
|
|
<tt>BreedFrame</tt>.
|
|
<dl>
|
|
<dt> <b>See Also:</b>
|
|
<dd> <a href="ParameterDB.html#_top_">ParameterDB</a>, <a href="BreedFrame.html#action">action</a>
|
|
</dl>
|
|
</dl>
|
|
<a name="action(java.awt.Event, java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
|
|
<a name="action"><b>action</b></a>
|
|
<pre>
|
|
public boolean action(<a href="java.awt.Event.html#_top_">Event</a> event,
|
|
<a href="java.lang.Object.html#_top_">Object</a> arg)
|
|
</pre>
|
|
<dl>
|
|
<dd> Trap <tt>TextField</tt> events and <tt>Button</tt> events.
|
|
If the <tt>Go</tt> button has been pressed, then extract
|
|
the contents of the field containing the <tt>breed_phases</tt>
|
|
and parse it for errors. If the number of breed phases
|
|
has <b>not</b> changed since the last time the button was
|
|
pressed, then simply <tt>show()</tt> the old <tt>BreedFrame</tt>
|
|
(it will contain any previously entered data). Otherwise,
|
|
instantiate a new <tt>BreedFrame</tt> containing the
|
|
default values. If the <tt>purge</tt> button has been pressed,
|
|
then remove all breed phase parameters from the database.
|
|
<dl>
|
|
<dt> <b>Overrides:</b>
|
|
<dd> <a href="java.awt.Component.html#action(java.awt.Event, java.lang.Object)">action</a> in class <a href="java.awt.Component.html#_top_">Component</a>
|
|
<dt> <b>See Also:</b>
|
|
<dd> <a href="BreedFrame.html#_top_">BreedFrame</a>, <a href="ParameterDB.html#purgeOldPhases">purgeOldPhases</a>
|
|
</dl>
|
|
</dl>
|
|
<a name="enableButtons()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
|
|
<a name="enableButtons"><b>enableButtons</b></a>
|
|
<pre>
|
|
public static void enableButtons()
|
|
</pre>
|
|
<dl>
|
|
<dd> Allow the <tt>BreedFrame</tt> to re-enable the button after the user
|
|
closes the frame.
|
|
<dl>
|
|
<dt> <b>See Also:</b>
|
|
<dd> <a href="BreedFrame.html#_top_">BreedFrame</a>
|
|
</dl>
|
|
</dl>
|
|
<a name="loadParams()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
|
|
<a name="loadParams"><b>loadParams</b></a>
|
|
<pre>
|
|
public static void loadParams()
|
|
</pre>
|
|
<dl>
|
|
<dd> This method is responsible for loading parameters onto the <tt>BreedingPanel</tt>
|
|
after the user opens a parameter file. It then invokes the <tt>loadParams</tt>
|
|
method in the <tt>BreedFrame</tt>.
|
|
<dl>
|
|
<dt> <b>See Also:</b>
|
|
<dd> <a href="BreedFrame.html#loadParams">loadParams</a>
|
|
</dl>
|
|
</dl>
|
|
</body>
|
|
</html>
|