📄 gpe.htm
字号:
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
if( m_ProblemSpaceClasses == null ) {</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
ProblemSpaceClasses = </span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
TypeSearchUtility.SearchCurrentDirectory.FirstCompatibleType;</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
}</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New"> </span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
return m_ProblemSpaceClasses;</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New"> }</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
set {</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
if( value == null ) {</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
throw new ArgumentNullException( "value", "The value
passed to</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
GPEngine.ProblemSpaceClasses_set was null." );</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
}</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New"> </span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
if( Running ) {</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
throw new InvalidOperationException( "The Problem
Space classes</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
used by the GPEngine cannot be set while it is
Running." );</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
}</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
m_ProblemSpaceClasses = value;</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
if( Options.OutputDirectory.Length == 0 ) {</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
Options.OutputDirectory =
Environment.CurrentDirectory + </span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
Path.DirectorySeparatorChar +</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
ProblemSpaceClasses.BaseClassVerifier.BaseClassType.Name;</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
}</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New"> </span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
//reset state</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
m_RunInterrupted = false;</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
CurrentGeneration = 0;</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New"> }</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">}</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
private CompatibilityVerifier m_ProblemSpaceClasses;</span></td>
</tr>
</table>
</div>
<p class="MsoNormal"><span style="font-family: Arial">The Running method
determines whether or not the GPEngine is running. If the GPEngine is running,
problem space classes cannot be changed. The GPEngine is running when
it is creating or testing Populations. The GUI displays information
whether or not the GPEngine is currently running.</span></p>
<div align="center">
<table border="0" width="90%" id="table3">
<tr>
<td>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">public
bool Running {</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
get {</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
return m_Running;</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New"> }</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">}</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New">
private bool m_Running;</span></td>
</tr>
</table>
</div>
<p class="MsoNormal"><span style="font-family: Arial">The interrupted method
determines if the engine status is 慽nterrupted
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -