|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.mixminion.mmrdescription.MMRList
public class MMRList
Field Summary | |
---|---|
private java.util.Vector |
m_exitnodes
|
private java.util.Vector |
m_fragexitnodes
|
private java.util.Vector |
m_mixminionrouters
|
private java.util.Hashtable |
m_mixminionroutersWithNames
|
private MMRListFetcher |
m_mmrlistFetcher
|
private MyRandom |
m_rand
|
Constructor Summary | |
---|---|
MMRList(MMRListFetcher fetcher)
constructor |
Method Summary | |
---|---|
MMRDescription |
getByName(java.lang.String name)
gets an Mixminion router by it's name |
MMRDescription |
getByRandom()
selects a MMR randomly |
MMRDescription |
getByRandom(java.util.Vector allowedNames)
selects a MMR randomly from a given list of allowed OR names |
java.util.Vector |
getByRandomWithExit(int hops)
selects a Routing List randomly, last element is surely an exit-node tries to blanace the probability of exit and non-exit nodes |
java.util.Vector |
getByRandomWithFrag(int hops,
int frags)
|
java.util.Vector |
getList()
returns a List of all Mixminionrouters |
MMRDescription |
getMMRDescription(java.lang.String name)
returns a MMRDescription to the given MMRName |
java.util.Vector |
mytesting()
|
private boolean |
parseDocument(byte[] document)
parses the document and creates a list with all MMRDescriptions |
void |
remove(java.lang.String name)
removes an Mixminion router |
void |
setFetcher(MMRListFetcher fetcher)
|
int |
size()
size of the MMRList |
boolean |
updateList()
Updates the list of available MMRouters. |
void |
vectortostring(java.util.Vector v)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Vector m_mixminionrouters
private java.util.Vector m_exitnodes
private java.util.Vector m_fragexitnodes
private java.util.Hashtable m_mixminionroutersWithNames
private MyRandom m_rand
private MMRListFetcher m_mmrlistFetcher
Constructor Detail |
---|
public MMRList(MMRListFetcher fetcher)
Method Detail |
---|
public int size()
public void setFetcher(MMRListFetcher fetcher)
public boolean updateList()
public java.util.Vector getList()
public MMRDescription getByName(java.lang.String name)
name
- name of the MMR
public void remove(java.lang.String name)
name
- name of the MMRpublic MMRDescription getByRandom(java.util.Vector allowedNames)
mmrlist
- list of mixminionrouter names
public MMRDescription getByRandom()
public java.util.Vector getByRandomWithExit(int hops)
hops
- int
length of the circuit
public java.util.Vector getByRandomWithFrag(int hops, int frags)
public MMRDescription getMMRDescription(java.lang.String name)
name
- MMRName
private boolean parseDocument(byte[] document) throws java.lang.Exception
strDocument
-
java.lang.Exception
public void vectortostring(java.util.Vector v)
public java.util.Vector mytesting()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |