hu.mta.sztaki.lpds.cloud.simulator
Class DeferredEvent

java.lang.Object
  extended by hu.mta.sztaki.lpds.cloud.simulator.Timed
      extended by hu.mta.sztaki.lpds.cloud.simulator.DeferredEvent
All Implemented Interfaces:
Comparable<Timed>
Direct Known Subclasses:
PhysicalMachine.PowerStateDelayer, PhysicalMachine.ResourceAllocation

public abstract class DeferredEvent
extends Timed


Field Summary
private  boolean cancelled
           
 
Constructor Summary
DeferredEvent(long delay)
           
 
Method Summary
 void cancel()
           
protected abstract  void eventAction()
           
 boolean isCancelled()
           
 void tick(long fires)
           
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.Timed
compareTo, fire, getFireCount, getFrequency, getNextEvent, getNextFire, isSubscribed, jumpTime, nextEventDistance, resetTimed, setBackPreference, simulateUntil, simulateUntilLastEvent, skipEventsTill, subscribe, toString, unsubscribe, updateFrequency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cancelled

private boolean cancelled
Constructor Detail

DeferredEvent

public DeferredEvent(long delay)
Method Detail

tick

public void tick(long fires)
Specified by:
tick in class Timed

cancel

public void cancel()

isCancelled

public boolean isCancelled()

eventAction

protected abstract void eventAction()


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