MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Public Member Functions
MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator Class Reference

Evaluates the energy of the given state as a convex sum of the makespan and lateness of the corresponding solution schedule. More...

Inheritance diagram for MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator:
MCScheduling.SimulatedAnnealing.IEvaluator< T >

List of all members.

Public Member Functions

 CMinimumMakespanLatenessEvaluator (CMixedCriticalityInstance instance)
 Creates the MinimumMakespanLatenessEvaluator with makespan and lateness factors set to 0.5.
 CMinimumMakespanLatenessEvaluator (CMixedCriticalityInstance instance, double makespanFactor, double latenessFactor)
 Creates the MinimumMakespanLatenessEvaluator for the specified lateness, makespan weighting factor.
double getMakespanFactor ()
 Returns the makespan factor.
void setMakespanFactor (double makespanFactor)
 Sets the makespan factor.
double getLatenessFactor ()
 Returns the lateness factor.
void setLatenessFactor (double latenessFactor)
 Sets the lateness factor.
CMixedCriticalityInstance getInstace ()
 Returns the mixed-criticality instance associated with the solution.
void setInstance (CMixedCriticalityInstance instance)
 Sets the mixed-criticality instance associated with the solution.
double Evaluate (CSimulatedAnnealingState state)
 Calculates and returns the value of the energy (quality) of the specified state.

Detailed Description

Evaluates the energy of the given state as a convex sum of the makespan and lateness of the corresponding solution schedule.


Constructor & Destructor Documentation

MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator.CMinimumMakespanLatenessEvaluator ( CMixedCriticalityInstance  instance)

Creates the MinimumMakespanLatenessEvaluator with makespan and lateness factors set to 0.5.

Parameters:
instanceThe mixed-criticality instance associated with a solution.
MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator.CMinimumMakespanLatenessEvaluator ( CMixedCriticalityInstance  instance,
double  makespanFactor,
double  latenessFactor 
)

Creates the MinimumMakespanLatenessEvaluator for the specified lateness, makespan weighting factor.

Parameters:
instanceThe mixed-criticality instance associated with a solution.
makespanFactorThe weight of makespan.
latenessFactorThe weight of lateness.

Member Function Documentation

double MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator.Evaluate ( CSimulatedAnnealingState  state)

Calculates and returns the value of the energy (quality) of the specified state.

Parameters:
stateThe state to be evaluated.
Returns:
The value of the energy (quality) of the state.
double MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator.getLatenessFactor ( )

Returns the lateness factor.

Returns:
The lateness factor.
double MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator.getMakespanFactor ( )

Returns the makespan factor.

Returns:
The makespan factor.
void MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator.setInstance ( CMixedCriticalityInstance  instance)

Sets the mixed-criticality instance associated with the solution.

Parameters:
instanceThe MC instance associated with the solution.
void MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator.setLatenessFactor ( double  latenessFactor)

Sets the lateness factor.

Parameters:
latenessFactorThe new lateness factor value.
void MCScheduling.MixedCriticality.SA.CMixedCriticalitySimulatedAnnealing.CMinimumMakespanLatenessEvaluator.setMakespanFactor ( double  makespanFactor)

Sets the makespan factor.

Parameters:
makespanFactorThe new makespan factor value.
 All Classes Namespaces Functions Variables Properties