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 net
      network object
    • type

      java.lang.String type
      type of network
    • controller

      controller.Controller controller
      network controller
    • cod

      network.Codec cod
    • 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
    • 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
    • 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
  • 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.