Ideation Project DA Ruwe
This program provides us with an agent based simulation of an ideation game.
 All Classes Functions Variables
Public Member Functions | Static Public Member Functions | Static Public Attributes
ideation.Environment Class Reference

Is everything that is uncontrollable by anyone, especially the results of the choices. More...

Inheritance diagram for ideation.Environment:
Inheritance graph
[legend]
Collaboration diagram for ideation.Environment:
Collaboration graph
[legend]

List of all members.

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'.

Detailed Description

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:

Author:
Ruediger Ruwe <ruediger.ruwe @ rwth-aachen.de>
Version:
1.0
Since:
01.06.2012

Member Function Documentation

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).

Parameters:
periodthe period ion which these events are to take place.
gamethe game in which we are playing.
static double ideation.Environment.probability_idea ( double  qBest) [static]
Parameters:
qBestquality to be bested
Returns:
probability of achieving a better result with new idea.
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!

Parameters:
prevIdeaValueThe quality of the idea that is to be improved.
Returns:
The quality of the new idea.
static double ideation.Environment.result_idea ( ) [static]
Returns:
The quality of the new idea.
static double ideation.Environment.result_improve ( double  prevIdeaValue) [static]
Parameters:
prevIdeaValueThe quality of the idea that is to be improved.
Returns:
  • 0 if the idea was not successful.
  • the quality of the created improvement if the idea was successful.

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.

Returns:
  • successful invitation: a valid computer player heuristic.
  • unsuccesful invitation: 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!

Parameters:
prevIdeaValueThe quality of the idea that is to be improved.
Returns:
The probability of success.

Member Data Documentation

final double ideation.Environment.newidea_mean = 5 [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.


The documentation for this class was generated from the following file:
 All Classes Functions Variables