Class NetworkVm
- All Implemented Interfaces:
Comparable<Vm>,ChangeableId,CustomerEntity,ExecDelayable,Identifiable,Lifetimed,Machine<Resource>,ResourceStatsComputer<VmResourceStats>,Startable,SubmissionDelayable,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 the following publication for more details:
- Since:
- CloudSim Toolkit 3.0
- Author:
- Saurabh Kumar Garg
-
Field Summary
FieldsFields inherited from class org.cloudsimplus.vms.VmAbstract
allocatedMips, description, expectedFreePesNumber, freePesNumber, onCreationFailureListeners, onHostAllocationListeners, onHostDeallocationListeners, onMigrationFinishListeners, onMigrationStartListeners, onUpdateProcessingListeners, processor, requestedMips, resources, stateHistoryFields inherited from interface org.cloudsimplus.core.Startable
NOT_ASSIGNEDFields inherited from interface org.cloudsimplus.datacenters.TimeZoned
MAX_TIME_ZONE_OFFSET, MIN_TIME_ZONE_OFFSET -
Constructor Summary
ConstructorsConstructorDescriptionNetworkVm(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.NetworkVm(long mipsCapacity, int pesNumber) Creates a NetworkVm with 1024 MEGA of RAM, 1000 Megabits/s of Bandwidth and 1024 MEGA of Storage Size. -
Method Summary
Methods inherited from class org.cloudsimplus.vms.VmAbstract
addExpectedFreePesNumber, addOnCreationFailureListener, addOnHostAllocationListener, addOnHostDeallocationListener, addOnMigrationFinishListener, addOnMigrationStartListener, addOnUpdateProcessingListener, addStateHistoryEntry, enableUtilizationStats, getCpuPercentRequested, getCpuPercentRequested, getCpuPercentUtilization, getCpuPercentUtilization, getCurrentRequestedBw, getCurrentRequestedMips, getCurrentRequestedRam, getExpectedHostCpuUtilization, getFirstVm, getHostBwUtilization, getHostCpuUtilization, getHostRamUtilization, getList, getMips, getPesNumber, getRam, getResource, getResources, getStateHistory, getTotalCpuMipsRequested, getTotalCpuMipsUtilization, getTotalCpuMipsUtilization, getTotalMipsCapacity, getVmCount, hasStartedSomeCloudlet, isFinished, isSubmissionDelayed, isSuitableForCloudlet, isVmList, isWorking, mutableAttributesInit, notifyOnCreationFailureListeners, notifyOnHostAllocationListeners, notifyOnHostDeallocationListeners, notifyOnUpdateProcessingListeners, onFinish, onStart, removeExpectedFreePesNumber, removeOnCreationFailureListener, removeOnHostAllocationListener, removeOnHostDeallocationListener, removeOnMigrationFinishListener, removeOnMigrationStartListener, removeOnUpdateProcessingListener, setAllocatedMips, setBw, setBwVerticalScaling, setCloudletScheduler, setCloudletsToFailed, setCreated, setDefaultBwCapacity, setDefaultRamCapacity, setDefaultStorageCapacity, setDescription, setFailed, setFreePesNumber, setGroup, setHorizontalScaling, setInMigration, setMips, setPesNumber, setPeVerticalScaling, setRam, setRamVerticalScaling, setRequestedMips, setSize, setStartTime, setStorage, setSubmissionDelay, setTimeZone, setVmm, shutdown, updateMigrationFinishListeners, updateMigrationStartListeners, updateProcessing, updateProcessingMethods inherited from class org.cloudsimplus.core.CustomerEntityAbstract
getCreationWaitTime, getSimulation, getUid, setCreationTime, setCreationTime, setLifeTimeMethods inherited from class org.cloudsimplus.core.ExecDelayableAbstract
isShuttingDown, setShutDownDelay, setStartupDelayMethods inherited from class org.cloudsimplus.core.StartableAbstract
getTotalExecutionTime, setFinishTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cloudsimplus.core.ChangeableId
setIdMethods inherited from interface org.cloudsimplus.core.CustomerEntity
getBrokerArrivalTime, getCreationTime, getCreationWaitTime, getFinishTime, getLastTriedDatacenter, setBrokerArrivalTime, setLastTriedDatacenterMethods inherited from interface org.cloudsimplus.core.ExecDelayable
getRemainingStartupTime, getShutdownBeginTime, getShutDownDelay, getStartupCompletionTime, getStartupDelay, isShutDownDelayed, isShuttingDown, isStartupDelayed, setShutdownBeginTime, setShutDownDelayMethods inherited from interface org.cloudsimplus.core.Identifiable
getIdMethods inherited from interface org.cloudsimplus.core.Lifetimed
isLifeTimeReachedMethods inherited from interface org.cloudsimplus.core.Machine
getIdleInterval, getLastBusyTime, getSimulation, isIdleMethods inherited from interface org.cloudsimplus.core.ResourceStatsComputer
getCpuUtilizationStatsMethods inherited from interface org.cloudsimplus.core.Startable
getStartTime, hasStarted, setFinishTime, setLastBusyTimeMethods inherited from interface org.cloudsimplus.core.SubmissionDelayable
getSubmissionDelayMethods inherited from interface org.cloudsimplus.datacenters.TimeZoned
distance, validateTimeZoneMethods inherited from interface org.cloudsimplus.core.UniquelyIdentifiable
getUidMethods inherited from interface org.cloudsimplus.vms.Vm
getBootModel, getBroker, getBw, getBwVerticalScaling, getCloudletScheduler, getDescription, getExpectedFreePesNumber, getFreePesNumber, getGroup, getHorizontalScaling, getHostCpuUtilization, getLifeTime, getPeVerticalScaling, getProcessor, getRamVerticalScaling, getStorage, getTimeZone, getTotalExecutionTime, getVmm, isCreated, isFailed, isIdleEnough, isInMigration, isStartingUp, setBootModel, setBroker, setLifeTime, setStartupDelay
-
Field Details
-
NULL
-
-
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.
-
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
idfor the Vm. Theidis defined when the Vm is submitted to aDatacenterBroker.
-
-
Method Details
-
getHost
Description copied from interface:VmGets theHostwhere the Vm is or will be placed. To know if the Vm was already created inside this Host, call theVm.isCreated()method.- Returns:
- the Host
- See Also:
-
setHost
Description copied from class:VmAbstractSets the PM that hosts the VM.- Overrides:
setHostin classVmAbstract- Parameters:
host- Host to run the VM- Returns:
- this Vm
-