2005-08-29 jrandom

* Added the new test Floodfill netDb
This commit is contained in:
jrandom
2005-08-30 01:59:11 +00:00
committed by zzz
parent e313da254c
commit 3ba921ec0e
32 changed files with 902 additions and 50 deletions

View File

@ -315,6 +315,17 @@ public class RouterInfo extends DataStructureImpl {
else
return "";
}
public void addCapability(char cap) {
if (_options == null) _options = new OrderedProperties();
synchronized (_options) {
String caps = _options.getProperty(PROP_CAPABILITIES);
if (caps == null)
_options.setProperty(PROP_CAPABILITIES, ""+cap);
else if (caps.indexOf(cap) == -1)
_options.setProperty(PROP_CAPABILITIES, caps + cap);
}
}
/**
* Get the routing key for the structure using the current modifier in the RoutingKeyGenerator.