|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.protocol.data.GridData
lbg.protocol.data.SimulatedGridData
public class SimulatedGridData
Dummy grid data class for use in the LBG Simulator.
Field Summary |
---|
Fields inherited from class lbg.protocol.data.GridData |
---|
client_hostname, HASHING_ALGORITHM, id, size |
Constructor Summary | |
---|---|
SimulatedGridData(java.lang.String id,
long size)
Creates a dummy grid data. |
Method Summary | |
---|---|
byte[] |
getChecksum()
Get checksum from data. |
java.io.InputStream |
getInputStream()
Get an input stream to read the data |
void |
toFile(java.io.File f)
Does nothing |
Methods inherited from class lbg.protocol.data.GridData |
---|
compareTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimulatedGridData(java.lang.String id, long size) throws GridException
GridException
Method Detail |
---|
public void toFile(java.io.File f)
toFile
in class GridData
f
- The file where to put datapublic byte[] getChecksum()
GridData
getChecksum
in class GridData
GridData.HASHING_ALGORITHM
public java.io.InputStream getInputStream()
GridData
getInputStream
in class GridData
|
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.