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 deviation

    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) 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 parameter Setup #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 parameter Setup #2; used in DC embedding
    java.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 parameter Setup #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 parameter Setup #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 parameter Setup #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 files

    Fields 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 validity
    void init2()
    Run simulation procedure.
    static void main​(java.lang.String[] args)
    Read parameters file and initialize simulation.
    void printsfcs​(int d)
    Print embedded SFCs
    void setparameters()
    Read simulation parameters from "parameters" file.
    void setstakeholdersparams()
    set stakeholders parameters
    private void singledomainDDLembedding​(int d, services.VNFgraph vnfgraph)
    Single DC DDL algorithm
    private void singledomainGAembedding​(int d, services.VNFgraph vnfgraph)
    Single DC GA algorithm
    void 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 domains
      number of domains
    • nets

      network.FTnetwork[] nets
      array of networks
    • type

      java.lang.String type
      type of network
    • codec

      network.Codec codec
      Edge Vector coder-decoder
    • path

      java.lang.String path
      path to log files
    • vnfgraphs

      java.lang.String vnfgraphs
      path to VNFgraph files
    • servperrack

      int servperrack
      servers per rack
    • k

      int k
      k parameter; different usage in different topologies
    • stakeholders

      java.util.ArrayList<services.Stakeholder> stakeholders
      The stakeholders of the network
    • duration

      int duration
      VNF lifecycle duration
    • iterations

      int iterations
      number of iterations
    • nodecapacity

      java.lang.Double nodecapacity
      node capacity
    • filename

      java.lang.String filename
      name of simulation log file
    • broker

      services.Broker broker
      Broker that partitions a VNF-graph
    • parametersfile

      java.io.File parametersfile
      parameters file
    • r1

      int r1
      specify the VNFgraph file names
    • r2

      int r2
      specify the VNFgraph file names
    • fnodes

      int fnodes
      parameter to define number of nodes in the cluster
    • totalTime

      long totalTime
      runtime
    • mode

      java.lang.Double mode
      algorithm mode
    • maxsfcsize

      int maxsfcsize
      Maximum SFC size
    • randomparams

      int[] randomparams
      Parameters for random VNF-graph definition.
    • domisrejected

      boolean domisrejected
      Embedding is rejected.
    • numofstakeholders

      int numofstakeholders
    • stakeholdersfile

      java.lang.String stakeholdersfile
    • storestats

      boolean storestats
    • deletemodels

      boolean deletemodels
    • netclasses

      int netclasses
      network traffic classification parameter; used in PAGA
    • popsize2

      int popsize2
      GA parameter Setup #2; used in DC embedding
    • generations2

      int generations2
      GA parameter Setup #2; used in DC embedding
    • supergens2

      int supergens2
      GA parameter Setup #2; used in DC embedding
    • crossprob2

      int crossprob2
      GA parameter Setup #2; used in DC embedding
    • mutprob2

      int mutprob2
      GA parameter Setup #2; used in DC embedding
    • boolparams

      boolean[] boolparams
      GA boolean parameters for running PAGA; delete previous setups; heuristic population generation
    • sdeviation

      int sdeviation
      deviation 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.