1 package org.opentrafficsim.road.gtu.lane.perception.headway;
2
3 import org.djunits.value.vdouble.scalar.Acceleration;
4 import org.djunits.value.vdouble.scalar.Length;
5 import org.djunits.value.vdouble.scalar.Speed;
6 import org.opentrafficsim.base.parameters.ParameterSet;
7 import org.opentrafficsim.core.gtu.GTUException;
8 import org.opentrafficsim.road.gtu.lane.LaneBasedGTU;
9
10
11
12
13
14
15
16
17
18
19
20 public class HeadwayGTUPerceived extends HeadwayGTURealCopy
21 {
22
23
24 private static final long serialVersionUID = 20180405L;
25
26
27
28
29
30
31
32
33 public HeadwayGTUPerceived(final LaneBasedGTU gtu, final Length distance, final Speed speed,
34 final Acceleration acceleration) throws GTUException
35 {
36 super(gtu.getId(), gtu.getGTUType(), distance, gtu.getLength(), gtu.getWidth(), speed, acceleration,
37 gtu.getTacticalPlanner().getCarFollowingModel(), new ParameterSet(gtu.getParameters()), getSpeedLimitInfo(gtu),
38 gtu.getStrategicalPlanner().getRoute(), gtu.getDesiredSpeed(),
39 getGTUStatuses(gtu, gtu.getSimulator().getSimulatorTime()));
40 }
41
42
43
44
45
46
47
48
49
50
51 public HeadwayGTUPerceived(final LaneBasedGTU gtu, final Length overlapFront, final Length overlap,
52 final Length overlapRear, final Speed speed, final Acceleration acceleration) throws GTUException
53 {
54 super(gtu.getId(), gtu.getGTUType(), overlapFront, overlap, overlapRear, gtu.getLength(), gtu.getWidth(), speed,
55 acceleration, gtu.getTacticalPlanner().getCarFollowingModel(), new ParameterSet(gtu.getParameters()),
56 getSpeedLimitInfo(gtu), gtu.getStrategicalPlanner().getRoute(), gtu.getDesiredSpeed(),
57 getGTUStatuses(gtu, gtu.getSimulator().getSimulatorTime()));
58 }
59
60 }