Ideation Project DA Ruwe
This program provides us with an agent based simulation of an ideation game.
|
Provides a structure for choices. More...
Public Member Functions | |
int | getNewidea () |
int | getImprove () |
int | getInvite () |
int | getLeisure () |
Period | getPeriod () |
Vector< Idea > | getIdeas () |
void | addResult (Idea idea) |
int | getID () |
Agent | getAgent () |
Vector< Idea > | getResults () |
Idea | getImproveBasis1 () |
Idea | getImproveBasis2 () |
Vector< Cheque > | getRewards () |
void | reward (double amount) |
Assigns a reward to a choice and automatically calls ideation.Agent#recordRewardSum(). | |
Static Public Member Functions | |
static choice | randomChoice () |
Give out a random choice from those available. | |
Package Functions | |
Choice (Agent agent, Period period, choice choice, Idea idea1, Idea idea2) | |
external Constructor of a choice, if two ideas are to be improved. | |
Choice (Agent agent, Period period, choice choice, Idea idea1) | |
external Constructor of a choice, if one idea is to be improved. | |
Choice (Agent agent, Period period, choice choice) | |
external Constructor of a choice, if no improvements are made. | |
Choice (choice choice) | |
internal Constructor of a choice | |
Choice () | |
internal Constructor |
In the current modelling of the game there are exactly six action points available and all points must be used up. Therefore the possible choices is only nine (see DA Ruwe). Hence, it is easier to adress the choices and not the actions themselves. This class thereby serves as a link to the actions which will not have to be used and handled in any classes outside this one.
Each agent that makes a choice creates a new object of this type in which all information regarding that draw are kept neatly.
If changes are made to the game that make an influence to the available choices this has to be changed here and depending on how the agents make these choices the heuristics in the class Agent have to be enhanced.
ideation.Choice.Choice | ( | Agent | agent, |
Period | period, | ||
choice | choice, | ||
Idea | idea1, | ||
Idea | idea2 | ||
) | [package] |
agent | the agent that makes its choice. |
period | the period in which the decision takes place. |
choice | an element of the enum choice as defined in Action class: ideation.Action#choice |
idea1 | first idea to be improved. The order does not matter. |
idea2 | second idea to be improved. The order does not matter. |
ideation.Choice.Choice | ( | Agent | agent, |
Period | period, | ||
choice | choice, | ||
Idea | idea1 | ||
) | [package] |
agent | the agent that makes its choice. |
period | the period in which the decision takes place. |
choice | an element of the enum choice as defined in Action class: ideation.Action#choice |
idea1 | idea to be improved. |
ideation.Choice.Choice | ( | Agent | agent, |
Period | period, | ||
choice | choice | ||
) | [package] |
agent | the agent that makes its choice. |
period | the period in which the decision takes place. |
choice | an element of the enum choice as defined in Action class: ideation.Action#choice |
ideation.Choice.Choice | ( | choice | choice | ) | [package] |
choice | an element of the enum choice as defined in Action class: ideation.Action#choice |
void ideation.Choice.addResult | ( | Idea | idea | ) |
idea | an idea that resulted of this choice. |
int ideation.Choice.getID | ( | ) |
Vector<Idea> ideation.Choice.getIdeas | ( | ) |
int ideation.Choice.getImprove | ( | ) |
int ideation.Choice.getInvite | ( | ) |
int ideation.Choice.getLeisure | ( | ) |
int ideation.Choice.getNewidea | ( | ) |
Vector<Idea> ideation.Choice.getResults | ( | ) |
Vector<Cheque> ideation.Choice.getRewards | ( | ) |
static choice ideation.Choice.randomChoice | ( | ) | [static] |
void ideation.Choice.reward | ( | double | amount | ) |
amount | the height of the reward that is attributed to this choice in euro. |