Class NetworkVm
java.lang.Object
org.cloudbus.cloudsim.core.CustomerEntityAbstract
org.cloudbus.cloudsim.vms.VmSimple
org.cloudbus.cloudsim.vms.network.NetworkVm
- All Implemented Interfaces:
Comparable<Vm>
,AbstractMachine<Resource>
,ChangeableId
,CustomerEntity
,Delayable
,Identifiable
,ResourceStatsComputer<VmResourceStats>
,UniquelyIdentifiable
,TimeZoned
,Resourceful
,Vm
A Vm supporting simulation of network communication.
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
Fields inherited from interface org.cloudbus.cloudsim.datacenters.TimeZoned
MAX_TIME_ZONE_OFFSET, MIN_TIME_ZONE_OFFSET
-
Constructor Summary
ConstructorDescriptionNetworkVm
(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 TypeMethodDescriptionList ofNetworkCloudlet
of the VM.double
The time when the VM finishes processing its cloudlets.getHost()
Gets theHost
where the Vm is or will be placed.List of packets received by the VM.boolean
isFree()
Indicates if the VM is free or not.void
setCloudletList
(List<NetworkCloudlet> cloudletList) void
setFinishTime
(double finishTime) void
setFree
(boolean free) Sets the PM that hosts the VM.void
setReceivedPacketList
(List<VmPacket> receivedPacketList) Methods inherited from class org.cloudbus.cloudsim.vms.VmSimple
addExpectedFreePesNumber, addOnCreationFailureListener, addOnHostAllocationListener, addOnHostDeallocationListener, addOnMigrationFinishListener, addOnMigrationStartListener, addOnUpdateProcessingListener, addStateHistoryEntry, compareTo, enableUtilizationStats, getAllocatedMips, getBw, getBwVerticalScaling, getCloudletScheduler, getCpuPercentRequested, getCpuPercentRequested, getCpuPercentUtilization, getCpuPercentUtilization, getCpuUtilizationStats, getCurrentRequestedBw, getCurrentRequestedMips, getCurrentRequestedRam, getDefaultBwCapacity, getDefaultRamCapacity, getDefaultStorageCapacity, getDescription, getExpectedFreePesNumber, getExpectedHostCpuUtilization, getFreePesNumber, getGroup, getHorizontalScaling, getHostBwUtilization, getHostCpuUtilization, getHostRamUtilization, getLastBusyTime, getMips, getNumberOfPes, getPeVerticalScaling, getProcessor, getRam, getRamVerticalScaling, getRequestedMips, getResource, getResources, getStartTime, getStateHistory, getStopTime, getStorage, getSubmissionDelay, getTimeZone, getTotalCpuMipsRequested, getTotalCpuMipsUtilization, getTotalCpuMipsUtilization, getTotalExecutionTime, getTotalMipsCapacity, getVmm, hasStartedSomeCloudlet, isCreated, isDelayed, isFailed, isInMigration, isSuitableForCloudlet, isWorking, notifyOnCreationFailureListeners, notifyOnHostAllocationListeners, notifyOnHostDeallocationListeners, notifyOnUpdateProcessingListeners, removeExpectedFreePesNumber, removeOnCreationFailureListener, removeOnHostAllocationListener, removeOnHostDeallocationListener, removeOnMigrationFinishListener, removeOnMigrationStartListener, removeOnUpdateProcessingListener, setAllocatedMips, setBw, setBwVerticalScaling, setCloudletScheduler, setCloudletsToFailed, setCreated, setDefaultBwCapacity, setDefaultRamCapacity, setDefaultStorageCapacity, setDescription, setFailed, setFreePesNumber, setGroup, setHorizontalScaling, setInMigration, setMips, setPeVerticalScaling, setRam, setRamVerticalScaling, setRequestedMips, setSize, setStartTime, setStopTime, setSubmissionDelay, setTimeZone, setVmm, toString, updateMigrationFinishListeners, updateMigrationStartListeners, updateProcessing, updateProcessing
Methods inherited from class org.cloudbus.cloudsim.core.CustomerEntityAbstract
equals, getArrivedTime, getBroker, getCreationTime, getId, getLastTriedDatacenter, getSimulation, getUid, getWaitTime, hashCode, setArrivedTime, setBroker, setCreationTime, setCreationTime, 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.ChangeableId
setId
Methods inherited from interface org.cloudbus.cloudsim.core.CustomerEntity
getArrivedTime, getCreationTime, getLastTriedDatacenter, getSimulation, getWaitTime, setArrivedTime, setLastTriedDatacenter
Methods inherited from interface org.cloudbus.cloudsim.core.Identifiable
getId
Methods inherited from interface org.cloudbus.cloudsim.datacenters.TimeZoned
distance, validateTimeZone
Methods inherited from interface org.cloudbus.cloudsim.core.UniquelyIdentifiable
getUid
Methods inherited from interface org.cloudbus.cloudsim.vms.Vm
getBroker, getHostCpuUtilization, isIdleEnough, setBroker
-
Field Details
-
NULL
-
-
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. -
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 finishes processing its cloudlets. -
setFinishTime
public void setFinishTime(double finishTime) -
getHost
Description copied from interface:Vm
Gets theHost
where the Vm is or will be placed. To know if the Vm was already created inside this Host, call theVm.isCreated()
method. -
setHost
Description copied from interface:Vm
Sets the PM that hosts the VM.
-