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) class
DCcontroller.tuningthread
thread 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.File
adl
file to store the adaptation of the optimal setup found by PAGA in the functionality of the GA(package private) services.VNFgraph
cnet
VNFgraph(package private) int
crpr
Genetic Algorithm parameters(package private) int
d
iteration id(package private) int
dd2
VNFgraph length(package private) Setup
defsetup
default setup(package private) boolean
deletedb
set to true to delete previous knowledge of PAGA(package private) int
duration
embedded VNF maximum life cycle duration(package private) java.lang.String
EVpath
path to stored SFCs(package private) GA
ga
Genetic Algorithm(package private) int
generations
Genetic Algorithm parameters(package private) int
genes
Genetic Algorithm parameters(package private) int
iteration
(package private) int
iterations
number of iterations, in each iteration one request is computed(package private) Kdb
kdb
PAGA setup database(package private) java.io.File
kdbf
kdb storage file(package private) int
mupr
Genetic Algorithm parameters(package private) int
netclasses
number of classes of the network based on traffic load(package private) int
netstat
(package private) boolean
paga
set true to use PAGA(package private) java.lang.String
path
path to log files(package private) network.FTnetwork
pnet
substrate network(package private) int
pnodes
Genetic Algorithm parameters(package private) boolean
popgenheuristic
use population generation heuristic(package private) boolean
printmapping
print mapping on screen(package private) int
r1
specify the VNFgraph file names(package private) int
r2
specify the VNFgraph file names(package private) boolean
rejection
is last request rejected?(package private) int
supergen
Genetic Algorithm parameters(package private) Tuning
tuning
GA 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()
Tuning
getwait()
void
init()
initialize simulationvoid
initsim1(services.VNFgraph vnfgraph, int r, int d)
simulation stage 1void
initsim2(Setup su)
simulation stage 2boolean
isrejected()
is request rejected?void
printmapping(boolean b)
print mapping on screenvoid
setboolparams(boolean[] boolparams)
set boolean parameters for using PAGA and population generation heuristic and for deleting previous stored setups in kdbvoid
setduration(int d)
set durationvoid
setEVpath(java.lang.String s)
set path to the stored VNFgraph filesvoid
setid(int a)
set iteration idvoid
setiterations(int i)
set simulation iterationsvoid
setnetclasses(int cl)
set number of netclassesvoid
setr1r2(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, yield
Methods 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?
-