2 * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.openflowjava.protocol.impl.clients;
10 import org.xml.sax.SAXException;
12 import javax.xml.bind.JAXBException;
13 import java.io.IOException;
14 import java.util.SortedMap;
18 * @author Jozef Bacigal
21 interface ScenarioService {
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;
30 * Method to load data from XML configuration file. Each configuration has a name.
31 * @param scenarioName {@link String}
33 * @throws SAXException
34 * @throws JAXBException
36 Scenario unMarshallData(String scenarioName) throws SAXException, JAXBException;
38 SortedMap<Integer, ClientEvent> getEventsFromScenario(Scenario scenario) throws IOException;