Class NetworkVm
java.lang.Object
org.cloudbus.cloudsim.core.CustomerEntityAbstract
org.cloudbus.cloudsim.vms.VmSimple
org.cloudbus.cloudsim.vms.network.NetworkVm
- All Implemented Interfaces:
java.lang.Comparable<Vm>
,AbstractMachine
,ChangeableId
,CustomerEntity
,Delayable
,Identifiable
,UniquelyIdentifiable
,TimeZoned
,Resourceful
,Vm
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:
- Since:
- CloudSim Toolkit 3.0
- Author:
- Saurabh Kumar Garg
-
Field Summary
-
Constructor Summary
Constructors Constructor Description 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.NetworkVm(long mipsCapacity, int numberOfPes)
Creates a NetworkVm with 1024 MEGA of RAM, 1000 Megabits/s of Bandwidth and 1024 MEGA of Storage Size. -
Method Summary
Modifier and Type Method Description int
compareTo(Vm o)
Compare this Vm with another one based onVmSimple.getTotalMipsCapacity()
.java.util.List<NetworkCloudlet>
getCloudletList()
List ofNetworkCloudlet
of the VM.double
getFinishTime()
The time when the VM finished to process its cloudlets.java.util.List<VmPacket>
getReceivedPacketList()
List of packets received by the VM.boolean
isFree()
Indicates if the VM is free or not.void
setCloudletList(java.util.List<NetworkCloudlet> cloudletList)
void
setFinishTime(double finishTime)
void
setFree(boolean free)
void
setReceivedPacketList(java.util.List<VmPacket> receivedPacketList)
Methods inherited from class org.cloudbus.cloudsim.vms.VmSimple
addExpectedFreePesNumber, addOnCreationFailureListener, addOnHostAllocationListener, addOnHostDeallocationListener, addOnUpdateProcessingListener, addStateHistoryEntry, allocateResource, deallocateResource, equals, getBw, getBwVerticalScaling, getCloudletScheduler, getCpuPercentUtilization, getCpuPercentUtilization, getCurrentRequestedBw, getCurrentRequestedMaxMips, getCurrentRequestedMips, getCurrentRequestedRam, getCurrentRequestedTotalMips, getDefaultBwCapacity, getDefaultRamCapacity, getDefaultStorageCapacity, getDescription, getExpectedFreePesNumber, getExpectedHostCpuUtilization, getFreePesNumber, getGroup, getHorizontalScaling, getHost, getHostBwUtilization, getHostCpuUtilization, getHostRamUtilization, getLastBusyTime, getMips, getNumberOfPes, getPeVerticalScaling, getProcessor, getRam, getRamVerticalScaling, getResources, getStartTime, getStateHistory, getStopTime, getStorage, getSubmissionDelay, getTimeZone, getTotalCpuMipsUtilization, getTotalCpuMipsUtilization, getTotalExecutionTime, getTotalMipsCapacity, getUtilizationHistory, getVmm, hasStartedSomeCloudlet, isCreated, isFailed, isInMigration, isSuitableForCloudlet, isWorking, notifyOnCreationFailureListeners, notifyOnHostAllocationListeners, notifyOnHostDeallocationListeners, notifyOnUpdateProcessingListeners, removeExpectedFreePesNumber, removeOnCreationFailureListener, removeOnHostAllocationListener, removeOnHostDeallocationListener, removeOnUpdateProcessingListener, setBw, setBwVerticalScaling, setCloudletScheduler, setCreated, setDefaultBwCapacity, setDefaultRamCapacity, setDefaultStorageCapacity, setDescription, setFailed, setFreePesNumber, setGroup, setHorizontalScaling, setHost, setInMigration, setMips, setPeVerticalScaling, setRam, setRamVerticalScaling, setSize, setStartTime, setStopTime, setSubmissionDelay, setTimeZone, setVmm, toString, updateProcessing, updateProcessing
Methods inherited from class org.cloudbus.cloudsim.core.CustomerEntityAbstract
getBroker, getId, getLastTriedDatacenter, getSimulation, getUid, hashCode, setBroker, setId, setLastTriedDatacenter
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.cloudbus.cloudsim.core.AbstractMachine
getIdleInterval, getSimulation, isIdle
Methods inherited from interface org.cloudbus.cloudsim.core.CustomerEntity
getLastTriedDatacenter, getSimulation, setLastTriedDatacenter
Methods inherited from interface org.cloudbus.cloudsim.vms.Vm
getBroker, getHostCpuUtilization, isIdleEnough, setBroker
-
Constructor Details
-
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 Vmis not created inside a Host
, such values can be changed freely. -
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 Vmis 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
.
-
-
Method Details
-
isFree
public boolean isFree()Indicates if the VM is free or not. -
compareTo
Description copied from class:VmSimple
Compare this Vm with another one based onVmSimple.getTotalMipsCapacity()
. -
getCloudletList
List ofNetworkCloudlet
of the VM. -
setCloudletList
-
getReceivedPacketList
List of packets received by the VM. -
setReceivedPacketList
-
setFree
public void setFree(boolean free) -
getFinishTime
public double getFinishTime()The time when the VM finished to process its cloudlets. -
setFinishTime
public void setFinishTime(double finishTime)
-