<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Thu Mar 21 20:35:17 EST 2002 -->
<TITLE>
FixedBinaryString (java-neuralnet API)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
function asd()
{
parent.document.title="FixedBinaryString (java-neuralnet API)";
}
</SCRIPT>
<BODY BGCOLOR="white" onload="asd();">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../../net/openai/ai/ga/cell/encoding/StrictPermutation.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="FixedBinaryString.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;
<SCRIPT>
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
net.openai.ai.ga.cell.encoding</FONT>
<BR>
Class  FixedBinaryString</H2>
<PRE>
java.lang.Object
  |
  +--<B>net.openai.ai.ga.cell.encoding.FixedBinaryString</B>
</PRE>
<HR>
<DL>
<DT>public class <B>FixedBinaryString</B><DT>extends java.lang.Object</DL>

<P>
The <code>FixedBinaryString</code> is an encoding method using a string
 of binary digits. The value is represented as a <code>long</code> and has
 a fixed length in bits. It supports single cross-over and mutation.
<P>

<P>
<DL>
<DT><B>Since:</B><DD>JDK1.3</DD>
</DD>
<DT><B>Version:</B><DD>%I%, %G%</DD>
</DD>
<DT><B>Author:</B><DD>Jared Grubb</DD>
</DD>
</DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->


<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#FixedBinaryString(net.openai.ai.ga.cell.encoding.FixedBinaryString)">FixedBinaryString</A></B>(<A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html">FixedBinaryString</A>&nbsp;toClone)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and returns a clone of the given <code>FixedBinaryString</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#FixedBinaryString(java.lang.String, int)">FixedBinaryString</A></B>(java.lang.String&nbsp;name,
                  int&nbsp;size)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>FixedBinaryString</code> with the specified bit-
 length and given name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#FixedBinaryString(java.lang.String, int, long)">FixedBinaryString</A></B>(java.lang.String&nbsp;name,
                  int&nbsp;size,
                  long&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>FixedBinaryString</code> with the specified bit-length
 and initial value and given name.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#clearBit(int)">clearBit</A></B>(int&nbsp;bitNum)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears a given bit in the binary string</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html">FixedBinaryString</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#cross(net.openai.ai.ga.cell.encoding.FixedBinaryString, net.openai.ai.ga.cell.encoding.FixedBinaryString)">cross</A></B>(<A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html">FixedBinaryString</A>&nbsp;first,
      <A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html">FixedBinaryString</A>&nbsp;second)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new <code>FixedBinaryString</code> based on two other
 binary strings of the same length.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#getBit(int)">getBit</A></B>(int&nbsp;bitNum)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bit-status of a certain bit in this binary string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#getLong()">getLong</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of this binary string as a <code>long</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#getName()">getName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the name of this binary string</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#getSize()">getSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the length of this binary string in bits</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#mutate(int)">mutate</A></B>(int&nbsp;amount)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mutates a given number of bits in the binary string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#setBit(int)">setBit</A></B>(int&nbsp;bitNum)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a given bit in the binary string</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#setLong(long)">setLong</A></B>(long&nbsp;newVal)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the binary string to the value as a <code>long</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#setName(java.lang.String)">setName</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the name of this binary string to the given name</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#setSize(int)">setSize</A></B>(int&nbsp;size)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the length of this binary string in bits</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#toBinaryString()">toBinaryString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>String</code> representation of this binary string as a
 string of binary digits.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#toFullBinaryString()">toFullBinaryString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>String</code> representation of this binary string as a
 string of binary digits, including leading zeroes</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#toFullHexString()">toFullHexString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>String</code> representation of this binary string as a
 string of hexadecimal digits, including leading zeroes</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html#toHexString()">toHexString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>String</code> representation of this binary string as a
 string of hex digits.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="FixedBinaryString(java.lang.String, int)"><!-- --></A><H3>
FixedBinaryString</H3>
<PRE>
public <B>FixedBinaryString</B>(java.lang.String&nbsp;name,
                         int&nbsp;size)</PRE>
<DL>
<DD>Creates a new <code>FixedBinaryString</code> with the specified bit-
 length and given name.
<P>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> representing the string's name<DD><CODE>size</CODE> - the length of the binary string in bits</DL>
<HR>

<A NAME="FixedBinaryString(java.lang.String, int, long)"><!-- --></A><H3>
FixedBinaryString</H3>
<PRE>
public <B>FixedBinaryString</B>(java.lang.String&nbsp;name,
                         int&nbsp;size,
                         long&nbsp;value)</PRE>
<DL>
<DD>Creates a new <code>FixedBinaryString</code> with the specified bit-length
 and initial value and given name.
<P>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> representing the string's name<DD><CODE>size</CODE> - the length of the binary string in bits<DD><CODE>value</CODE> - the initial value for the binary string</DL>
<HR>

<A NAME="FixedBinaryString(net.openai.ai.ga.cell.encoding.FixedBinaryString)"><!-- --></A><H3>
FixedBinaryString</H3>
<PRE>
public <B>FixedBinaryString</B>(<A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html">FixedBinaryString</A>&nbsp;toClone)</PRE>
<DL>
<DD>Creates and returns a clone of the given <code>FixedBinaryString</code>.
 Throws <code>NullPointerException</code> when passed <code>null</code>.
<P>
<DT><B>Parameters:</B><DD><CODE>toClone</CODE> - the binary string to clone</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getSize()"><!-- --></A><H3>
getSize</H3>
<PRE>
public int <B>getSize</B>()</PRE>
<DL>
<DD>Returns the length of this binary string in bits
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setSize(int)"><!-- --></A><H3>
setSize</H3>
<PRE>
public void <B>setSize</B>(int&nbsp;size)</PRE>
<DL>
<DD>Sets the length of this binary string in bits
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>size</CODE> - the length of the binary string in bits</DL>
</DD>
</DL>
<HR>

<A NAME="getLong()"><!-- --></A><H3>
getLong</H3>
<PRE>
public long <B>getLong</B>()</PRE>
<DL>
<DD>Returns the value of this binary string as a <code>long</code>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setLong(long)"><!-- --></A><H3>
setLong</H3>
<PRE>
public void <B>setLong</B>(long&nbsp;newVal)</PRE>
<DL>
<DD>Sets the binary string to the value as a <code>long</code>. Performs a
 bit-wise AND (&) to clear all bits above the length of this binary string.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>newVal</CODE> - a <code>long</code> value to set this to</DL>
</DD>
</DL>
<HR>

<A NAME="getBit(int)"><!-- --></A><H3>
getBit</H3>
<PRE>
public boolean <B>getBit</B>(int&nbsp;bitNum)</PRE>
<DL>
<DD>Returns the bit-status of a certain bit in this binary string.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setBit(int)"><!-- --></A><H3>
setBit</H3>
<PRE>
public void <B>setBit</B>(int&nbsp;bitNum)</PRE>
<DL>
<DD>Sets a given bit in the binary string
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bitNum</CODE> - sets the given bit to <code>true</code> ("1")</DL>
</DD>
</DL>
<HR>

<A NAME="clearBit(int)"><!-- --></A><H3>
clearBit</H3>
<PRE>
public void <B>clearBit</B>(int&nbsp;bitNum)</PRE>
<DL>
<DD>Clears a given bit in the binary string
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bitNum</CODE> - sets the given bit to <code>false</code> ("0")</DL>
</DD>
</DL>
<HR>

<A NAME="setName(java.lang.String)"><!-- --></A><H3>
setName</H3>
<PRE>
public void <B>setName</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Sets the name of this binary string to the given name
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> for the new name</DL>
</DD>
</DL>
<HR>

<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public java.lang.String <B>getName</B>()</PRE>
<DL>
<DD>Gets the name of this binary string
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toBinaryString()"><!-- --></A><H3>
toBinaryString</H3>
<PRE>
public java.lang.String <B>toBinaryString</B>()</PRE>
<DL>
<DD>Returns a <code>String</code> representation of this binary string as a
 string of binary digits. Leading zeroes are trimmed.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toFullBinaryString()"><!-- --></A><H3>
toFullBinaryString</H3>
<PRE>
public java.lang.String <B>toFullBinaryString</B>()</PRE>
<DL>
<DD>Returns a <code>String</code> representation of this binary string as a
 string of binary digits, including leading zeroes
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toHexString()"><!-- --></A><H3>
toHexString</H3>
<PRE>
public java.lang.String <B>toHexString</B>()</PRE>
<DL>
<DD>Returns a <code>String</code> representation of this binary string as a
 string of hex digits. Leading zeroes are trimmed.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toFullHexString()"><!-- --></A><H3>
toFullHexString</H3>
<PRE>
public java.lang.String <B>toFullHexString</B>()</PRE>
<DL>
<DD>Returns a <code>String</code> representation of this binary string as a
 string of hexadecimal digits, including leading zeroes
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="cross(net.openai.ai.ga.cell.encoding.FixedBinaryString, net.openai.ai.ga.cell.encoding.FixedBinaryString)"><!-- --></A><H3>
cross</H3>
<PRE>
public static <A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html">FixedBinaryString</A> <B>cross</B>(<A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html">FixedBinaryString</A>&nbsp;first,
                                      <A HREF="../../../../../../net/openai/ai/ga/cell/encoding/FixedBinaryString.html">FixedBinaryString</A>&nbsp;second)</PRE>
<DL>
<DD>Returns a new <code>FixedBinaryString</code> based on two other
 binary strings of the same length. A cross-over point is picked at
 random and all bits before this point are the same as the first parent's
 and all bits after this point are the same as the second parent's.
 Neither parent is altered during this call.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="mutate(int)"><!-- --></A><H3>
mutate</H3>
<PRE>
public void <B>mutate</B>(int&nbsp;amount)</PRE>
<DL>
<DD>Mutates a given number of bits in the binary string. The mutation is the
 inversion of the bit. A non-positive argument results in no change in the
 string.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>amount</CODE> - the number of bits to invert ("mutate")</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../../net/openai/ai/ga/cell/encoding/StrictPermutation.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="FixedBinaryString.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;
<SCRIPT>
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
Copyright - 2001 OpenAI Labs. All Rights Reserved.
</BODY>
</HTML>
