B.A.R.G.A.M.E. v2.0 El Farol Bar Problem Implementation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Defines
Doxygen Specific Source Code/Group.h
Go to the documentation of this file.

    00001 #ifndef GROUP_H
    00002 #define GROUP_H
    00003 #include "Agent.h"
    00004
    00005 #include <iostream>
    00006 #include <cstdlib>
    00007
    00009
    00015 class Group {
    00016
    00017 public:
    00018
    00020
    00023         Group();
    00024
    00029         ~Group();
    00030
    00032
    00044         Group(int nump, int numb,int avgAge, int drop);
    00045
    00047
    00057         Group(int nump, int numb);
    00058
    00059
    00061
    00074         int isGoingToBar(int STI);
    00075
    00077
    00084         int getNumPeeps();
    00085
    00087
    00097         void addAgent(int avgAge, int drop);
    00098
    00100
    00109         void addAgent(Agent* f);
    00110
    00111
    00113
    00122         bool isEmpty(int *g, pass_graph* stuff);
    00123
    00125
    00137         Strategy ** Group::tellWins(int* winners,int STM,int* g);
    00138
    00139 protected:
    00140
    00145         Agent** peeps;
    00146
    00151         int numPeeps;
    00152
    00157         int numBars;
    00158
    00166         int * LTM;
    00167
    00172         int avgAge;
    00173 };
    00174 #endif
    00175
    00176