|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.peer.strategy.accounting.OGPerfectAccountant
public class OGPerfectAccountant
Note: this perfect accounting implementation (in the sense of OurGrid) is correct only in stable environments, i.e. supplied power is constant over time (when supplied, of course).
Implementation note: this implementation relies on Task output information.
| Constructor Summary | |
|---|---|
OGPerfectAccountant(Peer managed_peer)
Constructs a new OGPerfectAccountant (SIM_MODE only). |
|
| 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 |
|---|
public OGPerfectAccountant(Peer managed_peer)
throws GridException
GridException - if a parameter is illegal| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public double evaluateSupplying(Task t,
long xstart_time)
throws GridException
evaluateSupplying in interface BarteringAccountantPolicyGridException
public double evaluateConsumption(Task t,
long xstart_time)
throws GridException
evaluateConsumption in interface BarteringAccountantPolicyGridException
|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.