Package sfc_ft_b
Class Tuning
java.lang.Object
sfc_ft_b.Tuning
public class Tuning
extends java.lang.Object
orchestrates the tuning of the Embedding Genetic Algorithm
by running the Parameter Adjustment Genetic Algorithm
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
checked
are parameter and profiel files checked?(package private) services.VNFgraph
cnet2
VNFgraph(package private) java.lang.String[]
command
tokens of the PAGA variables(package private) double
crossprob
PAGA parameterGA_b
ga
object that implements the PAGA(package private) int
generations
PAGA parameter(package private) double
mutprob
PAGA parameter(package private) java.lang.String
p
names of the settings and profile files(package private) int[][]
parameter_dom
variable domains(package private) network.FTnetwork
pnet2
substrate network(package private) int
population
PAGA parameter(package private) java.lang.String
s
names of the settings and profile files(package private) int
supergenerations
PAGA parameter(package private) java.lang.String
target
tokens of the PAGA variables(package private) java.lang.String[]
tokens
tokens of the PAGA variables(package private) java.lang.String[][]
variables
tokens of the PAGA variables(package private) boolean
wait
should wait for PAGA procedure to wait? -
Constructor Summary
Constructors Constructor Description Tuning()
construct Tuning and input parameters and variables from files -
Method Summary
Modifier and Type Method Description void
checkfiles(java.lang.String p, java.lang.String s)
checks if files exit and if they are validvoid
checkvars()
checks the validity of profile and settings filesprivate void
initga()
void
initTuning()
initialize tuning procedurevoid
loadgraphs(services.VNFgraph incnet, network.FTnetwork inpnet)
load substrate network and VNFgraphvoid
setprofile(java.io.File pr)
loads profile from filevoid
setsettings(java.io.File st)
loads settings from filevoid
setwait(boolean w)
boolean
shouldwait()
should wait for PAGA procedure to wait?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
p
java.lang.String pnames of the settings and profile files -
s
java.lang.String snames of the settings and profile files -
population
int populationPAGA parameter -
generations
int generationsPAGA parameter -
supergenerations
int supergenerationsPAGA parameter -
crossprob
double crossprobPAGA parameter -
mutprob
double mutprobPAGA parameter -
checked
boolean checkedare parameter and profiel files checked? -
wait
boolean waitshould wait for PAGA procedure to wait? -
command
java.lang.String[] commandtokens of the PAGA variables -
tokens
java.lang.String[] tokenstokens of the PAGA variables -
target
java.lang.String targettokens of the PAGA variables -
variables
java.lang.String[][] variablestokens of the PAGA variables -
parameter_dom
int[][] parameter_domvariable domains -
ga
object that implements the PAGA -
pnet2
network.FTnetwork pnet2substrate network -
cnet2
services.VNFgraph cnet2VNFgraph
-
-
Constructor Details
-
Tuning
public Tuning()construct Tuning and input parameters and variables from files
-
-
Method Details
-
loadgraphs
public void loadgraphs(services.VNFgraph incnet, network.FTnetwork inpnet)load substrate network and VNFgraph -
initga
private void initga() -
initTuning
public void initTuning()initialize tuning procedure -
shouldwait
public boolean shouldwait()should wait for PAGA procedure to wait? -
setwait
public void setwait(boolean w) -
checkfiles
public void checkfiles(java.lang.String p, java.lang.String s)checks if files exit and if they are valid -
setsettings
public void setsettings(java.io.File st)loads settings from file -
setprofile
public void setprofile(java.io.File pr)loads profile from file -
checkvars
public void checkvars()checks the validity of profile and settings files
-