Ideation Project DA Ruwe
This program provides us with an agent based simulation of an ideation game.
|
Is everything that is uncontrollable by anyone, especially the results of the choices. More...
Public Member Functions | |
void | happens (Period period, Game game) |
Calculates and writes the results of the environmental influences. | |
Static Public Member Functions | |
static double | result_idea () |
Calculates the result of a new idea. | |
static double | probability_idea (double qBest) |
Calculates the probability of achieving a new idea better than certain quality. | |
static double | result_improve (double prevIdeaValue) |
Calculates the result an improvement (success and quality) | |
static double | successProbability_improve (double prevIdeaValue) |
Calculates the success probability of an idea with given quality. | |
static double | quality_improve (double prevIdeaValue) |
Calculates the new quality if an idea is improved successfully. | |
static computerPlayer | result_randomInvite () |
Calculates a partial invite action. | |
Static Public Attributes | |
static final double | newidea_mean = 5 |
Mean for truncated normal distribution before truncation. | |
static final double | newidea_variance = 1 |
Variance for truncated normal distribution before truncation. | |
static final boolean | newidea_truncated = true |
static final double | newidea_truncated_left = 0 |
Left border for truncated normal distribution. | |
static final double | newidea_truncated_right = 10 |
Right border for truncated normal distribution. | |
static final int | numberToInvite = 5 |
The number of agents that are invited per action 'INVITE'. |
In this class we are dealing with those aspects of the game that can be loosely called the environment. The environment or world will be responsible for the results of the choices. Whether an invitation or an idea is successfull, what qualities they will have etc..
The only action that is independent of the environment is leisure which always results in a direct reward. For the other actions this class will provide these attributes:
NEWIDEA
Quality distributed gaussian (truncated according) to DA Ruwe. IMPROVE
Quality distribution. IMPROVE
Success distribution. INVITE
Distirbution of resulting players void ideation.Environment.happens | ( | Period | period, |
Game | game | ||
) |
Should only be called once in each period and that after the agents have made their choices, i.e. after ideation.Agent#play(Period).
period | the period ion which these events are to take place. |
game | the game in which we are playing. |
static double ideation.Environment.probability_idea | ( | double | qBest | ) | [static] |
qBest | quality to be bested |
static double ideation.Environment.quality_improve | ( | double | prevIdeaValue | ) | [static] |
This is a function of its own, so that it can be accessed by anyone who needs it outside. Thereby if we want to change this function we only have to do so here.
The points in the code are neccessary because of javas handling of division for integers!
prevIdeaValue | The quality of the idea that is to be improved. |
static double ideation.Environment.result_idea | ( | ) | [static] |
static double ideation.Environment.result_improve | ( | double | prevIdeaValue | ) | [static] |
prevIdeaValue | The quality of the idea that is to be improved. |
0
if the idea was not successful. static computerPlayer ideation.Environment.result_randomInvite | ( | ) | [static] |
If the action of invitation is picked, multiple computer players get invited. This function calculates the probabilities of successs and the resultant type of an individual invitation. Therefore if the number of agents invited per invite action is foo, this method has to be called foo times.
NONPARTICIPANT
static double ideation.Environment.successProbability_improve | ( | double | prevIdeaValue | ) | [static] |
This is a function of its own, so that it can be accessed by anyone who needs it outside. Thereby if we want to change this function we only have to do so here. The points in the code are neccessary because of javas handling of division for integers!
prevIdeaValue | The quality of the idea that is to be improved. |
final double ideation.Environment.newidea_mean = 5 [static] |
final double ideation.Environment.newidea_truncated_left = 0 [static] |
final double ideation.Environment.newidea_truncated_right = 10 [static] |
final double ideation.Environment.newidea_variance = 1 [static] |
ul> true
Gaussian Truncated Distribution false
Normal Distribution
final int ideation.Environment.numberToInvite = 5 [static] |
Currently this value is set to a default of 5.