cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudsimplus/listeners/VmHostEventInfo.java
static VmHostEventInfo of(Vm vm, Host host) {
        final double time = vm.getSimulation().clock();
        return new VmHostEventInfo() {
            @Override public Host getHost() { return host; }
            @Override public Vm getVm() { return vm; }
            @Override public double getTime() { return time; }
        };
    }
/**
     * Gets a VmHostEventInfo instance from the given parameters.
     * The {@link #getTime()} is the current simulation time.
     *
     * @param vm {@link Vm} that fired the event
     * @param host {@link Host} that the {@link Vm} is related to.
     *                         Such a Host 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#addOnHostAllocationListener(EventListener)}  OnHostAllocation} or
     *                         {@link Vm#addOnHostDeallocationListener(EventListener)}  OnHostDeallocation}
     */
Gets a VmHostEventInfo instance from the given parameters.
The  #getTime() is the current simulation time.

@param vm  Vm that fired the event
@param host  Host that the  Vm is related to.
Such a Host 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#addOnHostAllocationListener(EventListener)  OnHostAllocation} or
Vm#addOnHostDeallocationListener(EventListener)  OnHostDeallocation}
Gets a VmHostEventInfo instance from the given parameters . The #getTime () is the current simulation time . @param vm Vm that fired the event @param host Host that the Vm is related to . Such a Host 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#addOnHostAllocationListener ( EventListener ) OnHostAllocation } or Vm#addOnHostDeallocationListener ( EventListener ) OnHostDeallocation }
static VmHostEventInfo of(Vm vm, Host host) {
        final double time = vm.getSimulation().clock();
        return new VmHostEventInfo() {
            @Override public Host getHost() { return host; }
            @Override public Vm getVm() { return vm; }
            @Override public double getTime() { return time; }
        };
    }
static VmHostEventInfo of ( Vm vm , Host host ) { final double time = vm . getSimulation ( ) . clock ( ) ; return new VmHostEventInfo ( ) { @ Override public Host getHost ( ) { return host ; } @ Override public Vm getVm ( ) { return vm ; } @ Override public double getTime ( ) { return time ; } } ; }
Gets a VmHostEventInfo instance from the given parameters.
Gets a VmHostEventInfo instance from the given parameters .