Class LaneBasedIndividualGTU.LaneBasedIndividualCarBuilder

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    LaneBasedIndividualGTU

    public static class LaneBasedIndividualGTU.LaneBasedIndividualCarBuilder
    extends Object
    implements Serializable
    Build an individual car and use easy setter methods to instantiate the car. Typical use looks like:
     LaneBasedIndividualCar<String> car = new LaneBasedIndividualCarBuilder<String>().setId("Car:"+nr)
        .setLength(new Length(4.0, METER))....build(); 
        
     or
     
     LaneBasedIndividualCarBuilder<String> carBuilder = new LaneBasedIndividualCarBuilder<String>();
     carBuilder.setId("Car:"+nr);
     carBuilder.setLength(new Length(4.0, METER));
     carBuilder.setWidth(new Length(1.8, METER));
     ...
     LaneBasedIndividualCar<String> car = carBuilder.build();
     

    Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
    All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Version:
    $Revision: 1401 $, $LastChangedDate: 2015-09-14 01:33:02 +0200 (Mon, 14 Sep 2015) $, by $Author: averbraeck $, initial Feb 3, 2015
    Author:
    Alexander Verbraeck
    See Also:
    Serialized Form