evalgo.algorithms
Class ClusterAlgorithm
java.lang.Object
evalgo.algorithms.AbstractAlgorithm
evalgo.algorithms.ClusterAlgorithm
- public class ClusterAlgorithm
- extends AbstractAlgorithm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hostRelFactor
public double hostRelFactor
hostMemFactor
public double hostMemFactor
compFreqFactor
public double compFreqFactor
compMemFactor
public double compMemFactor
numOfMappedHosts
int numOfMappedHosts
numOfMappedComps
int numOfMappedComps
avgMemPerComp
double avgMemPerComp
avgMemPerHost
double avgMemPerHost
hostRelAvgs
double[] hostRelAvgs
hostsLeader
int[] hostsLeader
logicalRel
double[][] logicalRel
ClusterAlgorithm
public ClusterAlgorithm(int en,
int ka)
ClusterAlgorithm
public ClusterAlgorithm(int en,
int ka,
double a,
double b,
double d,
double e)
execute
public AlgorithmResult execute()
- Specified by:
execute in class AbstractAlgorithm
findNextBestComp
private int findNextBestComp(int[] currentlyMapped,
double maxMem,
int currentHost)
findNextBestHost
private int findNextBestHost(int[] currentlyMappedHosts)
findMaxFreqOfComps
public double findMaxFreqOfComps()
findMaxRelOfHosts
public double findMaxRelOfHosts()
findMaxFreqOfUnmappedComps
public double findMaxFreqOfUnmappedComps(int[] currentlyMapped)
findMaxMemOfUnmappedComps
public double findMaxMemOfUnmappedComps(int[] currentlyMapped)
findMaxRelOfUnmappedHosts
public double findMaxRelOfUnmappedHosts(int[] currentlyMappedHosts)
findMaxMemOfUnmappedHosts
public double findMaxMemOfUnmappedHosts(int[] currentlyMappedHosts)
findMax
public int findMax(double[] a,
int length)
findMin
public int findMin(double[] a,
int length)
calculateAvailability
public double calculateAvailability(int[] currMapping)
- Overrides:
calculateAvailability in class AbstractAlgorithm