MS-RCPSP
Public Member Functions | Public Attributes | List of all members
SchedulingProblem::PrioSchedule Class Reference

Representation of schedule that uses task priorities. More...

#include <PrioSchedule.h>

Inheritance diagram for SchedulingProblem::PrioSchedule:
Inheritance graph
[legend]
Collaboration diagram for SchedulingProblem::PrioSchedule:
Collaboration graph
[legend]

Public Member Functions

 PrioSchedule (int *_ires, int *_prio)
 
 PrioSchedule (PrioSchedule *s)
 
int compute_fitness () override
 
bool operator== (PrioSchedule s) const
 
void reset () override
 
- Public Member Functions inherited from SchedulingProblem::Schedule
void printState (bool short_output)
 
void writeToFile (FILE *stream)
 
int size ()
 
int fitness ()
 
int resource (int i) const
 
int max_res_count (int i) const
 

Public Attributes

int * prio
 
int * business
 
- Public Attributes inherited from SchedulingProblem::Schedule
int * ires
 
int * start
 

Additional Inherited Members

- Protected Member Functions inherited from SchedulingProblem::Schedule
 Schedule (int *_ires)
 
int finish_time (int i) const
 
- Protected Attributes inherited from SchedulingProblem::Schedule
int n
 
int _fitness = -1
 
Task ** tasks
 

Detailed Description

Representation of schedule that uses task priorities.

This schedule representation introduces task priorities, so that when a resource can execute several tasks at some point, he always executes the task with the biggest priority, as opposed to executing random task as in SimpleSchedule.

Definition at line 21 of file PrioSchedule.h.

Member Function Documentation

int SchedulingProblem::PrioSchedule::compute_fitness ( )
overridevirtual

Computes fitness and writes it to Schedule::_fitness cache variable.

Implements SchedulingProblem::Schedule.

Definition at line 119 of file PrioSchedule.cpp.

bool SchedulingProblem::PrioSchedule::operator== ( PrioSchedule  s) const

Checks schedule equality in terms of representation.

Definition at line 13 of file PrioSchedule.cpp.

void SchedulingProblem::PrioSchedule::reset ( )
overridevirtual

Reset schedule representation to random state.

Implements SchedulingProblem::Schedule.

Definition at line 137 of file PrioSchedule.cpp.

Member Data Documentation

int* SchedulingProblem::PrioSchedule::business

Businesses of resources. Used to implement LAXCrossover.

Definition at line 34 of file PrioSchedule.h.

int* SchedulingProblem::PrioSchedule::prio

Task priorities.

Definition at line 31 of file PrioSchedule.h.


The documentation for this class was generated from the following files: