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