NetworkVm

public class NetworkVm extends VmSimple

NetworkVm class extends VmSimple to support simulation of networked datacenters. It executes actions related to management of packets (sent and received).

Please refer to following publication for more details:

Author:Saurabh Kumar Garg

Constructors

NetworkVm

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

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
  • numberOfPes – amount of Pe (CPU cores)

NetworkVm

public NetworkVm(long mipsCapacity, int numberOfPes)

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
  • numberOfPes – amount of Pe (CPU cores)

Methods

compareTo

public int compareTo(Vm o)

getCloudletList

public List<NetworkCloudlet> getCloudletList()

List of NetworkCloudlet of the VM.

getFinishTime

public double getFinishTime()

The time when the VM finished to process its cloudlets.

getReceivedPacketList

public List<VmPacket> getReceivedPacketList()

List of packets received by the VM.

isFree

public boolean isFree()

Indicates if the VM is free or not.

setCloudletList

public void setCloudletList(List<NetworkCloudlet> cloudletList)

setFinishTime

public void setFinishTime(double finishTime)

setFree

public void setFree(boolean free)

setReceivedPacketList

public void setReceivedPacketList(List<VmPacket> receivedPacketList)