FFSM++  1.1.0
French Forest Sector Model ++
testThread Class Reference

#include <Sandbox.h>

Inheritance diagram for testThread:
Collaboration diagram for testThread:

Public Member Functions

 testThread ()
 
void assignJob (TestStructure *agent_h)
 

Protected Member Functions

void run ()
 

Private Attributes

volatile TestStructureagent
 

Detailed Description

Definition at line 77 of file Sandbox.h.

Constructor & Destructor Documentation

Definition at line 1681 of file Sandbox.cpp.

1681  {
1682 
1683 }

Member Function Documentation

void assignJob ( TestStructure agent_h)

Definition at line 1701 of file Sandbox.cpp.

1701  {
1702  agent = agent_h;
1703  agent->cachedOffer = 0;
1704 }
volatile TestStructure * agent
Definition: Sandbox.h:88
double cachedOffer
Definition: Sandbox.h:72
void run ( )
protected

Definition at line 1686 of file Sandbox.cpp.

1686  {
1687 
1688  cout << agent->i << endl;
1689 
1690  double randChange = (0+( (double)rand() / ((double)(RAND_MAX)+(double)(1)) )*(10-0+1))/ (double)100; //rand() must be not thread safe !!!!
1691 
1692  int justn = 10000;
1693  vector <double> takeTimeVector (justn, 0);
1694  for (int i =0; i< justn;i++){
1695  takeTimeVector.at(i)=i*2;
1696  }
1698 }
volatile TestStructure * agent
Definition: Sandbox.h:88
double random
Definition: Sandbox.h:73
double cachedOffer
Definition: Sandbox.h:72

Member Data Documentation

volatile TestStructure* agent
private

Definition at line 88 of file Sandbox.h.


The documentation for this class was generated from the following files: