evalgo.algorithms
Class AbstractAlgorithm

java.lang.Object
  extended byevalgo.algorithms.AbstractAlgorithm
Direct Known Subclasses:
ClusterAlgorithm, DecentralizedAlgorithm, ExactAlgorithm, ExactAlgorithmWithConstraints, IterativeSmarterPolynomialAlgorithm, OldStochasticAlgorithm, OldStochasticAlgorithmWithConstraints, SmarterPolynomialAlgorithm, SmarterPolynomialAlgorithmWithConstraints, StochasticAlgorithm, StochasticAlgorithmWithConstraints, UltimateAlgorithm

public abstract class AbstractAlgorithm
extends java.lang.Object


Field Summary
 double avail
           
 InputData id
           
 double idealAvail
           
 int[] optimalMapping
           
 
Constructor Summary
AbstractAlgorithm()
           
 
Method Summary
 double calculateAvailability(int[] currMapping)
           
 double calculateAvgCompMem()
           
 double calculateAvgHostMem()
           
 double calculateAvgRelBetweenHosts()
           
 double estimateOptimal()
           
 double estimateRedeploymentTime(int[] mapping)
           
abstract  AlgorithmResult execute()
           
 void ideal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public InputData id

idealAvail

public double idealAvail

optimalMapping

public int[] optimalMapping

avail

public double avail
Constructor Detail

AbstractAlgorithm

public AbstractAlgorithm()
Method Detail

execute

public abstract AlgorithmResult execute()

calculateAvailability

public double calculateAvailability(int[] currMapping)

ideal

public void ideal()

estimateOptimal

public double estimateOptimal()

calculateAvgHostMem

public double calculateAvgHostMem()

calculateAvgCompMem

public double calculateAvgCompMem()

calculateAvgRelBetweenHosts

public double calculateAvgRelBetweenHosts()

estimateRedeploymentTime

public double estimateRedeploymentTime(int[] mapping)