System.out.println(" useProvider=" + ((String) params.elementAt(0)).trim().toLowerCase()); System.out.println(" useProvider=" + useProvider); System.out.println("      nRoots=" + nRoots); System.out.println("testDuration=" + testDuration); Role.create("TestDeletionProvider", "TestDeletionCustomer");
logger.info("       level=" + level); logger.info(" useProvider=" + useProvider); logger.info("      nRoots=" + nRoots); logger.info("testDuration=" + testDuration); logger.info("   clockRate=" + clockRate);
    public void setupSubscriptions() {        Vector params = getParameters();        switch (params.size()) {        default:        case 4: testDuration = parseInterval((String) params.elementAt(3));        case 3: nRoots = Integer.parseInt((String) params.elementAt(2));        case 2: useProvider = ((String) params.elementAt(1)).trim().toLowerCase().equals("true");        case 1: level = Integer.parseInt((String) params.elementAt(0));        case 0: break;        }        System.out.println(" useProvider=" + ((String) params.elementAt(0)).trim().toLowerCase());        System.out.println(" useProvider=" + useProvider);        System.out.println("      nRoots=" + nRoots);        System.out.println("testDuration=" + testDuration);        Role.create("TestDeletionProvider", "TestDeletionCustomer");        testProviderRole = Role.getRole("TestDeletionProvider");        theRootAsset = theLDMF.createInstance(theLDMF.createPrototype(Asset.class, "TestRoot"));        theExpAsset = theLDMF.createInstance(theLDMF.createPrototype(Asset.class, "TestExp"));        theAggAsset = theLDMF.createInstance(theLDMF.createPrototype(Asset.class, "TestAgg"));        theAllocAsset = theLDMF.createInstance(theLDMF.createPrototype(Asset.class, "TestAlloc"));        publishAdd(theRootAsset);        publishAdd(theExpAsset);        publishAdd(theAggAsset);        publishAdd(theAllocAsset);        selfOrgs = (IncrementalSubscription) subscribe(new UnaryPredicate() {            public boolean execute(Object o) {                if (o instanceof Organization) {                    return ((Organization) o).isSelf();                }                return false;            }        });        if (!useProvider) setupSubscriptions2();    }