Package controller
Class Main
java.lang.Object
controller.Main
public class Main
extends java.lang.Object
Coordinates simulation.
-
Field Summary
Fields Modifier and Type Field Description (package private) network.Codec
cod
(package private) controller.Controller
controller
network controller(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
iterations
number of iterations(package private) int
k
k parameter; different usage in different topologies(package private) int
maxsfcsize
(package private) java.lang.Double
mode
algorithm mode(package private) network.Network
net
network object(package private) java.lang.Double
nodecapacity
node capacity(package private) java.io.File
parametersfile
parameters file(package private) java.lang.String
path
path to log files(package private) int
r1
specify the VNFgraph file names(package private) int
r2
specify the VNFgraph file names(package private) int
servperrack
servers per rack(package private) long
totalTime
runtime(package private) java.lang.String
type
type of network(package private) java.lang.String
vnfgraphs
path to VNFgraph files -
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
Modifier and Type Method Description void
init()
Run simulation procedure.static void
main(java.lang.String[] args)
Read parameters file and initialize simulation.void
setparameters()
Read simulation parameters from file.void
time()
Compute runtime.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
net
network.Network netnetwork object -
type
java.lang.String typetype of network -
controller
controller.Controller controllernetwork controller -
cod
network.Codec cod -
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 -
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 -
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 maxsfcsize
-
-
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 file. -
init
public void init()Run simulation procedure. -
time
public void time()Compute runtime.
-