TAncTabSet

List of ancestors:
TObj
Files:
tabset.h, tabset.cpp

Desc. & Idea Warnings Methods Attributes Operators Specials

 

Abstract  Abstract

Virtual  Virtual Overridden  Overridden
Key, Important  Key, Important Constructor  Constructor Destructor  Destructor
Methods beginning with Get or Set (get/set) are usually intended to access Attributes of same name (exceptions will be marked).

 

Description

The class is a wrapper for any "Tablesetting utility". Defines methods to create, manage and delete representants of TPopulation and operators of a Genetic algorithm. Also enables to load and save these from and to TParamFile, so they can be later retived and used be a real Genetic Algorithm, probably TGACover or its descendant.
eye.gif (947 bytes)gatabs.h, gatools.h, gaunom.h, gafunc.h, gaslct.h

Title

 

Warnings

This class is more an abstract predecessor, even i contains no absract methods. It   impelements all the managing abilities, but needs some visualization.

Title

 

Methods

Public:

VirtualKey, Important TParamFile* BuildParamFile(char *WithFilename=NULL)
VirtualKey, Important void Clear()
VirtualKey, Important BOOL DelItem(BYTE idx)
VirtualKey, Important BOOL DelPop(uint idx)
BOOL getDefault()
char *getFilename()
BOOL getNoEvent()
TSetPop *getPop(BYTE index)
BYTE getPopCount()
char *getTablename()
TSetItem *getTool(BYTE index)
BYTE getToolCount()
VirtualKey, Important BOOL InsItem(char *KindName,TToolKind aKind,uint pos, char *AName = "")
VirtualKey, Important BOOL InsPop(uint pos)
VirtualKey, Important BOOL IsOK()
Key, Important BOOL Load(char *aFilename)
VirtualKey, Important TAncTabSet *MakeBrother(char *AName)
VirtualKey, Important BOOL MoveItem(BYTE from, BYTE to)
BOOL NameExist(char *AName,TNameList *Except=NULL)
VirtualKey, Important BOOL NewItem(char *KindName,TToolKind aKind, char *AName = "")
VirtualKey, Important BOOL NewPop()
VirtualKey, Important void OnChange()
Virtual void PutPars(TParamFile &Target,TParamFile &NeededParams)
Key, Important BOOL Save(char *aFilename=NULL)
void setFilename(char *val)
void setTablename(char *val)
ConstructorKey, Important TAncTabSet(char *aFilename, TNameList *FirstName=NULL)
Constructor TAncTabSet(TParamFile *SourceParams=NULL,char *aTablename=DEFAULTTABLE, TNameList *FirstName=NULL)
Destructor ~TAncTabSet()

Protected:

void ProduceFrom(TParamFile *src)

Private:

TParamFile* DigSrcParFile(TParamFile *From)
char *Flush1(char *Source,char *TypeBuf,char *NameBuf,uint &Num1)
char *Flush2(char *Source,char *TypeBuf,char *NameBuf,uint &Num1,uint &Num2)
char *Flush3(char *Source,char *TypeBuf,char *NameBuf,uint &Num1,uint &Num2,BOOL &Move,uint &Count)

Title


int MyFce(void)

Here write method's description.

Arguments:

Returns:

Section Title



Attributes

Public:

Protected:

Key, Important
TNameList *Names
Key, Important TParamFile *Params
Key, Important TSetPop *Pops[MAXVECI]
Key, Important char *Tablename
Key, Important TSetItem *Tools[MAXVECI]

Private:

BOOL Default
TFlag DefFlag
BOOL NoEvent
Key, Important BYTE PopCount
uint PopIndex
Key, Important BYTE ToolCount

 

Title


 

int MyAtribute

Here write attribute's description.

Section Title


Operators

Public:

Protected:

Private:

Title


Specials

 

Title