127 lines
4.0 KiB
HTML
127 lines
4.0 KiB
HTML
|
<!--NewPage-->
|
||
|
<html>
|
||
|
<head>
|
||
|
<!-- Generated by javadoc on Sat May 10 12:23:02 1997 -->
|
||
|
<a name="_top_"></a>
|
||
|
<title>
|
||
|
Class PopulationData
|
||
|
</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>
|
||
|
Class PopulationData
|
||
|
</h1>
|
||
|
<pre>
|
||
|
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
|
||
|
|
|
||
|
+----PopulationData
|
||
|
</pre>
|
||
|
<hr>
|
||
|
<dl>
|
||
|
<dt> public class <b>PopulationData</b>
|
||
|
<dt> extends <a href="java.lang.Object.html#_top_">Object</a>
|
||
|
</dl>
|
||
|
This class simply contains a vector that will store all of the
|
||
|
data from the lilgp statistics file <STRONG> for a single
|
||
|
sub-population</STRONG>.
|
||
|
<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="#PopulationData()"><b>PopulationData</b></a>()
|
||
|
<dd> The constructor method instantiates a Vector that contains
|
||
|
references for 20 other vectors - one for each column of
|
||
|
data in the statistics file.
|
||
|
</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="#addValue(int, java.lang.Double)"><b>addValue</b></a>(int, Double)
|
||
|
<dd> This method adds the given value to the correct vector.
|
||
|
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
|
||
|
<a href="#getMetricData(int)"><b>getMetricData</b></a>(int)
|
||
|
<dd> This method returns the requested Vector
|
||
|
|
||
|
|
||
|
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
|
||
|
<a href="#getNumGenerations()"><b>getNumGenerations</b></a>()
|
||
|
<dd> This method returns the number of generations of data.
|
||
|
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
|
||
|
<a href="#getValue(int, int)"><b>getValue</b></a>(int, int)
|
||
|
<dd> This method returns the specified value.
|
||
|
</dl>
|
||
|
<a name="constructors"></a>
|
||
|
<h2>
|
||
|
<img src="images/constructors.gif" width=231 height=38 alt="Constructors">
|
||
|
</h2>
|
||
|
<a name="PopulationData"></a>
|
||
|
<a name="PopulationData()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
|
||
|
<b>PopulationData</b>
|
||
|
<pre>
|
||
|
public PopulationData()
|
||
|
</pre>
|
||
|
<dl>
|
||
|
<dd> The constructor method instantiates a Vector that contains
|
||
|
references for 20 other vectors - one for each column of
|
||
|
data in the statistics file.
|
||
|
</dl>
|
||
|
<a name="methods"></a>
|
||
|
<h2>
|
||
|
<img src="images/methods.gif" width=151 height=38 alt="Methods">
|
||
|
</h2>
|
||
|
<a name="addValue(int, java.lang.Double)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
|
||
|
<a name="addValue"><b>addValue</b></a>
|
||
|
<pre>
|
||
|
public void addValue(int whichMetric,
|
||
|
<a href="java.lang.Double.html#_top_">Double</a> value)
|
||
|
</pre>
|
||
|
<dl>
|
||
|
<dd> This method adds the given value to the correct vector.
|
||
|
<dl>
|
||
|
<dt> <b>Parameters:</b>
|
||
|
<dd> whichMetric - is the index of the correct vector
|
||
|
<dd> value - is the value to be inserted
|
||
|
</dl>
|
||
|
</dl>
|
||
|
<a name="getValue(int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
|
||
|
<a name="getValue"><b>getValue</b></a>
|
||
|
<pre>
|
||
|
public double getValue(int whichMetric,
|
||
|
int whichGeneration)
|
||
|
</pre>
|
||
|
<dl>
|
||
|
<dd> This method returns the specified value.
|
||
|
<dl>
|
||
|
<dt> <b>Parameters:</b>
|
||
|
<dd> whichMetric - specifies which Vector to look in
|
||
|
<dd> whichGeneration - specifies which generation to look at
|
||
|
</dl>
|
||
|
</dl>
|
||
|
<a name="getMetricData(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
|
||
|
<a name="getMetricData"><b>getMetricData</b></a>
|
||
|
<pre>
|
||
|
public <a href="java.util.Vector.html#_top_">Vector</a> getMetricData(int whichMetric)
|
||
|
</pre>
|
||
|
<dl>
|
||
|
<dd> This method returns the requested Vector
|
||
|
<dl>
|
||
|
<dt> <b>Parameters:</b>
|
||
|
<dd> whichMetric - the index of the Vector to return.
|
||
|
</dl>
|
||
|
</dl>
|
||
|
<a name="getNumGenerations()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
|
||
|
<a name="getNumGenerations"><b>getNumGenerations</b></a>
|
||
|
<pre>
|
||
|
public int getNumGenerations()
|
||
|
</pre>
|
||
|
<dl>
|
||
|
<dd> This method returns the number of generations of data.
|
||
|
</dl>
|
||
|
</body>
|
||
|
</html>
|