\hypertarget{class_chromozome}{}\section{Chromozome Class Reference}
\label{class_chromozome}\index{Chromozome@{Chromozome}}


Trida reprezentujici chromozom pro T\+SP.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_chromozome_a4cb0cf4608465028520d9a9bcfc89dc5}{Chromozome} (int num\+Of\+Genes)
\item 
\hyperlink{class_chromozome_ac8bb1966e0bad2b887c8d17fb09840db}{Chromozome} (int size, int value)
\item 
void \hyperlink{class_chromozome_a04048c0cc0f6b088f794d628368c2590}{print\+Chromozome} ()
\item 
int \hyperlink{class_chromozome_afa1489b0be8e5129aa75fbce516b9996}{get\+Chromozome\+Size} ()
\item 
int \hyperlink{class_chromozome_a220a2c3261f651a01cda0b8384e295bc}{get\+Value\+Of\+Gene} (int position)
\item 
void \hyperlink{class_chromozome_ae97de14320a86e2b2e128f2d632bce87}{set\+Fitness} (double fitness)
\item 
double \hyperlink{class_chromozome_ae1fe97f478cb3ea142572161a2c18947}{get\+Fitness} ()
\item 
double {\bfseries get\+Special\+Fitness} ()\hypertarget{class_chromozome_a95f61a6b9bd11016a6bec91ecb6366f6}{}\label{class_chromozome_a95f61a6b9bd11016a6bec91ecb6366f6}

\item 
void {\bfseries set\+Special\+Fitness} (double special\+Fitness)\hypertarget{class_chromozome_a48b76afb02691af2ae189335f1f23640}{}\label{class_chromozome_a48b76afb02691af2ae189335f1f23640}

\item 
void \hyperlink{class_chromozome_a4c0f167bd8f7e895b0926f4dce73e373}{set\+Gene} (int gene, int pos)
\item 
Array\+List$<$ Integer $>$ \hyperlink{class_chromozome_aea85ebeb41f993c59606d27d877e84ef}{get} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Trida reprezentujici chromozom pro T\+SP. 

\begin{DoxyAuthor}{Author}
Jan Nemec 
\end{DoxyAuthor}


\subsection{Constructor \& Destructor Documentation}
\index{Chromozome@{Chromozome}!Chromozome@{Chromozome}}
\index{Chromozome@{Chromozome}!Chromozome@{Chromozome}}
\subsubsection[{\texorpdfstring{Chromozome(int num\+Of\+Genes)}{Chromozome(int numOfGenes)}}]{\setlength{\rightskip}{0pt plus 5cm}Chromozome.\+Chromozome (
\begin{DoxyParamCaption}
\item[{int}]{num\+Of\+Genes}
\end{DoxyParamCaption}
)}\hypertarget{class_chromozome_a4cb0cf4608465028520d9a9bcfc89dc5}{}\label{class_chromozome_a4cb0cf4608465028520d9a9bcfc89dc5}
Konstruktor, ktery vytvari kompletni chromozom a naplni jej hodnotami. 
\begin{DoxyParams}{Parameters}
{\em num\+Of\+Genes} & Pocet genu v chromozomu \\
\hline
\end{DoxyParams}
\index{Chromozome@{Chromozome}!Chromozome@{Chromozome}}
\index{Chromozome@{Chromozome}!Chromozome@{Chromozome}}
\subsubsection[{\texorpdfstring{Chromozome(int size, int value)}{Chromozome(int size, int value)}}]{\setlength{\rightskip}{0pt plus 5cm}Chromozome.\+Chromozome (
\begin{DoxyParamCaption}
\item[{int}]{size, }
\item[{int}]{value}
\end{DoxyParamCaption}
)}\hypertarget{class_chromozome_ac8bb1966e0bad2b887c8d17fb09840db}{}\label{class_chromozome_ac8bb1966e0bad2b887c8d17fb09840db}
Konstruktor, ktery vytvari chromozom naplneny libovolnymi hodnotami 
\begin{DoxyParams}{Parameters}
{\em size} & Velikost chromozomu \\
\hline
{\em value} & Hodnota \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{Chromozome@{Chromozome}!get@{get}}
\index{get@{get}!Chromozome@{Chromozome}}
\subsubsection[{\texorpdfstring{get()}{get()}}]{\setlength{\rightskip}{0pt plus 5cm}Array\+List$<$Integer$>$ Chromozome.\+get (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\hypertarget{class_chromozome_aea85ebeb41f993c59606d27d877e84ef}{}\label{class_chromozome_aea85ebeb41f993c59606d27d877e84ef}
Funkce, ktera vraci privatni promenou Array\+List, ktera slouzi k ukladani jednotlivych genu. \begin{DoxyReturn}{Returns}
Promena Array\+List 
\end{DoxyReturn}
\index{Chromozome@{Chromozome}!get\+Chromozome\+Size@{get\+Chromozome\+Size}}
\index{get\+Chromozome\+Size@{get\+Chromozome\+Size}!Chromozome@{Chromozome}}
\subsubsection[{\texorpdfstring{get\+Chromozome\+Size()}{getChromozomeSize()}}]{\setlength{\rightskip}{0pt plus 5cm}int Chromozome.\+get\+Chromozome\+Size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\hypertarget{class_chromozome_afa1489b0be8e5129aa75fbce516b9996}{}\label{class_chromozome_afa1489b0be8e5129aa75fbce516b9996}
Funkce, ktera vraci velikost chromozomu. \begin{DoxyReturn}{Returns}
Velikost chromozomu 
\end{DoxyReturn}
\index{Chromozome@{Chromozome}!get\+Fitness@{get\+Fitness}}
\index{get\+Fitness@{get\+Fitness}!Chromozome@{Chromozome}}
\subsubsection[{\texorpdfstring{get\+Fitness()}{getFitness()}}]{\setlength{\rightskip}{0pt plus 5cm}double Chromozome.\+get\+Fitness (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\hypertarget{class_chromozome_ae1fe97f478cb3ea142572161a2c18947}{}\label{class_chromozome_ae1fe97f478cb3ea142572161a2c18947}
Funkce, ktera vraci hodnotu fitness pro dany chromozom. \begin{DoxyReturn}{Returns}
Hodnota fitness 
\end{DoxyReturn}
\index{Chromozome@{Chromozome}!get\+Value\+Of\+Gene@{get\+Value\+Of\+Gene}}
\index{get\+Value\+Of\+Gene@{get\+Value\+Of\+Gene}!Chromozome@{Chromozome}}
\subsubsection[{\texorpdfstring{get\+Value\+Of\+Gene(int position)}{getValueOfGene(int position)}}]{\setlength{\rightskip}{0pt plus 5cm}int Chromozome.\+get\+Value\+Of\+Gene (
\begin{DoxyParamCaption}
\item[{int}]{position}
\end{DoxyParamCaption}
)}\hypertarget{class_chromozome_a220a2c3261f651a01cda0b8384e295bc}{}\label{class_chromozome_a220a2c3261f651a01cda0b8384e295bc}
Funkce, ktera vraci hodnotu jednoho vybraneho genu v chromozomu. 
\begin{DoxyParams}{Parameters}
{\em position} & Pozice genu \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Hodnota genu 
\end{DoxyReturn}
\index{Chromozome@{Chromozome}!print\+Chromozome@{print\+Chromozome}}
\index{print\+Chromozome@{print\+Chromozome}!Chromozome@{Chromozome}}
\subsubsection[{\texorpdfstring{print\+Chromozome()}{printChromozome()}}]{\setlength{\rightskip}{0pt plus 5cm}void Chromozome.\+print\+Chromozome (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\hypertarget{class_chromozome_a04048c0cc0f6b088f794d628368c2590}{}\label{class_chromozome_a04048c0cc0f6b088f794d628368c2590}
Funkce slouzici k vytisteni chromozomu. \index{Chromozome@{Chromozome}!set\+Fitness@{set\+Fitness}}
\index{set\+Fitness@{set\+Fitness}!Chromozome@{Chromozome}}
\subsubsection[{\texorpdfstring{set\+Fitness(double fitness)}{setFitness(double fitness)}}]{\setlength{\rightskip}{0pt plus 5cm}void Chromozome.\+set\+Fitness (
\begin{DoxyParamCaption}
\item[{double}]{fitness}
\end{DoxyParamCaption}
)}\hypertarget{class_chromozome_ae97de14320a86e2b2e128f2d632bce87}{}\label{class_chromozome_ae97de14320a86e2b2e128f2d632bce87}
Funkce, ktera slouzi k nastaveni hodnoty fitness pro chromozom 
\begin{DoxyParams}{Parameters}
{\em fitness} & Hodnota fitness \\
\hline
\end{DoxyParams}
\index{Chromozome@{Chromozome}!set\+Gene@{set\+Gene}}
\index{set\+Gene@{set\+Gene}!Chromozome@{Chromozome}}
\subsubsection[{\texorpdfstring{set\+Gene(int gene, int pos)}{setGene(int gene, int pos)}}]{\setlength{\rightskip}{0pt plus 5cm}void Chromozome.\+set\+Gene (
\begin{DoxyParamCaption}
\item[{int}]{gene, }
\item[{int}]{pos}
\end{DoxyParamCaption}
)}\hypertarget{class_chromozome_a4c0f167bd8f7e895b0926f4dce73e373}{}\label{class_chromozome_a4c0f167bd8f7e895b0926f4dce73e373}
Funkce, ktera nastavuje hodnotu genu na vybrane pozici v chormozomu. 
\begin{DoxyParams}{Parameters}
{\em gene} & Hodnota genu \\
\hline
{\em pos} & Pozice genu \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
src/Chromozome.\+java\end{DoxyCompactItemize}
