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) booleancheckedare parameter and profiel files checked?(package private) services.VNFgraphcnet2VNFgraph(package private) java.lang.String[]commandtokens of the PAGA variables(package private) doublecrossprobPAGA parameterGA_bgaobject that implements the PAGA(package private) intgenerationsPAGA parameter(package private) doublemutprobPAGA parameter(package private) java.lang.Stringpnames of the settings and profile files(package private) int[][]parameter_domvariable domains(package private) network.FTnetworkpnet2substrate network(package private) intpopulationPAGA parameter(package private) java.lang.Stringsnames of the settings and profile files(package private) intsupergenerationsPAGA parameter(package private) java.lang.Stringtargettokens of the PAGA variables(package private) java.lang.String[]tokenstokens of the PAGA variables(package private) java.lang.String[][]variablestokens of the PAGA variables(package private) booleanwaitshould 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 voidcheckfiles(java.lang.String p, java.lang.String s)checks if files exit and if they are validvoidcheckvars()checks the validity of profile and settings filesprivate voidinitga()voidinitTuning()initialize tuning procedurevoidloadgraphs(services.VNFgraph incnet, network.FTnetwork inpnet)load substrate network and VNFgraphvoidsetprofile(java.io.File pr)loads profile from filevoidsetsettings(java.io.File st)loads settings from filevoidsetwait(boolean w)booleanshouldwait()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
-