001/******************************************************************************* 002 * Copyright (c) 2016 Pablo Pavon Mariņo. 003 * All rights reserved. This program and the accompanying materials 004 * are made available under the terms of the GNU Lesser Public License v2.1 005 * which accompanies this distribution, and is available at 006 * http://www.gnu.org/licenses/lgpl.html 007 ******************************************************************************/ 008 009 010 011 012 013package com.net2plan.examples.general.onlineSim; 014 015import java.util.LinkedList; 016import java.util.List; 017import java.util.Map; 018 019import com.net2plan.interfaces.networkDesign.NetPlan; 020import com.net2plan.interfaces.simulation.IEventProcessor; 021import com.net2plan.interfaces.simulation.SimEvent; 022import com.net2plan.utils.Triple; 023 024/** 025 * This event processor does not react to any received event. In general, it is only for testing purposes. 026 * @net2plan.keywords 027 * @net2plan.inputParameters 028 * @author Pablo Pavon-Marino, Jose-Luis Izquierdo-Zaragoza 029 */ 030public class Online_evProc_doNothing extends IEventProcessor 031{ 032 @Override 033 public String getDescription() 034 { 035 return "This event processor does not react to any received event. In general, it is only for testing purposes"; 036 } 037 038 @Override 039 public List<Triple<String, String, String>> getParameters() 040 { 041 return new LinkedList<Triple<String, String, String>>(); 042 } 043 044 @Override 045 public void initialize(NetPlan initialNetPlan, Map<String, String> algorithmParameters, Map<String, String> simulationParameters, Map<String, String> net2planParameters) 046 { 047 } 048 049 @Override 050 public void processEvent(NetPlan currentNetPlan, SimEvent event) 051 { 052 } 053}