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 012package com.net2plan.examples.general.onlineSim; 013 014import com.net2plan.interfaces.networkDesign.NetPlan; 015import com.net2plan.interfaces.simulation.IEventGenerator; 016import com.net2plan.interfaces.simulation.SimEvent; 017import com.net2plan.utils.Triple; 018import java.util.LinkedList; 019import java.util.List; 020import java.util.Map; 021 022/** 023 * This event generator does not produce any event. It is only needed with those event processors that work alone, generating and consuming their own events, 024 * and that cannot receive any event coming from the event generator module. 025 * @net2plan.inputParameters 026 * @author Pablo Pavon-Marino, Jose-Luis Izquierdo-Zaragoza 027 */ 028public class Online_evGen_doNothing extends IEventGenerator 029{ 030 @Override 031 public String getDescription() 032 { 033 return "This event generator does not generate any event. In general, it is only for testing purposes"; 034 } 035 036 @Override 037 public List<Triple<String, String, String>> getParameters() 038 { 039 return new LinkedList<Triple<String, String, String>>(); 040 } 041 042 @Override 043 public void initialize(NetPlan initialNetPlan, Map<String, String> algorithmParameters, Map<String, String> simulationParameters, Map<String, String> net2planParameters) 044 { 045 } 046 047 @Override 048 public void processEvent(NetPlan currentNetPlan, SimEvent event) 049 { 050 } 051}