#include <Manager_space.h>
Inheritance diagram for Manager_space:
Public Member Functions | |
Manager_space (ThreadManager *MTHREAD_h, string name_h) | |
virtual | ~Manager_space () |
void | assignSpatialObjectsToAgents () |
virtual void | setAgentMoulds ()=0 |
Init the moulds. | |
virtual void | assignPlot (Pixel *plot_h, Agent_space *agent_h, double rentalCost=0, int assignmentType=PLOTS_RENTED)=0 |
Assign a plot to a specific agent. | |
virtual void | landAllocation ()=0 |
This is the interface agent_side. All (or most.. now we'll see) function should be "virtual", as they should be coded according with the specific agent type.
This is the base class for all the manager objects with space geolocalization:
Manager_base --> Manager_nospace --> ...
Manager_base --> manager_space --> ...
Definition at line 45 of file Manager_space.h.
Manager_space | ( | ThreadManager * | MTHREAD_h, | |
string | name_h | |||
) |
Definition at line 26 of file Manager_space.cpp.
~Manager_space | ( | ) | [virtual] |
Definition at line 31 of file Manager_space.cpp.
void assignSpatialObjectsToAgents | ( | ) | [virtual] |
Retrive the pixels owned and rented by each farms and call on each of them initObjects().
Reimplemented from Manager_base.
Definition at line 39 of file Manager_space.cpp.
virtual void setAgentMoulds | ( | ) | [pure virtual] |
Init the moulds.
This abstract virtual function when applyed to the various manager, make them to "create" the moulds for their agents according to their specific code
Implements Manager_base.
Implemented in Manager_farmers.
virtual void assignPlot | ( | Pixel * | plot_h, | |
Agent_space * | agent_h, | |||
double | rentalCost = 0 , |
|||
int | assignmentType = PLOTS_RENTED | |||
) | [pure virtual] |
Assign a plot to a specific agent.
assignmentType,: | plot type: PLOTS_OWNED, PLOTS_RENTED(d) |
Implemented in Manager_farmers.
virtual void landAllocation | ( | ) | [pure virtual] |
Implemented in Manager_farmers.