Poster of Linux kernelThe best gift for a Linux geek
PGAGetSelectType

PGAGetSelectType

Section: PGAPack (3) Updated: 05/01/95
Local index Up
 

NAME

PGAGetSelectType - Returns the type of selection selected  

INPUT PARAMETERS

ctx
- context variable
 

OUTPUT PARAMETERS

none

 

SYNOPSIS

#include "pgapack.h"
int  PGAGetSelectType(ctx)
PGAContext *ctx
 

LOCATION

select.c  

EXAMPLE

Example:
PGAContext *ctx;
int selecttype;
:
selecttype = PGAGetSelectType(ctx);
switch (selecttype) {
case PGA_SELECT_PROPORTIONAL:
printf("Selection Type = PGA_SELECT_PROPORTIONAL);
break;
case PGA_SELECT_SUS:
printf("Selection Type = PGA_SELECT_SUS);
break;
case PGA_SELECT_TOURNAMENT:
printf("Selection Type = PGA_SELECT_TOURNAMENT);
break;
case PGA_SELECT_PTOURNAMENT:
printf("Selection Type = PGA_SELECT_PTOURNAMENT);
break;
}


 

Index

NAME
INPUT PARAMETERS
OUTPUT PARAMETERS
SYNOPSIS
LOCATION
EXAMPLE

This document was created by man2html, using the manual pages.
Time: 21:52:25 GMT, April 16, 2011