View Javadoc
1   package org.opentrafficsim.road.gtu.strategical;
2   
3   import java.io.Serializable;
4   
5   import org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics;
6   import org.opentrafficsim.road.gtu.lane.LaneBasedGTU;
7   
8   /**
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 Nov 26, 2015 <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   */
18  public abstract class AbstractLaneBasedStrategicalPlanner implements LaneBasedStrategicalPlanner, Serializable
19  {
20      /** */
21      private static final long serialVersionUID = 20151126L;
22  
23      /** GTU. */
24      private final LaneBasedGTU gtu;
25  
26      /** The personal driving characteristics, which contain settings for the tactical planner. */
27      private BehavioralCharacteristics behavioralCharacteristics;
28  
29      /**
30       * @param behavioralCharacteristics the personal driving characteristics, which contain settings for the tactical planner
31       * @param gtu GTU
32       */
33      public AbstractLaneBasedStrategicalPlanner(final BehavioralCharacteristics behavioralCharacteristics,
34          final LaneBasedGTU gtu)
35      {
36          super();
37          this.behavioralCharacteristics = behavioralCharacteristics;
38          this.gtu = gtu;
39      }
40  
41      /** {@inheritDoc} */
42      @Override
43      public final BehavioralCharacteristics getBehavioralCharacteristics()
44      {
45          return this.behavioralCharacteristics;
46      }
47  
48      /** {@inheritDoc} */
49      @Override
50      public final void setBehavioralCharacteristics(final BehavioralCharacteristics behavioralCharacteristics)
51      {
52          this.behavioralCharacteristics = behavioralCharacteristics;
53      }
54  
55      /** {@inheritDoc} */
56      @Override
57      public final LaneBasedGTU getGtu()
58      {
59          return this.gtu;
60      }
61  
62  }