@SuppressWarnings("unchecked") private void setupFactories() { leFactory = Factory.createLogicalExpressionFactory(null); factory = Factory.createWsmoFactory(null); cFactory = new OrchestrationFactoryRI(); dataFactory = Factory.createDataFactory(null); }
public RankingFramework() { wsmoFactory = Factory.createWsmoFactory(new HashMap()); LogicalExpressionFactory leFactory = Factory.createLogicalExpressionFactory(new HashMap()); Map<String, Object> props = new HashMap<String, Object>(); props.put(Factory.WSMO_FACTORY, wsmoFactory); props.put(Factory.LE_FACTORY, leFactory); parser = Factory.createParser(props); registeredWebServices = new HashSet<Service>(); Factory.getLocatorManager().addLocator(new DefaultLocator()); rankingEngines = new ArrayList<RankingEngineInterface>(); for (int type : types) rankingEngines.add(RankingFactory.createRankingEngine(type)); }