nucad.cpp File Reference


Detailed Description

Implementation of nucad binary used to run the (r)evolution.

Definition in file nucad.cpp.

#include "config.h"
#include "CaDesigner.h"
#include "CaFactory.h"
#include "Color.h"
#include <ga/GAStatistics.h>

Include dependency graph for nucad.cpp:

Go to the source code of this file.

Functions

template<typename OBSERVER, typename SUBJECT, typename ARG>
OBSERVER * createAttached (SUBJECT *subject, ARG &arg)
 Create observer observer and attach it to subject.
int main (int argc, char *argv[])


Function Documentation

OBSERVER* createAttached ( SUBJECT *  subject,
ARG &  arg 
) [inline]

Create observer observer and attach it to subject.

Parameters:
OBSERVER Observer's class to create and attach.
subject ISubject object ought to be observed.
arg Object, pointer or reference given to observer as a second parameter.
Returns:
Return newly created observer which is already attached to subject.

Definition at line 49 of file nucad.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 55 of file nucad.cpp.

References C_LIGHT_GREEN, C_LIGHT_RED, C_NO_COLOR, C_YELLOW, CaDesigner::create(), CaEvaluatorFactory::create(), Color::enable(), GA_MAX_RUNS, GA_MAX_SLNS, GA_MAX_TIME_PER_RUN, GA_MIN_SLNS, and FitnessWatch::reset().

Here is the call graph for this function:


Generated on Sat May 2 16:39:34 2009 for nucad by  doxygen 1.5.4