C# Class MakeClassSchedule.Algorithm.Algorithm

Show file Open project: Behzadkhosravifar/MakeClassSchedule Class Usage Examples

Public Properties

Property Type Description
MultiThreads Thread[]
_prototype Schedule
numCore int

Public Methods

Method Description
Algorithm ( int numberOfChromosomes, int replaceByGeneration, int trackBest, Schedule prototype, Schedule observer ) : System
FreeInstance ( ) : void
GetBestChromosome ( ) : Schedule
GetCurrentGeneration ( ) : int
GetInstance ( ) : Algorithm
GetObserver ( ) : Schedule.ScheduleObserver
Pause ( ) : bool

Pause Running algorithm

Resume ( ) : bool

Resume Stopped algorithm

Start ( ) : bool
Stop ( ) : void

Private Methods

Method Description
AddToBest_Parallel ( int chromosomeIndex ) : void
AddToBest_Sequence ( int chromosomeIndex ) : void
ClearBest_Parallel ( ) : void
ClearBest_Sequence ( ) : void
GA_Start ( object Parallel_Mutex_On ) : void
IsInBest ( int chromosomeIndex ) : bool

Method Details

Algorithm() public method

public Algorithm ( int numberOfChromosomes, int replaceByGeneration, int trackBest, Schedule prototype, Schedule observer ) : System
numberOfChromosomes int
replaceByGeneration int
trackBest int
prototype Schedule
observer Schedule
return System

FreeInstance() public static method

public static FreeInstance ( ) : void
return void

GetBestChromosome() public method

public GetBestChromosome ( ) : Schedule
return Schedule

GetCurrentGeneration() public method

public GetCurrentGeneration ( ) : int
return int

GetInstance() public static method

public static GetInstance ( ) : Algorithm
return Algorithm

GetObserver() public method

public GetObserver ( ) : Schedule.ScheduleObserver
return Schedule.ScheduleObserver

Pause() public method

Pause Running algorithm
public Pause ( ) : bool
return bool

Resume() public method

Resume Stopped algorithm
public Resume ( ) : bool
return bool

Start() public method

public Start ( ) : bool
return bool

Stop() public method

public Stop ( ) : void
return void

Property Details

MultiThreads public property

public Thread[] MultiThreads
return Thread[]

_prototype public property

public Schedule,MakeClassSchedule.Algorithm _prototype
return Schedule

numCore public property

public int numCore
return int