|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectestella.lib.Descritor
public class Descritor
Gerencia descritor
02/12/2005
Constructor Summary | |
---|---|
Descritor(byte[] id,
int tipo,
int ttl,
int hops,
byte[] payload)
Novo descritor |
|
Descritor(int tipo,
int ttl,
int hops,
byte[] payload)
Novo descritor, com um novo id |
|
Descritor(java.lang.String descritor)
Instancia a classe com o descritor passado |
Method Summary | |
---|---|
byte[] |
geraID()
Generate something remotely resembling a windows guid Essa funcao pertence originalmente ao software jTella versao 0.7 - cedida sobre GPL |
int |
hops()
HOPS - Retorna o numero de vezes que o descritor foi roteado (passado por outros servents) |
void |
hops(int hops)
HOPS - Seta o numero de vezes que o descritor foi roteado (passado por outros servents) |
byte[] |
id()
Retorna o id do descritor |
void |
id(byte[] _id)
Seta o id do descritor |
byte[] |
payload()
Retorna o payload do descritor |
byte[] |
retorna()
Retorna o descritor gerado |
java.lang.String |
stringId()
Retorna o ip do descritor |
int |
tipo()
Tipo do descritor |
int |
ttl()
TTL - time to live |
void |
ttl(int ttl)
TTL -time to live |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Descritor(byte[] id, int tipo, int ttl, int hops, byte[] payload)
byte[]
- idint
- tipoint
- ttlint
- hopsbyte[]
- payloadpublic Descritor(int tipo, int ttl, int hops, byte[] payload)
int
- tipoint
- ttlint
- hopsbyte[]
- payloadpublic Descritor(java.lang.String descritor)
String
- descritorMethod Detail |
---|
public void id(byte[] _id)
byte[]
- idpublic java.lang.String stringId()
public byte[] id()
public byte[] geraID()
public byte[] retorna()
public int ttl()
public void ttl(int ttl)
ttl
- - seta o ttl com o byte passadopublic byte[] payload()
public void hops(int hops)
hops
- - byte com o hops a ser setadopublic int hops()
public int tipo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |