The Needs class provides methods for interacting with the satisfaction levels of agents.
More...
The Needs class provides methods for interacting with the satisfaction levels of agents.
Discrete states of satisfaction levels.
Enumerator |
---|
Unvalued |
Unfortunately no discrete value of the need satisfaction levels is available.
|
Maximized |
The satisfaction level of the need is maximized.
|
Satisfied |
The need is satisfied, but not yet maximized.
|
Uncritical |
The need is below the satisfied limit, but not yet critical
|
Critical |
The need satisfaction level is below or equal to the target value for critical satisfaction.
|
Simulation.Needs.Needs |
( |
Species |
species | ) |
|
Constructor
- Parameters
-
species | The species that the agent owning this set of needs belongs to |
void Simulation.Needs.ApplyChangePerSecond |
( |
| ) |
|
Apply the change per second rates, that is decay (or increase) each need with its default global change per second rate
void Simulation.Needs.ApplyChangeRates |
( |
Dictionary< string, float > |
input | ) |
|
Apply a specific set of change rates, for example the change rates provided by an interaction.
- Parameters
-
float Simulation.Needs.GetValue |
( |
string |
key | ) |
|
- Parameters
-
- Returns
- The satisfaction level for the specified need. NaN if the key is invalid.
Goal Simulation.Needs.GoalToSatisfyLowestNeed |
( |
| ) |
|
Compute a goal to satisfy the numerically lowest need.
- Returns
void Simulation.Needs.RandomizeValues |
( |
| ) |
|
Set a random value for each need satisfation
The discrete satisfaction states for each need
- Returns
- A dictionary which has the discrete states as values for each need.
void Simulation.Needs.SetSpecficSatisfactionLevels |
( |
Dictionary< string, float > |
needLevels | ) |
|
Set the level of each need satisfaction to a particular value
- Parameters
-
needLevels | The new satisfaction levels |
The documentation for this class was generated from the following file: