Package sfc_ft_a
Class DCcontroller
java.lang.Object
java.lang.Thread
sfc_ft_a.DCcontroller
- All Implemented Interfaces:
java.lang.Runnable
public class DCcontroller
extends java.lang.Thread
DC controller running GA
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classDCcontroller.tuningthreadthread that runs tuning procedure (PAGA)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.VNFgraphcnetVNFgraph(package private) intcrprGenetic Algorithm parameters(package private) intditeration id(package private) intdd2VNFgraph length(package private) Setupdefsetupdefault setup(package private) booleandeletedbset to true to delete previous knowledge of PAGA(package private) intdurationembedded VNF maximum life cycle duration(package private) java.lang.StringEVpathpath to stored SFCs(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) KdbkdbPAGA setup database(package private) java.io.Filekdbfkdb storage file(package private) intmuprGenetic Algorithm parameters(package private) intnetclassesnumber of classes of the network based on traffic load(package private) intnetstat(package private) booleanpagaset true to use PAGA(package private) java.lang.Stringpathpath to log files(package private) network.FTnetworkpnetsubstrate network(package private) intpnodesGenetic Algorithm parameters(package private) booleanpopgenheuristicuse population generation heuristic(package private) booleanprintmappingprint mapping on screen(package private) intr1specify the VNFgraph file names(package private) intr2specify the VNFgraph file names(package private) booleanrejectionis last request rejected?(package private) intsupergenGenetic Algorithm parameters(package private) TuningtuningGA tuning mechanism (PAGA)Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors Constructor Description DCcontroller(network.FTnetwork net, Setup setup, services.VNFgraph vnfgraph)initialize network object, setup database, delete old log files -
Method Summary
Modifier and Type Method Description int[]getmapping()Tuninggetwait()voidinit()initialize simulationvoidinitsim1(services.VNFgraph vnfgraph, 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 VNFgraph 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 VNFgraph 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 VNFgraph file names -
r2
int r2specify the VNFgraph file names -
d
int diteration id -
dd2
int dd2VNFgraph length -
netstat
int netstat -
iteration
int iteration -
ga
GA gaGenetic Algorithm -
kdb
Kdb kdbPAGA setup database -
deletedb
boolean deletedbset to true to delete previous knowledge of PAGA -
paga
boolean pagaset true to use PAGA -
popgenheuristic
boolean popgenheuristicuse population generation heuristic -
defsetup
Setup defsetupdefault setup -
tuning
Tuning tuningGA tuning mechanism (PAGA) -
netclasses
int netclassesnumber of classes of the network based on traffic load -
cnet
services.VNFgraph cnetVNFgraph -
pnet
network.FTnetwork pnetsubstrate network -
printmapping
boolean printmappingprint mapping on screen -
iterations
int iterationsnumber of iterations, in each iteration one request is computed -
duration
int durationembedded VNF maximum life cycle duration -
rejection
boolean rejectionis last request rejected? -
EVpath
java.lang.String EVpathpath to stored SFCs -
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
-
DCcontroller
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 VNFgraph files -
setnetclasses
public void setnetclasses(int cl)set number of netclasses -
setr1r2
public void setr1r2(int ra1, int ra2)set parameters that determine VNFgraph 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 -
getmapping
public int[] getmapping() -
init
public void init()initialize simulation -
initsim1
public void initsim1(services.VNFgraph vnfgraph, int r, int d)simulation stage 1 -
getwait
-
initsim2
simulation stage 2 -
isrejected
public boolean isrejected()is request rejected?
-