de.tubs.cs.sc.casim
Class HeapElement

java.lang.Object
  |
  +--de.tubs.cs.sc.casim.HeapElement

public class HeapElement
extends java.lang.Object

Special heapelement for use in asynchronous update with exponential waiting times.


Field Summary
protected  int[] coordinates
           
protected  double time
           
 
Constructor Summary
protected HeapElement(int[] coordinates)
          constructs a new HeapElement with the given coordinets and a random time drawn from an exponential distribution.
 
Method Summary
protected  void incrementRandom()
          add a random time drawn from an exponential distribution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coordinates

protected int[] coordinates

time

protected double time
Constructor Detail

HeapElement

protected HeapElement(int[] coordinates)
constructs a new HeapElement with the given coordinets and a random time drawn from an exponential distribution.

Method Detail

incrementRandom

protected void incrementRandom()
add a random time drawn from an exponential distribution.