View Javadoc

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