|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.protocol.Agent
gps.protocol.Peer
public class Peer
Peer base class, all specific protocol peers inherit from it.
| Field Summary | |
|---|---|
java.util.HashMap |
mDocDBbyKey
|
| Constructor Summary | |
|---|---|
Peer()
dummy constructor |
|
Peer(int i)
constructs a Peer with peer id |
|
| Method Summary | |
|---|---|
Document |
getDocument(java.lang.String key)
retrieve a document by key |
void |
ownDocument(Document doc)
add a document to this peer, to be overriden |
void |
reset()
resets status of the peer |
java.lang.String |
toString()
gets string description |
| Methods inherited from class gps.protocol.Agent |
|---|
agentDraw, attachTo, getID, getNode, handle, isActive |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.util.HashMap mDocDBbyKey
| Constructor Detail |
|---|
public Peer()
public Peer(int i)
| Method Detail |
|---|
public void reset()
reset in class Agentpublic void ownDocument(Document doc)
doc - the Documentpublic Document getDocument(java.lang.String key)
key -
public java.lang.String toString()
toString in class Agent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||