MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Public Member Functions
MCScheduling.MixedCriticality.GA.CMixedCriticalityGene Class Reference

The mixed-criticality gene represents a place in a schedule for a mixed-criticality job. More...

Inheritance diagram for MCScheduling.MixedCriticality.GA.CMixedCriticalityGene:
MCScheduling.GeneticAlgorithm.IGene

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
instanceThe associated mixed-criticality instance.
jobIndexThe index of the job in the instance.

Member Function Documentation

object MCScheduling.MixedCriticality.GA.CMixedCriticalityGene.Clone ( )

Returns a copy of this gene.

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.

Returns:
The index of a job in the associated mixed-criticality instance.

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.

Returns:
The scheduled mixed-criticality job.
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.

Parameters:
valueThe index of the job in the associated mixed-criticality instance.
 All Classes Namespaces Functions Variables Properties