Integrate OpenFlowJava into OpenFlowPlugin build
[openflowplugin.git] / samples / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / ScenarioService.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.openflowjava.protocol.impl.clients;
9
10 import org.xml.sax.SAXException;
11
12 import javax.xml.bind.JAXBException;
13 import java.io.IOException;
14 import java.util.SortedMap;
15
16 /**
17  *
18  * @author Jozef Bacigal
19  * Date: 8.3.2016
20  */
21 interface ScenarioService {
22
23     String SIMPLE_CLIENT_SRC_MAIN_RESOURCES = "simple-client/src/main/resources/";
24     String SIMPLE_CLIENT_SRC_MAIN_RESOURCES1 = "simple-client/src/main/resources/";
25     String SCENARIO_XSD = "scenario.xsd";
26     String SCENARIO_XML = "scenario.xml";
27     String XSD_SCHEMA_PATH_WITH_FILE_NAME = SIMPLE_CLIENT_SRC_MAIN_RESOURCES1 + SCENARIO_XSD;
28
29     /**
30      * Method to load data from XML configuration file. Each configuration has a name.
31      * @param scenarioName {@link String}
32      * @return scenarios
33      * @throws SAXException
34      * @throws JAXBException
35      */
36     Scenario unMarshallData(String scenarioName) throws SAXException, JAXBException;
37
38     SortedMap<Integer, ClientEvent> getEventsFromScenario(Scenario scenario) throws IOException;
39
40 }