evalgo.algorithms
Class DecentralizedAlgorithm

java.lang.Object
  extended byevalgo.algorithms.AbstractAlgorithm
      extended byevalgo.algorithms.DecentralizedAlgorithm

public class DecentralizedAlgorithm
extends AbstractAlgorithm


Field Summary
(package private)  int[] compIdxWithMinContribution
           
(package private)  int[] currentMapping
           
 double[] historyAvail
           
(package private)  double[] hostScore
           
(package private)  int levelOfAwareness
           
(package private)  double[] memHostsTaken
           
 int numIterations
           
 double originalAvail
           
 
Fields inherited from class evalgo.algorithms.AbstractAlgorithm
avail, id, idealAvail, optimalMapping
 
Constructor Summary
DecentralizedAlgorithm(int en, int ka, int numIt, int pLevelOfAwareness)
           
 
Method Summary
 AlgorithmResult execute()
           
 boolean isMemberOfDomain(int hostA, int hostB, int remainingLevelOfAwareness)
           
 void rankHosts(int compIdx)
           
 
Methods inherited from class evalgo.algorithms.AbstractAlgorithm
calculateAvailability, calculateAvgCompMem, calculateAvgHostMem, calculateAvgRelBetweenHosts, estimateOptimal, estimateRedeploymentTime, ideal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numIterations

public int numIterations

originalAvail

public double originalAvail

historyAvail

public double[] historyAvail

currentMapping

int[] currentMapping

memHostsTaken

double[] memHostsTaken

hostScore

double[] hostScore

compIdxWithMinContribution

int[] compIdxWithMinContribution

levelOfAwareness

int levelOfAwareness
Constructor Detail

DecentralizedAlgorithm

public DecentralizedAlgorithm(int en,
                              int ka,
                              int numIt,
                              int pLevelOfAwareness)
Method Detail

execute

public AlgorithmResult execute()
Specified by:
execute in class AbstractAlgorithm

isMemberOfDomain

public boolean isMemberOfDomain(int hostA,
                                int hostB,
                                int remainingLevelOfAwareness)

rankHosts

public void rankHosts(int compIdx)