<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Luayats: src/src/bssrc.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>src/src/bssrc.h</h1><a href="bssrc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">*</span>
<a name="l00003"></a>00003 <span class="comment">*               YATS - Yet Another Tiny Simulator</span>
<a name="l00004"></a>00004 <span class="comment">*</span>
<a name="l00005"></a>00005 <span class="comment">**************************************************************************</span>
<a name="l00006"></a>00006 <span class="comment">*</span>
<a name="l00007"></a>00007 <span class="comment">*     Copyright (C) 1995-1997   Chair for Telecommunications</span>
<a name="l00008"></a>00008 <span class="comment">*                               Dresden University of Technology</span>
<a name="l00009"></a>00009 <span class="comment">*                               D-01062 Dresden</span>
<a name="l00010"></a>00010 <span class="comment">*                               Germany</span>
<a name="l00011"></a>00011 <span class="comment">*</span>
<a name="l00012"></a>00012 <span class="comment">**************************************************************************</span>
<a name="l00013"></a>00013 <span class="comment">*</span>
<a name="l00014"></a>00014 <span class="comment">*   This program is free software; you can redistribute it and/or modify</span>
<a name="l00015"></a>00015 <span class="comment">*   it under the terms of the GNU General Public License as published by</span>
<a name="l00016"></a>00016 <span class="comment">*   the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00017"></a>00017 <span class="comment">*   (at your option) any later version.</span>
<a name="l00018"></a>00018 <span class="comment">*</span>
<a name="l00019"></a>00019 <span class="comment">*   This program is distributed in the hope that it will be useful,</span>
<a name="l00020"></a>00020 <span class="comment">*   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00021"></a>00021 <span class="comment">*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00022"></a>00022 <span class="comment">*   GNU General Public License for more details.</span>
<a name="l00023"></a>00023 <span class="comment">*</span>
<a name="l00024"></a>00024 <span class="comment">*   You should have received a copy of the GNU General Public License</span>
<a name="l00025"></a>00025 <span class="comment">*   along with this program; if not, write to the Free Software</span>
<a name="l00026"></a>00026 <span class="comment">*   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00027"></a>00027 <span class="comment">*</span>
<a name="l00028"></a>00028 <span class="comment">*************************************************************************/</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="comment">// changed 2004-10-15: included deterministic_behaviour variable.</span>
<a name="l00031"></a>00031 <span class="comment">// If deterministic_behaviour is set to 1, the burst and silence</span>
<a name="l00032"></a>00032 <span class="comment">// lengths are fix, not chosen from a distribution</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="preprocessor">#ifndef _BSSRC_H_</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#define _BSSRC_H_</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &quot;<a class="code" href="in1out_8h.html">in1out.h</a>&quot;</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="comment">//tolua_begin</span>
<a name="l00040"></a><a class="code" href="classbssrc.html">00040</a> <span class="keyword">class   </span><a class="code" href="classbssrc.html">bssrc</a>:  <span class="keyword">public</span>  <a class="code" href="classin1out.html">in1out</a> {        
<a name="l00041"></a>00041 <span class="keyword">typedef</span> <a class="code" href="classin1out.html">in1out</a>  <a class="code" href="classino.html">baseclass</a>;
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00044"></a>00044         <a class="code" href="classbssrc.html#a798d93c795807f551b5089105cc7f4ba">bssrc</a>();
<a name="l00045"></a>00045         <a class="code" href="classbssrc.html#ae3dea53e1cc3d34c19ee0b212d1a7903">~bssrc</a>();       
<a name="l00046"></a>00046 
<a name="l00047"></a>00047         <span class="keywordtype">void</span>    <a class="code" href="classbssrc.html#a7125cf14df4e4eacf34134f9ddeec2dd">SetDeterministicEx</a>(<span class="keywordtype">int</span> det); <span class="comment">// included 2004-10-29</span>
<a name="l00048"></a>00048         <span class="keywordtype">void</span>    <a class="code" href="classbssrc.html#a999b5f13126c9a57815002241d1046fa">SetDeterministicEs</a>(<span class="keywordtype">int</span> det); <span class="comment">// included 2004-10-29</span>
<a name="l00049"></a>00049 
<a name="l00050"></a>00050         <span class="keywordtype">int</span> <a class="code" href="classbssrc.html#a042da540921e8918b2e3f6aa8a95e41b">act</a>(<span class="keywordtype">void</span>);
<a name="l00051"></a>00051 
<a name="l00052"></a><a class="code" href="classbssrc.html#a56cddf2f5d2321cfbd22689acc41dc30">00052</a>         <span class="keywordtype">double</span>          <a class="code" href="classbssrc.html#a56cddf2f5d2321cfbd22689acc41dc30">ex</a>;             
<a name="l00053"></a><a class="code" href="classbssrc.html#afa70bb6a8176a4e761f524ac6f9851d8">00053</a>         <span class="keywordtype">double</span>          <a class="code" href="classbssrc.html#afa70bb6a8176a4e761f524ac6f9851d8">es</a>;     
<a name="l00054"></a><a class="code" href="classbssrc.html#a39990a2f8d7eefaa07e793a264a1a444">00054</a>         <span class="keywordtype">int</span>             <a class="code" href="classbssrc.html#a39990a2f8d7eefaa07e793a264a1a444">delta</a>;
<a name="l00055"></a><a class="code" href="classbssrc.html#afc8a6c1a6dff3b90684114fa96ac9c6c">00055</a>         <span class="keywordtype">int</span>             <a class="code" href="classbssrc.html#afc8a6c1a6dff3b90684114fa96ac9c6c">dist_burst</a>;
<a name="l00056"></a><a class="code" href="classbssrc.html#a67611af2013faadc2ab2b6e475eb09dd">00056</a>         <span class="keywordtype">int</span>             <a class="code" href="classbssrc.html#a67611af2013faadc2ab2b6e475eb09dd">dist_silence</a>;
<a name="l00057"></a><a class="code" href="classbssrc.html#a5653d81a51400e9a730882941c77f864">00057</a>         <span class="keywordtype">int</span>             <a class="code" href="classbssrc.html#a5653d81a51400e9a730882941c77f864">state</a>;                  <span class="comment">/* current state:</span>
<a name="l00058"></a>00058 <span class="comment">                                                * is decremented with each sent cell. If</span>
<a name="l00059"></a>00059 <span class="comment">                                                * state = 0, the current burst is finished</span>
<a name="l00060"></a>00060 <span class="comment">                                                */</span>
<a name="l00061"></a><a class="code" href="classbssrc.html#a7ec09a637098664b8759de51fc5f56f1">00061</a>         <span class="keywordtype">int</span> <a class="code" href="classbssrc.html#a7ec09a637098664b8759de51fc5f56f1">deterministic_ex</a>;   <span class="comment">// included 2004-10-15</span>
<a name="l00062"></a><a class="code" href="classbssrc.html#a23ea6616e620b70f9b6283fdc0f7a6f2">00062</a>         <span class="keywordtype">int</span> <a class="code" href="classbssrc.html#a23ea6616e620b70f9b6283fdc0f7a6f2">deterministic_es</a>;   <span class="comment">// included 2004-10-15</span>
<a name="l00063"></a>00063 <span class="comment">//tolua_end</span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065         <span class="keywordtype">void</span>    <a class="code" href="classbssrc.html#ac90d250944f3fdcc7b7cda6ff917f9ea">early</a>(<a class="code" href="classevent.html">event</a> *);
<a name="l00066"></a>00066 };  <span class="comment">//tolua_export</span>
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 <span class="preprocessor">#endif  // _BSSRC_H_</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Feb 14 12:31:42 2010 for Luayats by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
