View Javadoc

1   /*
2    * @(#)RemoteEventProducer.java Dec 4, 2003
3    * 
4    * Copyright (c) 2003, 2004 Delft University of Technology Jaffalaan 5, 2628 BX
5    * Delft, the Netherlands All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the General Public License
9    */
10  
11  package nl.tudelft.simulation.event.remote;
12  
13  import java.rmi.RemoteException;
14  import java.rmi.server.UnicastRemoteObject;
15  import java.util.logging.Logger;
16  
17  import nl.tudelft.simulation.event.EventProducer;
18  
19  /***
20   * The RemoteEventProducer provides a remote implementation of the
21   * eventProducer.
22   * <p>
23   * See for project information <a href="http://www.simulation.tudelft.nl">
24   * www.simulation.tudelft.nl </a>
25   * <p>
26   * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
27   * License (GPL) </a>, no warranty
28   * 
29   * @version 1.0 Dec 4, 2003
30   * 
31   * @author <a
32   *         href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
33   *         van Houten </a>
34   */
35  public class RemoteEventProducer extends EventProducer implements
36  		RemoteEventProducerInterface
37  {
38  	/***
39  	 * Constructs a new RemoteEventProducer.
40  	 */
41  	public RemoteEventProducer()
42  	{
43  		super();
44  		try
45  		{
46  			UnicastRemoteObject.exportObject(this);
47  		} catch (RemoteException remoteException)
48  		{
49  			Logger.getLogger("nl.tudelft.simulation.event").severe(
50  					remoteException.getMessage());
51  
52  		}
53  	}
54  }