hu.mta.sztaki.lpds.cloud.simulator.iaas
Class PhysicalMachine.PowerStateDelayer

java.lang.Object
  extended by hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ConsumptionEventAdapter
      extended by hu.mta.sztaki.lpds.cloud.simulator.iaas.PhysicalMachine.PowerStateDelayer
All Implemented Interfaces:
ResourceConsumption.ConsumptionEvent
Enclosing class:
PhysicalMachine

public class PhysicalMachine.PowerStateDelayer
extends ConsumptionEventAdapter


Field Summary
(package private)  ResourceConsumption currentConsumption
           
private  PhysicalMachine.State newState
           
(package private)  gnu.trove.list.linked.TDoubleLinkedList tasksDue
           
 long transitionStart
           
 
Constructor Summary
PhysicalMachine.PowerStateDelayer(double[] tasklist, PhysicalMachine.State newPowerState)
           
 
Method Summary
 void addFurtherTasks(double[] tasklist)
           
 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
private  void sendTask()
           
 void setNewState(PhysicalMachine.State newState)
           
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ConsumptionEventAdapter
isCancelled, isCompleted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newState

private PhysicalMachine.State newState

tasksDue

final gnu.trove.list.linked.TDoubleLinkedList tasksDue

transitionStart

public final long transitionStart

currentConsumption

ResourceConsumption currentConsumption
Constructor Detail

PhysicalMachine.PowerStateDelayer

public PhysicalMachine.PowerStateDelayer(double[] tasklist,
                                         PhysicalMachine.State newPowerState)
Method Detail

sendTask

private void sendTask()

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
Overrides:
conComplete in class ConsumptionEventAdapter

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
Overrides:
conCancelled in class ConsumptionEventAdapter

addFurtherTasks

public void addFurtherTasks(double[] tasklist)

setNewState

public void setNewState(PhysicalMachine.State newState)


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