0221acfc09707bdd2e64c41b5dd1f0b952d36bc6
[openflowjava.git] / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / ScenarioService.java
1 package org.opendaylight.openflowjava.protocol.impl.clients;
2
3 import org.xml.sax.SAXException;
4
5 import javax.xml.bind.JAXBException;
6 import java.io.IOException;
7 import java.util.SortedMap;
8
9 /**
10  *
11  * @author Jozef Bacigal
12  * Date: 8.3.2016
13  */
14 interface ScenarioService {
15
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;
21
22     /**
23      * Method to load data from XML configuration file. Each configuration has a name.
24      * @param scenarioName {@link String}
25      * @return scenarios
26      * @throws SAXException
27      * @throws JAXBException
28      */
29     Scenario unMarshallData(String scenarioName) throws SAXException, JAXBException;
30
31     SortedMap<Integer, ClientEvent> getEventsFromScenario(Scenario scenario) throws IOException;
32
33 }