Package simulator
Class Main
java.lang.Object
java.lang.Thread
simulator.Main
- All Implemented Interfaces:
java.lang.Runnable
public class Main
extends java.lang.Thread
Simulator.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
Main.printinline
Thread for printing messages in output(package private) class
Main.printout
Thread for printing messages in output(package private) class
Main.storedeviation
Thread for storing constraint deviationNested 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) boolean[]
boolparams
GA boolean parameters for running PAGA; delete previous setups; heuristic population generation(package private) services.Broker
broker
Broker that partitions a VNF-graph(package private) network.Codec
codec
Edge Vector coder-decoder(package private) int
crossprob2
GA parameterSetup
#2; used in DC embedding(package private) boolean
deletemodels
(package private) int
domains
number of domains(package private) boolean
domisrejected
Embedding is rejected.(package private) int
duration
VNF lifecycle duration(package private) java.lang.String
filename
name of simulation log file(package private) int
fnodes
parameter to define number of nodes in the cluster(package private) int
generations2
GA parameterSetup
#2; used in DC embeddingjava.util.ArrayList<java.lang.Integer>
hgmapping
(package private) double
interdcbandwidth
(package private) int
iterations
number of iterations(package private) int
k
k parameter; different usage in different topologies(package private) int
maxsfcsize
Maximum SFC size(package private) java.lang.Double
mode
algorithm mode(package private) int
mutprob2
GA parameterSetup
#2; used in DC embedding(package private) int
netclasses
network traffic classification parameter; used in PAGA(package private) network.FTnetwork[]
nets
array of networks(package private) java.lang.Double
nodecapacity
node capacity(package private) int
numofstakeholders
(package private) java.io.File
parametersfile
parameters file(package private) java.lang.String
path
path to log files(package private) int
popsize2
GA parameterSetup
#2; used in DC embedding(package private) int
r1
specify the VNFgraph file names(package private) int
r2
specify the VNFgraph file names(package private) int[]
randomparams
Parameters for random VNF-graph definition.(package private) int
sdeviation
deviation from spatial constraints(package private) int
servperrack
servers per rack(package private) java.util.ArrayList<services.Stakeholder>
stakeholders
The stakeholders of the network(package private) java.lang.String
stakeholdersfile
(package private) boolean
storestats
(package private) int
supergens2
GA parameterSetup
#2; used in DC embedding(package private) long
totalTime
runtime(package private) java.lang.String
type
type of network(package private) java.lang.String
vnfgraphs
path to VNFgraph filesFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
Modifier and Type Method Description void
init()
Check parameter validityvoid
init2()
Run simulation procedure.static void
main(java.lang.String[] args)
Read parameters file and initialize simulation.void
printsfcs(int d)
Print embedded SFCsvoid
setparameters()
Read simulation parameters from "parameters" file.void
setstakeholdersparams()
set stakeholders parametersprivate void
singledomainDDLembedding(int d, services.VNFgraph vnfgraph)
Single DC DDL algorithmprivate void
singledomainGAembedding(int d, services.VNFgraph vnfgraph)
Single DC GA algorithmvoid
time()
Compute runtime.Methods 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
-
domains
int domainsnumber of domains -
nets
network.FTnetwork[] netsarray of networks -
type
java.lang.String typetype of network -
codec
network.Codec codecEdge Vector coder-decoder -
path
java.lang.String pathpath to log files -
vnfgraphs
java.lang.String vnfgraphspath to VNFgraph files -
servperrack
int servperrackservers per rack -
k
int kk parameter; different usage in different topologies -
stakeholders
java.util.ArrayList<services.Stakeholder> stakeholdersThe stakeholders of the network -
duration
int durationVNF lifecycle duration -
iterations
int iterationsnumber of iterations -
nodecapacity
java.lang.Double nodecapacitynode capacity -
filename
java.lang.String filenamename of simulation log file -
broker
services.Broker brokerBroker that partitions a VNF-graph -
parametersfile
java.io.File parametersfileparameters file -
r1
int r1specify the VNFgraph file names -
r2
int r2specify the VNFgraph file names -
fnodes
int fnodesparameter to define number of nodes in the cluster -
totalTime
long totalTimeruntime -
mode
java.lang.Double modealgorithm mode -
maxsfcsize
int maxsfcsizeMaximum SFC size -
randomparams
int[] randomparamsParameters for random VNF-graph definition. -
domisrejected
boolean domisrejectedEmbedding is rejected. -
numofstakeholders
int numofstakeholders -
stakeholdersfile
java.lang.String stakeholdersfile -
storestats
boolean storestats -
deletemodels
boolean deletemodels -
netclasses
int netclassesnetwork traffic classification parameter; used in PAGA -
popsize2
int popsize2GA parameterSetup
#2; used in DC embedding -
generations2
int generations2GA parameterSetup
#2; used in DC embedding -
supergens2
int supergens2GA parameterSetup
#2; used in DC embedding -
crossprob2
int crossprob2GA parameterSetup
#2; used in DC embedding -
mutprob2
int mutprob2GA parameterSetup
#2; used in DC embedding -
boolparams
boolean[] boolparamsGA boolean parameters for running PAGA; delete previous setups; heuristic population generation -
sdeviation
int sdeviationdeviation from spatial constraints -
hgmapping
public java.util.ArrayList<java.lang.Integer> hgmapping -
interdcbandwidth
double interdcbandwidth
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
public static void main(java.lang.String[] args)Read parameters file and initialize simulation. -
setparameters
public void setparameters()Read simulation parameters from "parameters" file. -
init
public void init()Check parameter validity -
init2
public void init2()Run simulation procedure. -
singledomainDDLembedding
private void singledomainDDLembedding(int d, services.VNFgraph vnfgraph)Single DC DDL algorithm -
singledomainGAembedding
private void singledomainGAembedding(int d, services.VNFgraph vnfgraph)Single DC GA algorithm -
printsfcs
public void printsfcs(int d)Print embedded SFCs -
setstakeholdersparams
public void setstakeholdersparams()set stakeholders parameters -
time
public void time()Compute runtime.
-