<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=“www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Class: NEAT::Critter::Phenotype — Documentation by YARD 0.8.7.3
</title>
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" /> <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
<script type=“text/javascript” charset=“utf-8”>
hasFrames = window.top.frames.main ? true : false; relpath = '../../'; framesUrl = "../../frames.html#!" + escape(window.location.href);
</script>
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script> <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script> </head> <body> <div id="header"> <div id="menu"> <a href="../../_index.html">Index (P)</a> » <span class='title'><span class='object_link'><a href="../../NEAT.html" title="NEAT (module)">NEAT</a></span></span> » <span class='title'><span class='object_link'><a href="../Critter.html" title="NEAT::Critter (class)">Critter</a></span></span> » <span class="title">Phenotype</span> <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>
<div id="search"> <a class="full_list_link" id="class_list_link" href="../../class_list.html"> Class List </a> <a class="full_list_link" id="method_list_link" href="../../method_list.html"> Method List </a> <a class="full_list_link" id="file_list_link" href="../../file_list.html"> File List </a>
</div>
<div class="clear"></div> </div> <iframe id="search_frame"></iframe> <div id="content"><h1>Class: NEAT::Critter::Phenotype
</h1>
<dl class=“box”>
<dt class="r1">Inherits:</dt> <dd class="r1"> <span class="inheritName"><span class='object_link'><a href="../NeatOb.html" title="NEAT::NeatOb (class)">NeatOb</a></span></span> <ul class="fullTree"> <li>Object</li> <li class="next"><span class='object_link'><a href="../NeatOb.html" title="NEAT::NeatOb (class)">NeatOb</a></span></li> <li class="next">NEAT::Critter::Phenotype</li> </ul> <a href="#" class="inheritanceTree">show all</a> </dd> <dt class="r2">Includes:</dt> <dd class="r2">Math</dd> <dt class="r1 last">Defined in:</dt> <dd class="r1 last">lib/rubyneat/critter.rb</dd>
</dl> <div class=“clear”></div>
<h2>Overview</h2><div class=“docstring”>
<div class="discussion">
<h1 id=“label-Phenotype+part+of+the+Critter”>Phenotype part of the Critter</h1>
<p>This is created by Evolver.</p>
</div>
</div> <div class=“tags”>
</div>
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2> <ul class="summary"> <li class="public "> <span class="summary_signature"> <a href="#code-instance_method" title="#code (instance method)">- (Object) <strong>code</strong> </a> </span> <span class="summary_desc"><div class='inline'>
<p>Expressed code as a string (that was instance_eval()ed).</p> </div></span>
</li>
<li class="public "> <span class="summary_signature"> <a href="#critter-instance_method" title="#critter (instance method)">- (Object) <strong>critter</strong> </a> </span> <span class="summary_desc"><div class='inline'>
<p>Critter to which we belong.</p> </div></span>
</li>
</ul> <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../NeatOb.html" title="NEAT::NeatOb (class)">NeatOb</a></span></h3> <p class="inherited"><span class='object_link'><a href="../NeatOb.html#controller-instance_method" title="NEAT::NeatOb#controller (method)">#controller</a></span>, <span class='object_link'><a href="../NeatOb.html#name-instance_method" title="NEAT::NeatOb#name (method)">#name</a></span></p> <h2> Class Method Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small> </h2> <ul class="summary"> <li class="public "> <span class="summary_signature"> <a href="#%5B%5D-class_method" title="[] (class method)">+ (Object) <strong>[]</strong>(critter) </a> </span> <span class="summary_desc"><div class='inline'></div></span>
</li>
</ul> <h2> Instance Method Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small> </h2> <ul class="summary"> <li class="public "> <span class="summary_signature"> <a href="#express%21-instance_method" title="#express! (instance method)">- (Object) <strong>express!</strong> </a> </span> <span class="summary_desc"><div class='inline'>
<p>Take what is in code and express that!.</p> </div></span>
</li>
<li class="public "> <span class="summary_signature"> <a href="#stimulate-instance_method" title="#stimulate (instance method)">- (Object) <strong>stimulate</strong> </a> </span> <span class="summary_desc"><div class='inline'>
<p>This function is re-written by Expressor – with parameters and all.</p> </div></span>
</li>
<li class="public "> <span class="summary_signature"> <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a> </span> <span class="summary_desc"><div class='inline'>
<p>This gives us a complete.</p> </div></span>
</li>
</ul> <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../NeatOb.html" title="NEAT::NeatOb (class)">NeatOb</a></span></h3> <p class="inherited"><span class='object_link'><a href="../NeatOb.html#initialize-instance_method" title="NEAT::NeatOb#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../NeatOb.html#log-class_method" title="NEAT::NeatOb.log (method)">log</a></span>, <span class='object_link'><a href="../NeatOb.html#log-instance_method" title="NEAT::NeatOb#log (method)">#log</a></span></p> <div id="constructor_details" class="method_details_list"> <h2>Constructor Details</h2> <p class="notice">This class inherits a constructor from <span class='object_link'><a href="../NeatOb.html#initialize-instance_method" title="NEAT::NeatOb#initialize (method)">NEAT::NeatOb</a></span></p>
</div>
<div id="instance_attr_details" class="attr_details"> <h2>Instance Attribute Details</h2> <span id="code=-instance_method"></span> <div class="method_details first"> <h3 class="signature first" id="code-instance_method"> - (<tt>Object</tt>) <strong>code</strong>
</h3><div class=“docstring”>
<div class="discussion">
<p>Expressed code as a string (that was instance_eval()ed)</p>
</div>
</div> <div class=“tags”>
</div><table class=“source_code”>
<tr> <td> <pre class="lines">
292 293 294</pre>
</td> <td> <pre class="code"><span class="info file"># File 'lib/rubyneat/critter.rb', line 292</span>
<span class='kw'>def</span> <span class='id identifier rubyid_code'>code</span>
<span class='ivar'>@code</span>
<span class='kw'>end</span></pre>
</td> </tr>
</table> </div>
<span id="critter=-instance_method"></span> <div class="method_details "> <h3 class="signature " id="critter-instance_method"> - (<tt>Object</tt>) <strong>critter</strong>
</h3><div class=“docstring”>
<div class="discussion">
<p>Critter to which we belong</p>
</div>
</div> <div class=“tags”>
</div><table class=“source_code”>
<tr> <td> <pre class="lines">
289 290 291</pre>
</td> <td> <pre class="code"><span class="info file"># File 'lib/rubyneat/critter.rb', line 289</span>
<span class='kw'>def</span> <span class='id identifier rubyid_critter'>critter</span>
<span class='ivar'>@critter</span>
<span class='kw'>end</span></pre>
</td> </tr>
</table> </div>
</div> <div id="class_method_details" class="method_details_list"> <h2>Class Method Details</h2> <div class="method_details first"> <h3 class="signature first" id="[]-class_method"> + (<tt>Object</tt>) <strong>[]</strong>(critter)
</h3><table class=“source_code”>
<tr> <td> <pre class="lines">
294 295 296 297 298 299</pre>
</td> <td> <pre class="code"><span class="info file"># File 'lib/rubyneat/critter.rb', line 294</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_critter'>critter</span><span class='rparen'>)</span>
<span class='id identifier rubyid_ph'>ph</span> <span class='op'>=</span> <span class='const'>Phenotype</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_critter'>critter</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span> <span class='id identifier rubyid_ph'>ph</span><span class='period'>.</span><span class='id identifier rubyid_critter'>critter</span> <span class='op'>=</span> <span class='id identifier rubyid_critter'>critter</span> <span class='id identifier rubyid_ph'>ph</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>## Phenotype Code %s for critter %s\n</span><span class='tstring_end'>"</span></span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='id identifier rubyid_ph'>ph</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_critter'>critter</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='kw'>return</span> <span class='id identifier rubyid_ph'>ph</span>
<span class='kw'>end</span></pre>
</td> </tr>
</table> </div>
</div> <div id="instance_method_details" class="method_details_list"> <h2>Instance Method Details</h2> <div class="method_details first"> <h3 class="signature first" id="express!-instance_method"> - (<tt>Object</tt>) <strong>express!</strong>
</h3><div class=“docstring”>
<div class="discussion">
<p>Take what is in code and express that!</p>
</div>
</div> <div class=“tags”>
</div><table class=“source_code”>
<tr> <td> <pre class="lines">
302 303 304 305</pre>
</td> <td> <pre class="code"><span class="info file"># File 'lib/rubyneat/critter.rb', line 302</span>
<span class='kw'>def</span> <span class='id identifier rubyid_express!'>express!</span>
<span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='ivar'>@code</span> <span class='kw'>self</span>
<span class='kw'>end</span></pre>
</td> </tr>
</table> </div>
<div class="method_details "> <h3 class="signature " id="stimulate-instance_method"> - (<tt>Object</tt>) <strong>stimulate</strong>
</h3><div class=“docstring”>
<div class="discussion">
<p>This function is re-written by Expressor – with parameters and all. It returns a “response” in the form of a response hash. TODO This <strong>is</strong> network activation, so we should rename this at a later date…</p>
</div>
</div> <div class=“tags”>
</div><table class=“source_code”>
<tr> <td> <pre class="lines">
310 311 312</pre>
</td> <td> <pre class="code"><span class="info file"># File 'lib/rubyneat/critter.rb', line 310</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stimulate'>stimulate</span>
<span class='kw'>nil</span>
<span class='kw'>end</span></pre>
</td> </tr>
</table> </div>
<div class="method_details "> <h3 class="signature " id="to_s-instance_method"> - (<tt>Object</tt>) <strong>to_s</strong>
</h3><div class=“docstring”>
<div class="discussion">
<p>This gives us a complete</p>
</div>
</div> <div class=“tags”>
</div><table class=“source_code”>
<tr> <td> <pre class="lines">
315 316 317</pre>
</td> <td> <pre class="code"><span class="info file"># File 'lib/rubyneat/critter.rb', line 315</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>## %s\n%s</span><span class='tstring_end'>"</span></span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='kw'>super</span><span class='comma'>,</span> <span class='ivar'>@code</span><span class='rbracket'>]</span>
<span class='kw'>end</span></pre>
</td> </tr>
</table> </div>
</div>
</div>
<div id="footer"> Generated on Sun Mar 16 16:36:51 2014 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> 0.8.7.3 (ruby-2.1.1).
</div>
</body>
</html>