class_easylocal__abstracttester.html
来自「一个tabu search算法框架」· HTML 代码 · 共 539 行 · 第 1/2 页
HTML
539 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>EasyLocal++ Documentation</title>
<link href="local.css" rel="stylesheet" type="text/css">
</head>
<body lang="en">
<table width="100%" border="0">
<tbody>
<tr>
<td colspan="2"><h1 class="nojustify">EasyLocal++ Documentation</h1>
<hr>
</td>
</tr>
<tr>
<td width="30" align="center"> </td>
<td>
<!-- Generated by Doxygen 1.2.5 on Sat Jun 9 18:59:21 2001 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center>
<hr><h1>easylocal::AbstractTester Class Reference</h1><code>#include <<a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>></code>
<p>
Inheritance diagram for easylocal::AbstractTester<p><center><img src="class_easylocal__AbstractTester_inherit_graph.gif" border="0" usemap="#easylocal::AbstractTester_inherit_map" alt="Inheritance graph"></center>
<map name="easylocal::AbstractTester_inherit_map">
<area href="class_easylocal__Tester.html" shape="rect" coords="21,66,125,85">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_easylocal__AbstractTester-members.html">List of all members.</a><h2>Public Methods</h2>
<ul>
<li>virtual <a class="el" href="class_easylocal__AbstractTester.html#a0">~AbstractTester</a> ()
<li>virtual void <a class="el" href="class_easylocal__AbstractTester.html#a1">LoadInstance</a> (std::string id)=0
<li>virtual int <a class="el" href="class_easylocal__AbstractTester.html#a2">AddRunnerToSolver</a> (std::string name, std::string type)=0
<li>void <a class="el" href="class_easylocal__AbstractTester.html#a3">SetSolverTrials</a> (unsigned int t)
<li>void <a class="el" href="class_easylocal__AbstractTester.html#a4">SetLogFile</a> (std::string s)
<li>void <a class="el" href="class_easylocal__AbstractTester.html#a5">SetOutputPrefix</a> (std::string s)
<li>void <a class="el" href="class_easylocal__AbstractTester.html#a6">SetPlotPrefix</a> (std::string s)
<li>virtual void <a class="el" href="class_easylocal__AbstractTester.html#a7">StartSolver</a> ()=0
<li>virtual void <a class="el" href="class_easylocal__AbstractTester.html#a8">SetRunningParameters</a> (std::string name, std::string type, const <a class="el" href="class_easylocal__ParameterBox.html">ParameterBox</a> &pb)=0
</ul>
<h2>Protected Attributes</h2>
<ul>
<li>unsigned int <a class="el" href="class_easylocal__AbstractTester.html#n0">trials</a>
<li>std::ostream* <a class="el" href="class_easylocal__AbstractTester.html#n1">logstream</a>
<li>std::string <a class="el" href="class_easylocal__AbstractTester.html#n2">output_file_prefix</a>
<li>std::string <a class="el" href="class_easylocal__AbstractTester.html#n3">plot_file_prefix</a>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class represent the interface between the tester and the interpreter of the batch experiment language.
<p>
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l01042">1042</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
<a name="a0" doxytag="easylocal::AbstractTester::~AbstractTester"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
easylocal::AbstractTester::~AbstractTester (
</b></td>
<td valign="bottom"><b>
)<code> [inline, virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Virtual destructor.
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l01046">1046</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a2" doxytag="easylocal::AbstractTester::AddRunnerToSolver"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
int easylocal::AbstractTester::AddRunnerToSolver (
</b></td>
<td valign="bottom"><b>
std::string <em>name</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
std::string <em>type</em> )<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Adds the runner identified by the name and the type passed as parameter to the attached solver. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>
</td><td>
the name of the runner to add </td></tr>
<tr><td valign=top><em>type</em>
</td><td>
the type of the runner to add </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="class_easylocal__Tester.html#a14">easylocal::Tester</a>. </td>
</tr>
</table>
<a name="a1" doxytag="easylocal::AbstractTester::LoadInstance"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
void easylocal::AbstractTester::LoadInstance (
</b></td>
<td valign="bottom"><b>
std::string <em>id</em> )<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Loads an input instance identified by the string passed as parameter. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>id</em>
</td><td>
the instance identifier. </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="class_easylocal__Tester.html#a13">easylocal::Tester</a>. </td>
</tr>
</table>
<a name="a4" doxytag="easylocal::AbstractTester::SetLogFile"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
void easylocal::AbstractTester::SetLogFile (
</b></td>
<td valign="bottom"><b>
std::string <em>s</em> )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets the name of the file to be used as log for the experiments.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>s</em>
</td><td>
the name of the file </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocal_cpp-source.html#l00075">75</a> of file <a class="el" href="EasyLocal_cpp-source.html">EasyLocal.cpp</a>. </td>
</tr>
</table>
<a name="a5" doxytag="easylocal::AbstractTester::SetOutputPrefix"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
void easylocal::AbstractTester::SetOutputPrefix (
</b></td>
<td valign="bottom"><b>
std::string <em>s</em> )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets the prefix for the output file. Therefore, if during a batch of experiments is required to provide also the output, it will be written on files whose name starts with the given prefix.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>s</em>
</td><td>
the prefix to be used. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocal_cpp-source.html#l00085">85</a> of file <a class="el" href="EasyLocal_cpp-source.html">EasyLocal.cpp</a>. </td>
</tr>
</table>
<a name="a6" doxytag="easylocal::AbstractTester::SetPlotPrefix"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
void easylocal::AbstractTester::SetPlotPrefix (
</b></td>
<td valign="bottom"><b>
std::string <em>s</em> )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?