hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel
Class ConsumptionEventAdapter

java.lang.Object
  extended by hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ConsumptionEventAdapter
All Implemented Interfaces:
ResourceConsumption.ConsumptionEvent
Direct Known Subclasses:
PhysicalMachine.PowerStateDelayer, VirtualMachine.InitialTransferEvent

public class ConsumptionEventAdapter
extends Object
implements ResourceConsumption.ConsumptionEvent


Field Summary
private  boolean cancelled
           
private  boolean completed
           
 
Constructor Summary
ConsumptionEventAdapter()
           
 
Method Summary
 void conCancelled(ResourceConsumption problematic)
          This function is called when the resource consumption cannot be handled properly
 void conComplete()
          This function is called when the resource consumption represented by the ResourceConsumption object is fulfilled
 boolean isCancelled()
           
 boolean isCompleted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cancelled

private boolean cancelled

completed

private boolean completed
Constructor Detail

ConsumptionEventAdapter

public ConsumptionEventAdapter()
Method Detail

conComplete

public void conComplete()
Description copied from interface: ResourceConsumption.ConsumptionEvent
This function is called when the resource consumption represented by the ResourceConsumption object is fulfilled

Specified by:
conComplete in interface ResourceConsumption.ConsumptionEvent

conCancelled

public void conCancelled(ResourceConsumption problematic)
Description copied from interface: ResourceConsumption.ConsumptionEvent
This function is called when the resource consumption cannot be handled properly

Specified by:
conCancelled in interface ResourceConsumption.ConsumptionEvent

isCancelled

public boolean isCancelled()

isCompleted

public boolean isCompleted()


Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.