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