也是遗传算法的源代码

源代码在线查看: instance.h

软件大小: 429 K
上传用户: kuaile13y
关键词: 算法 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				/***************************************************************************				                          instance.h  -  description				                             -------------------				    begin                : Sat Dec 22 2001				    copyright            : (C) 2001 by Rudiger Koch				    email                : rudiger_koch@yahoo.com				 ***************************************************************************/								/***************************************************************************				 *                                                                         *				 *   This program is free software; you can redistribute it and/or modify  *				 *   it under the terms of the GNU General Public License as published by  *				 *   the Free Software Foundation; either version 2 of the License, or     *				 *   (at your option) any later version.                                   *				 *                                                                         *				 ***************************************************************************/								#ifndef INSTANCE_H				#define INSTANCE_H												#include 								#include 								/** @class Instance instance.h amygdala/instance.h				  * Basic properties of a Network instance. There are 3 types of instances: 				  * 1. a local instance. This instance resides in the same physical memory on a				  *    SMP host				  * 2. an instance on a TCP/IP network. In this case, the instance object holds				  *    all information needed to send UDP datagrams to that instance. (TODO)				  * 3. an MPI instance. ( TODO )				  *@author R黡iger Koch				  */								class Instance {				public:				//	Instance(UDP stuff);				//	Instance(MPI stuff);								  /** @param instID the instance ID this instance will have */					Instance(unsigned int instId);					Instance(MpNetwork* net);					~Instance();				  /** @return the MpNetwork object associated to this instance */				  MpNetwork* GetNetwork();				  /** @return the instance id */				  unsigned int GetId();				  void SetNetworkThread(pthread_t *nt);				  /** @return the thread object, or NULL if no multithreading in this Node */				  pthread_t* GetNetworkThread();				protected: // Protected attributes				  /** If this is a local instance */				  MpNetwork* network;				  /** The instance ID */				  unsigned int id;				  /** references the thread in case this is a local instance */				  pthread_t* networkThread;				};								#endif							

相关资源