1 package org.opendaylight.openflowjava.protocol.impl.clients;
3 import org.xml.sax.SAXException;
5 import javax.xml.bind.JAXBException;
6 import java.io.IOException;
7 import java.util.SortedMap;
11 * @author Jozef Bacigal
14 interface ScenarioService {
16 String SIMPLE_CLIENT_SRC_MAIN_RESOURCES = "simple-client/src/main/resources/";
17 String SIMPLE_CLIENT_SRC_MAIN_RESOURCES1 = "simple-client/src/main/resources/";
18 String SCENARIO_XSD = "scenario.xsd";
19 String SCENARIO_XML = "scenario.xml";
20 String XSD_SCHEMA_PATH_WITH_FILE_NAME = SIMPLE_CLIENT_SRC_MAIN_RESOURCES1 + SCENARIO_XSD;
23 * Method to load data from XML configuration file. Each configuration has a name.
24 * @param scenarioName {@link String}
26 * @throws SAXException
27 * @throws JAXBException
29 Scenario unMarshallData(String scenarioName) throws SAXException, JAXBException;
31 SortedMap<Integer, ClientEvent> getEventsFromScenario(Scenario scenario) throws IOException;