Package hda_hg_a
Class GAmetaorchestrator
java.lang.Object
java.lang.Thread
hda_hg_a.GAmetaorchestrator
- All Implemented Interfaces:
java.lang.Runnable
public class GAmetaorchestrator
extends java.lang.Thread
PoP-level orchestrator running GA
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler -
Field Summary
Fields Modifier and Type Field Description (package private) java.io.Fileadlfile to store the adaptation of the optimal setup found by PAGA in the functionality of the GA(package private) services.HDAgraphcnetHDA-graph(package private) intcrprGenetic Algorithm parameters(package private) intditeration id(package private) intdd2HDA-graph length(package private) Setupdefsetupdefault setup(package private) booleandeletedbset to true to delete previous knowledge of PAGA(package private) intdurationembedded VN maximum life cycle duration(package private) java.lang.StringEVpathpath to stored HDA-graph files(package private) GAgaGenetic Algorithm(package private) intgenerationsGenetic Algorithm parameters(package private) intgenesGenetic Algorithm parameters(package private) intiteration(package private) intiterationsnumber of iterations, in each iteration one request is computed(package private) Kdbkdbsetup database(package private) java.io.Filekdbfkdb storage file(package private) int[]mproduced mapping(package private) intmuprGenetic Algorithm parameters(package private) intnetclassesnumber of classes of the network based on traffic load(package private) intnetstat(package private) java.lang.Stringpathpath to log files(package private) network.DCnetworkpnetsubstrate network(package private) intpnodesGenetic Algorithm parameters(package private) booleanpopgenheuristicuse population generation heuristic(package private) booleanprintmappingprint mapping on screen(package private) intr1specify the HDA-graph file names(package private) intr2specify the HDA-graph file names(package private) booleanrejectionis last request rejected?(package private) intsupergenGenetic Algorithm parametersFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors Constructor Description GAmetaorchestrator(network.DCnetwork net, Setup setup, services.HDAgraph hdagraph)initialize network object, setup database, delete old log files -
Method Summary
Modifier and Type Method Description int[]getmapping()get mappingvoidinit()initialize simulationvoidinitsim1(services.HDAgraph hdagraph, int r, int d)simulation stage 1voidinitsim2(Setup su)simulation stage 2booleanisrejected()is request rejected?voidprintmapping(boolean b)print mapping on screenvoidsetboolparams(boolean[] boolparams)set boolean parameters for using PAGA and population generation heuristic and for deleting previous stored setups in kdbvoidsetduration(int d)set durationvoidsetEVpath(java.lang.String s)set path to the stored HDA-graph filesvoidsetid(int a)set iteration idvoidsetiterations(int i)set simulation iterationsvoidsetnetclasses(int cl)set number of netclassesvoidsetr1r2(int ra1, int ra2)set parameters that determine HDA-graph filenamesMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yieldMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
pnodes
int pnodesGenetic Algorithm parameters -
genes
int genesGenetic Algorithm parameters -
generations
int generationsGenetic Algorithm parameters -
supergen
int supergenGenetic Algorithm parameters -
mupr
int muprGenetic Algorithm parameters -
crpr
int crprGenetic Algorithm parameters -
r1
int r1specify the HDA-graph file names -
r2
int r2specify the HDA-graph file names -
d
int diteration id -
dd2
int dd2HDA-graph length -
netstat
int netstat -
iteration
int iteration -
ga
GA gaGenetic Algorithm -
kdb
Kdb kdbsetup database -
deletedb
boolean deletedbset to true to delete previous knowledge of PAGA -
popgenheuristic
boolean popgenheuristicuse population generation heuristic -
defsetup
Setup defsetupdefault setup -
netclasses
int netclassesnumber of classes of the network based on traffic load -
m
int[] mproduced mapping -
cnet
services.HDAgraph cnetHDA-graph -
pnet
network.DCnetwork pnetsubstrate network -
printmapping
boolean printmappingprint mapping on screen -
iterations
int iterationsnumber of iterations, in each iteration one request is computed -
duration
int durationembedded VN maximum life cycle duration -
rejection
boolean rejectionis last request rejected? -
EVpath
java.lang.String EVpathpath to stored HDA-graph files -
path
java.lang.String pathpath to log files -
kdbf
java.io.File kdbfkdb storage file -
adl
java.io.File adlfile to store the adaptation of the optimal setup found by PAGA in the functionality of the GA
-
-
Constructor Details
-
GAmetaorchestrator
initialize network object, setup database, delete old log files
-
-
Method Details
-
setduration
public void setduration(int d)set duration -
setiterations
public void setiterations(int i)set simulation iterations -
setEVpath
public void setEVpath(java.lang.String s)set path to the stored HDA-graph files -
setnetclasses
public void setnetclasses(int cl)set number of netclasses -
setr1r2
public void setr1r2(int ra1, int ra2)set parameters that determine HDA-graph filenames -
setboolparams
public void setboolparams(boolean[] boolparams)set boolean parameters for using PAGA and population generation heuristic and for deleting previous stored setups in kdb -
setid
public void setid(int a)set iteration id -
printmapping
public void printmapping(boolean b)print mapping on screen -
init
public void init()initialize simulation -
initsim1
public void initsim1(services.HDAgraph hdagraph, int r, int d)simulation stage 1 -
initsim2
simulation stage 2 -
getmapping
public int[] getmapping()get mapping -
isrejected
public boolean isrejected()is request rejected?
-