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 | Package Functions
ideation.Choice Class Reference

Provides a structure for choices. More...

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

List of all members.

Public Member Functions

int getNewidea ()
int getImprove ()
int getInvite ()
int getLeisure ()
Period getPeriod ()
Vector< IdeagetIdeas ()
void addResult (Idea idea)
int getID ()
Agent getAgent ()
Vector< IdeagetResults ()
Idea getImproveBasis1 ()
Idea getImproveBasis2 ()
Vector< ChequegetRewards ()
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

Detailed Description

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.

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

Constructor & Destructor Documentation

ideation.Choice.Choice ( Agent  agent,
Period  period,
choice  choice,
Idea  idea1,
Idea  idea2 
) [package]
Parameters:
agentthe agent that makes its choice.
periodthe period in which the decision takes place.
choicean element of the enum choice as defined in Action class: ideation.Action#choice
idea1first idea to be improved. The order does not matter.
idea2second idea to be improved. The order does not matter.
ideation.Choice.Choice ( Agent  agent,
Period  period,
choice  choice,
Idea  idea1 
) [package]
Parameters:
agentthe agent that makes its choice.
periodthe period in which the decision takes place.
choicean element of the enum choice as defined in Action class: ideation.Action#choice
idea1idea to be improved.
ideation.Choice.Choice ( Agent  agent,
Period  period,
choice  choice 
) [package]
Parameters:
agentthe agent that makes its choice.
periodthe period in which the decision takes place.
choicean element of the enum choice as defined in Action class: ideation.Action#choice
ideation.Choice.Choice ( choice  choice) [package]
Parameters:
choicean element of the enum choice as defined in Action class: ideation.Action#choice

Member Function Documentation

Parameters:
ideaan idea that resulted of this choice.
Returns:
agent agent
Returns:
choiceID choiceID
Returns:
resultIdeas resultIdeas
Returns:
improve improve
Returns:
improveIdeaOne improveIdeaOne
Returns:
improveIdeaTwo improveIdeaTwo
Returns:
invite invite
Returns:
leisure leisure
Returns:
newidea newidea
Returns:
period period
Returns:
resultIdeas resultIdeas
Returns:
rewards rewards
static choice ideation.Choice.randomChoice ( ) [static]
Returns:
A random choice from the enum Action.choice
void ideation.Choice.reward ( double  amount)
Parameters:
amountthe height of the reward that is attributed to this choice in euro.

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