cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudsimplus/listeners/VmDatacenterEventInfo.java
static VmDatacenterEventInfo of(Vm vm, Datacenter datacenter) {
        final double time = vm.getSimulation().clock();
        return new VmDatacenterEventInfo() {
            @Override public Datacenter getDatacenter() { return datacenter; }
            @Override public Vm getVm() { return vm; }
            @Override public double getTime() { return time; }
        };
    }
/**
     * Gets a VmDatacenterEventInfo instance from the given parameters.
     * The {@link #getTime()} is the current simulation time.
     *
     * @param vm the {@link Vm} that fired the event
     * @param datacenter {@link Datacenter} that the {@link Vm} is related to.
     *                   Such a Datacenter can be that one where the Vm is or was placed,
     *                   or where the Vm was tried to be be created,
     *                   depending on the fired event, such as the
     *                   {@link Vm#addOnCreationFailureListener(EventListener)}  OnVmCreationFailure}
     */
Gets a VmDatacenterEventInfo instance from the given parameters.
The  #getTime() is the current simulation time.

@param vm the  Vm that fired the event
@param datacenter  Datacenter that the  Vm is related to.
Such a Datacenter can be that one where the Vm is or was placed,
or where the Vm was tried to be be created,
depending on the fired event, such as the
Vm#addOnCreationFailureListener(EventListener)  OnVmCreationFailure}
Gets a VmDatacenterEventInfo instance from the given parameters . The #getTime () is the current simulation time . @param vm the Vm that fired the event @param datacenter Datacenter that the Vm is related to . Such a Datacenter can be that one where the Vm is or was placed or where the Vm was tried to be be created depending on the fired event such as the Vm#addOnCreationFailureListener ( EventListener ) OnVmCreationFailure }
static VmDatacenterEventInfo of(Vm vm, Datacenter datacenter) {
        final double time = vm.getSimulation().clock();
        return new VmDatacenterEventInfo() {
            @Override public Datacenter getDatacenter() { return datacenter; }
            @Override public Vm getVm() { return vm; }
            @Override public double getTime() { return time; }
        };
    }
static VmDatacenterEventInfo of ( Vm vm , Datacenter datacenter ) { final double time = vm . getSimulation ( ) . clock ( ) ; return new VmDatacenterEventInfo ( ) { @ Override public Datacenter getDatacenter ( ) { return datacenter ; } @ Override public Vm getVm ( ) { return vm ; } @ Override public double getTime ( ) { return time ; } } ; }
Gets a VmDatacenterEventInfo instance from the given parameters.
Gets a VmDatacenterEventInfo instance from the given parameters .