Lightweight Bartering Grid

lbg.peer.strategy.accounting
Class NoEvalAccountant

java.lang.Object
  extended by lbg.peer.strategy.accounting.NoEvalAccountant
All Implemented Interfaces:
BarteringAccountantPolicy

public class NoEvalAccountant
extends java.lang.Object
implements BarteringAccountantPolicy

Implementation note: this implementation does not rely on any information.

Author:
Cyril Briquet

Constructor Summary
NoEvalAccountant(Peer managed_peer)
           
 
Method Summary
 double evaluateConsumption(Task t, long xstart_time)
          BarteringAccountant implementation.
 double evaluateSupplying(Task t, long xstart_time)
          BarteringAccountant implementation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoEvalAccountant

public NoEvalAccountant(Peer managed_peer)
                 throws GridException
Throws:
GridException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

evaluateSupplying

public double evaluateSupplying(Task t,
                                long xstart_time)
                         throws GridException
BarteringAccountant implementation.

Specified by:
evaluateSupplying in interface BarteringAccountantPolicy
Returns:
0.0
Throws:
GridException

evaluateConsumption

public double evaluateConsumption(Task t,
                                  long xstart_time)
                           throws GridException
BarteringAccountant implementation.

Specified by:
evaluateConsumption in interface BarteringAccountantPolicy
Returns:
0.0
Throws:
GridException

Lightweight Bartering Grid

Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.