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 | Package Functions
ideation.TestCase Class Reference
Inheritance diagram for ideation.TestCase:
Inheritance graph
[legend]
Collaboration diagram for ideation.TestCase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void run ()
 Run the test case by creating game after game with the test case specifications and.
void end ()

Static Public Member Functions

static void main (String[] args)
 The global main method for the project - Pass the name of the input xml from the command line.
static heuristic intToType (int i)
 Converts an integer to a heuristic enum.
static int typeToInt (heuristic heuristic)
 Converts a heuristic enum to an integer.

Static Public Attributes

static String userinput_xmlIn
 The name of the input xml as full or relative path.
static String userinput_directoryOut
 The name of the output directory as full or relative path.
static String userinput_directoryStylesheets
 The name of the directory containing the supplied (xslt) stylesheets.
static String userinput_directoryScripts
 The name of the directory containing the supplied (R) scripts.

Package Functions

 TestCase ()
 Internal Constructor.
 TestCase (String xmlInFilename)
 External Constructor (takes input xml as argument).

Constructor & Destructor Documentation

ideation.TestCase.TestCase ( String  xmlInFilename) [package]

This is the main constructor for this class and indeed program. It creates an instance of a TestCase. Usually it can be expected that only one Test Case per program run will be needed but we can expand. In the latter case it might be possible that not all static fields may remain so and the main method has to be redone.

Parameters:
xmlInFilenameThe Filename of the input xml with format as specified in the documentation.

Member Function Documentation

static heuristic ideation.TestCase.intToType ( int  i) [static]

Makes it easier to parse the input xml. Of course there could be heuristics given as string literals, but this just creates so much error possibilities and is not really handy.

It can be argued that this should be in the interface Heuristic, but it is not since an interface cannot hold non abstract methods. Maybe we should move it to test case...

  • 1 for CPINVENTOR
  • 2 for CPCOMMENTATOR
  • 3 for CPCIRCULATOR
  • 4 for CPRANDOM
  • 5 for CPNONPARTICIPANT (doubtfully wanted)
  • 6 for INVENTOR
  • 7 for COMMENTATOR
  • 8 for CIRCULATOR
  • 9 for LEISURELOVER
  • 10 for PrivateOneSuffFavImp
  • 11 for PrivateOneSuffFavNew
  • 12 for PrivateTwoSuffFavImp
  • 13 for PrivateTwoSuffFavNew
  • 14 for CollaborativeBorderOne,
  • 15 for CollaborativeBorderTwo,
  • 16 for CollaborativeBorderThree
  • 16 for ErraticPlayer
  • 18 place your algorithm here for a modest fee...
Parameters:
inumber which gets translates into a heuristic.
Returns:
corresponding heuristic if there is one, otherwise LEISURELOVER
static void ideation.TestCase.main ( String[]  args) [static]

This method is the main program in essence. It should be kept simple and sub methods should only contain one task.*

static int ideation.TestCase.typeToInt ( heuristic  heuristic) [static]

Makes it easier to analyse the data with statistical methods. *

  • 1 for CPINVENTOR
  • 2 for CPCOMMENTATOR
  • 3 for CPCIRCULATOR
  • 4 for CPRANDOM
  • 5 for CPNONPARTICIPANT (doubtfully wanted)
  • 6 for INVENTOR
  • 7 for COMMENTATOR
  • 8 for CIRCULATOR
  • 9 for LEISURELOVER
  • 10 for PrivateOneSuffFavImp
  • 11 for PrivateOneSuffFavNew
  • 12 for PrivateTwoSuffFavImp
  • 13 for PrivateTwoSuffFavNew
  • 14 for CollaborativeBorderOne,
  • 15 for CollaborativeBorderTwo,
  • 16 for CollaborativeBorderThree
  • 16 for ErraticPlayer
  • 18 place your algorithm here for a modest fee...
Parameters:
heuristicheuristic which gets translates into a number.
Returns:
corresponding integer if there is one, otherwise 8

Member Data Documentation


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