Class NetworkVm

All Implemented Interfaces:
Comparable<Vm>, ChangeableId, CustomerEntity, ExecDelayable, Identifiable, Lifetimed, Machine<Resource>, ResourceStatsComputer<VmResourceStats>, Startable, SubmissionDelayable, UniquelyIdentifiable, TimeZoned, Resourceful, Vm

public class NetworkVm extends VmSimple

A Vm supporting simulation of network communication. It executes actions related to management of packets (sent and received).

Please refer to the following publication for more details:

Since:
CloudSim Toolkit 3.0
Author:
Saurabh Kumar Garg
  • Field Details

  • Constructor Details

    • NetworkVm

      public NetworkVm(int id, long mipsCapacity, int pesNumber)

      Creates a NetworkVm with 1024 MEGA of RAM, 1000 Megabits/s of Bandwidth and 1024 MEGA of Storage Size.

      To change these values, use the respective setters. While the Vm is not created inside a Host, such values can be changed freely.

      Parameters:
      id - unique ID of the VM
      mipsCapacity - the mips capacity of each Vm Pe
      pesNumber - amount of Pe (CPU cores)
    • NetworkVm

      public NetworkVm(long mipsCapacity, int pesNumber)

      Creates a NetworkVm with 1024 MEGA of RAM, 1000 Megabits/s of Bandwidth and 1024 MEGA of Storage Size. To change these values, use the respective setters. While the Vm is not created inside a Host, such values can be changed freely.

      It is not defined an id for the Vm. The id is defined when the Vm is submitted to a DatacenterBroker.

      Parameters:
      mipsCapacity - the mips capacity of each Vm Pe
      pesNumber - amount of Pe (CPU cores)
  • Method Details

    • getHost

      public NetworkHost getHost()
      Description copied from interface: Vm
      Gets the Host where the Vm is or will be placed. To know if the Vm was already created inside this Host, call the Vm.isCreated() method.
      Returns:
      the Host
      See Also:
    • setHost

      public Vm setHost(Host host)
      Description copied from class: VmAbstract
      Sets the PM that hosts the VM.
      Overrides:
      setHost in class VmAbstract
      Parameters:
      host - Host to run the VM
      Returns:
      this Vm