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 1661 of file Sandbox.cpp.

1661  {
1662 
1663 }

Member Function Documentation

void assignJob ( TestStructure agent_h)

Definition at line 1681 of file Sandbox.cpp.

1681  {
1682  agent = agent_h;
1683  agent->cachedOffer = 0;
1684 }
volatile TestStructure * agent
Definition: Sandbox.h:88
double cachedOffer
Definition: Sandbox.h:72
void run ( )
protected

Definition at line 1666 of file Sandbox.cpp.

1666  {
1667 
1668  cout << agent->i << endl;
1669 
1670  double randChange = (0+( (double)rand() / ((double)(RAND_MAX)+(double)(1)) )*(10-0+1))/ (double)100; //rand() must be not thread safe !!!!
1671 
1672  int justn = 10000;
1673  vector <double> takeTimeVector (justn, 0);
1674  for (int i =0; i< justn;i++){
1675  takeTimeVector.at(i)=i*2;
1676  }
1678 }
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: