View Javadoc
1   package org.opentrafficsim.imb.transceiver;
2   
3   import java.io.Serializable;
4   
5   import nl.tudelft.simulation.event.EventListenerInterface;
6   
7   /**
8    * Store the results of an IBM message transformation, as the aTByteBuffer message can only be parsed once.
9    * <p>
10   * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
11   * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
12   * </p>
13   * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
14   * initial version Sep 11, 2016 <br>
15   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
16   * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
17   * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
18   */
19  public class IMBTransformResult implements Serializable
20  {
21      /** */
22      private static final long serialVersionUID = 20160911L;
23  
24      /** the event content to store. */
25      private final Object eventContent;
26      
27      /** the event listener to store. */
28      private final EventListenerInterface eventListener;
29  
30      /**
31       * Store the results of an IBM message transformation, as the aTByteBuffer message can only be parsed once.
32       * @param eventContent Object; the event content to store
33       * @param eventListener EventListenerInterface; the event listener to store
34       */
35      public IMBTransformResult(Object eventContent, EventListenerInterface eventListener)
36      {
37          super();
38          this.eventContent = eventContent;
39          this.eventListener = eventListener;
40      }
41  
42      /**
43       * @return eventContent Object; the stored event content
44       */
45      public final Object getEventContent()
46      {
47          return this.eventContent;
48      }
49  
50      /**
51       * @return eventListener EventListenerInterface; the stored event listener
52       */ 
53      public final EventListenerInterface getEventListener()
54      {
55          return this.eventListener;
56      }
57  }
58