B.A.R.G.A.M.E.  v2.0
El Farol Bar Problem Implementation
 All Classes Namespaces Files Functions Variables Typedefs Defines
Doxygen Specific Source Code/Form2.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <windows.h>
00003 #include "Form2.h"
00004 #include "Form1.h"
00005 #include "Town.h"
00006 
00007 namespace BARGAME {
00008 
00009         using namespace System;
00010         using namespace System::ComponentModel;
00011         using namespace System::Collections;
00012         using namespace System::Windows::Forms;
00013         using namespace System::Data;
00014         using namespace System::Drawing;
00015         using namespace System::Threading;
00016         
00017 public ref class Form2 : public System::Windows::Forms::Form{
00018 
00019 public:
00021 
00029         Form2(double numagents,int numbars1,int barcap[],bool ispercentcap, int* loading);
00031 
00034         ~Form2();
00035         
00036 protected:
00038                 String^ filename;
00040                 int numbars;
00042                 int sleepytime;
00044                 int selectedindex1;
00046                 int selectedindex2;
00048                 int stop;
00050                 int turn;
00052                 Town *town;
00054                 double *ultimategraph;
00056                 graphPtr t;
00058                 Thread^ backendthread;
00060                 delegate void SetTextDelegate(String^ text);
00061                 
00063 
00069                 void runner(double *data);
00071 
00077                 void winningbars(double data[],int size,int leftorright );
00079 
00087                 void winners(double data[],int size,int leftorright );
00089 
00097                 void avgstratscores(double data[],int size,int leftorright );
00099 
00107                 void beststrat(double data[],int size,int leftorright);
00109 
00117                 void bardist(double data[],int size,int leftorright);
00119 
00127                 void numdeaths(double data[],int size,int leftorright);
00129 
00137                 void agedist(double data[],int size,int leftorright);
00139 
00144                 System::Void button2_Click(System::Object^  sender, System::EventArgs^  e);
00146 
00151                 void ThreadProcSafe();
00153 
00159                 void SetText(String^ text);
00161 
00167                 void MarshalString ( String ^ s, string& os );
00169 
00174                 void ComboBox1_SelectedIndexChanged( Object^ sender, System::EventArgs^ e );
00176 
00181                 void ComboBox2_SelectedIndexChanged( Object^ sender, System::EventArgs^ e );
00183 
00188                 System::Void Form2_FormClosed(System::Object^  sender, System::Windows::Forms::FormClosedEventArgs^  e);
00189 }
00190 }