hu.mta.sztaki.lpds.cloud.simulator.iaas
Class PhysicalMachine.PowerStateDelayer
java.lang.Object
hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ConsumptionEventAdapter
hu.mta.sztaki.lpds.cloud.simulator.iaas.PhysicalMachine.PowerStateDelayer
- All Implemented Interfaces:
- ResourceConsumption.ConsumptionEvent
- Enclosing class:
- PhysicalMachine
public class PhysicalMachine.PowerStateDelayer
- extends ConsumptionEventAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newState
private PhysicalMachine.State newState
tasksDue
final gnu.trove.list.linked.TDoubleLinkedList tasksDue
transitionStart
public final long transitionStart
currentConsumption
ResourceConsumption currentConsumption
PhysicalMachine.PowerStateDelayer
public PhysicalMachine.PowerStateDelayer(double[] tasklist,
PhysicalMachine.State newPowerState)
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.