bamboo.dht.fssim
Class FairCommitmentAlgorithm

java.lang.Object
  extended by bamboo.dht.fssim.Algorithm
      extended by bamboo.dht.fssim.FairCommitmentAlgorithm

public class FairCommitmentAlgorithm
extends Algorithm


Nested Class Summary
 
Nested classes/interfaces inherited from class bamboo.dht.fssim.Algorithm
Algorithm.PutInfo, Algorithm.PutResultCb
 
Field Summary
protected  HashMap commitments
           
protected  Random rand
           
 
Fields inherited from class bamboo.dht.fssim.Algorithm
client_count, instance, pending_puts, period, sim, stop_time, storage_by_client, total_puts
 
Constructor Summary
FairCommitmentAlgorithm(long p, long t, long seed)
           
 
Method Summary
 void process_pending_puts(LinkedList puts)
           
 
Methods inherited from class bamboo.dht.fssim.Algorithm
accept_put, all_puts_expired, enqueue_put, print_usage, remove_put, simulation_finished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rand

protected Random rand

commitments

protected HashMap commitments
Constructor Detail

FairCommitmentAlgorithm

public FairCommitmentAlgorithm(long p,
                               long t,
                               long seed)
Method Detail

process_pending_puts

public void process_pending_puts(LinkedList puts)
Specified by:
process_pending_puts in class Algorithm