ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
ThinkerPrototype Class Reference

Represents a thinker prototype from which to obtain new instances of the given thinker. More...

+ Inheritance diagram for ThinkerPrototype:
+ Collaboration diagram for ThinkerPrototype:

Public Member Functions

 ThinkerPrototype (string thinkerFQN, string thinkerParams, IMatchConfig matchConfig)
 Create a new instance of this class. More...
 
IThinker Create ()
 Instantiate a new thinker from this prototype. More...
 
override string ToString ()
 Returns name of the underlying thinker. More...
 

Properties

string ThinkerName [get]
 Name of the underlying thinker. More...
 

Detailed Description

Represents a thinker prototype from which to obtain new instances of the given thinker.

Constructor & Destructor Documentation

◆ ThinkerPrototype()

ThinkerPrototype ( string  thinkerFQN,
string  thinkerParams,
IMatchConfig  matchConfig 
)
inline

Create a new instance of this class.

Parameters
thinkerFQNThinker's fully qualified name.
thinkerParamsThinker's configuration parameters.
matchConfigThe configuration for matches where created thinkers will play.
Exceptions
ArgumentExceptionThrown when the thinkerFQN is empty or does not correspond to a known thinker.

Member Function Documentation

◆ Create()

IThinker Create ( )
inline

Instantiate a new thinker from this prototype.

Returns
A new thinker instance.

Implements IThinkerPrototype.

◆ ToString()

override string ToString ( )

Returns name of the underlying thinker.

Returns
Name of the underlying thinker.

Property Documentation

◆ ThinkerName

string ThinkerName
get

Name of the underlying thinker.


The documentation for this class was generated from the following file: