MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
The mixed-criticality gene represents a place in a schedule for a mixed-criticality job. More...
Public Member Functions | |
CMixedCriticalityGene (CMixedCriticalityInstance instance, int jobIndex) | |
Creates a new CMixedCriticalityGene that represents a place in schedule that will be occupied by the "jobIndex"-th job in the specified mixed- criticality instance. | |
void | setAllele (object value) |
Sets the allele value, i.e. | |
object | getAllele () |
Returns the allele value, i.e. | |
CMixedCriticalityJob | getScheduledJob () |
Returns the mixed-criticality job that has been scheduled in the spot in the schedule that is represente by this gene. | |
object | Clone () |
Returns a copy of this gene. |
The mixed-criticality gene represents a place in a schedule for a mixed-criticality job.
Which job it is depends on the (integer) value of the gene allele and respective MC instance.
MCScheduling.MixedCriticality.GA.CMixedCriticalityGene.CMixedCriticalityGene | ( | CMixedCriticalityInstance | instance, |
int | jobIndex | ||
) |
Creates a new CMixedCriticalityGene that represents a place in schedule that will be occupied by the "jobIndex"-th job in the specified mixed- criticality instance.
instance | The associated mixed-criticality instance. |
jobIndex | The index of the job in the instance. |
object MCScheduling.MixedCriticality.GA.CMixedCriticalityGene.Clone | ( | ) |
Returns a copy of this gene.
object MCScheduling.MixedCriticality.GA.CMixedCriticalityGene.getAllele | ( | ) |
Returns the allele value, i.e.
the index of the job that occupies the spot in the schedule represented by this gene.
Implements MCScheduling.GeneticAlgorithm.IGene.
CMixedCriticalityJob MCScheduling.MixedCriticality.GA.CMixedCriticalityGene.getScheduledJob | ( | ) |
Returns the mixed-criticality job that has been scheduled in the spot in the schedule that is represente by this gene.
void MCScheduling.MixedCriticality.GA.CMixedCriticalityGene.setAllele | ( | object | value | ) |
Sets the allele value, i.e.
the job in the associated mixed-criticality instance that will occupy the spot in the schedule represented by this gene.
value | The index of the job in the associated mixed-criticality instance. |