be.ac.ulg.montefiore.run.totem.repository.SAMTE.model
Class SAMTELoadBalancingLimitationOF

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.repository.SAMTE.model.SAMTELoadBalancingLimitationOF
All Implemented Interfaces:
ObjectiveFunction

public class SAMTELoadBalancingLimitationOF
extends java.lang.Object
implements ObjectiveFunction

Creation date: 25-Feb-2005 12:23:46

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be)

Constructor Summary
SAMTELoadBalancingLimitationOF()
           
SAMTELoadBalancingLimitationOF(double alpha)
           
 
Method Summary
 double evaluate(HeuristicSolution solution)
          Evaluate an heuristic solution
 double evaluate(SAMTESolution solution)
          Evaluate an heuristic solution
 double getAlpha()
           
 java.lang.String getName()
          Get the name of the objective function
 int getNbEvaluated()
           
 long getTimeToEvaluate()
           
 void resetNbEvaluated()
           
 void setAlpha(double alpha)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMTELoadBalancingLimitationOF

public SAMTELoadBalancingLimitationOF()

SAMTELoadBalancingLimitationOF

public SAMTELoadBalancingLimitationOF(double alpha)
Method Detail

getName

public java.lang.String getName()
Get the name of the objective function

Specified by:
getName in interface ObjectiveFunction
Returns:
the name

getAlpha

public double getAlpha()

setAlpha

public void setAlpha(double alpha)

evaluate

public double evaluate(HeuristicSolution solution)
Evaluate an heuristic solution

Specified by:
evaluate in interface ObjectiveFunction
Parameters:
solution -
Returns:
the value of the solution

evaluate

public double evaluate(SAMTESolution solution)
Evaluate an heuristic solution

Parameters:
solution -
Returns:
the value of the solution

getNbEvaluated

public int getNbEvaluated()
Specified by:
getNbEvaluated in interface ObjectiveFunction

resetNbEvaluated

public void resetNbEvaluated()
Specified by:
resetNbEvaluated in interface ObjectiveFunction

getTimeToEvaluate

public long getTimeToEvaluate()
Specified by:
getTimeToEvaluate in interface ObjectiveFunction


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.