1 package org.opentrafficsim.core.dsol;
2
3 import nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock;
4
5 import org.djunits.unit.TimeUnit;
6 import org.djunits.value.vdouble.scalar.DoubleScalar;
7 import org.opentrafficsim.core.OTS_SCALAR;
8
9
10
11
12
13
14
15
16
17
18 public class OTSDEVSRealTimeClock extends
19 DEVSRealTimeClock<DoubleScalar.Abs<TimeUnit>, DoubleScalar.Rel<TimeUnit>, OTSSimTimeDouble> implements
20 OTSDEVSSimulatorInterface, OTSAnimatorInterface, OTS_SCALAR
21 {
22
23 private static final long serialVersionUID = 20140909L;
24
25
26
27
28 public OTSDEVSRealTimeClock()
29 {
30 super();
31 }
32
33
34 @Override
35 protected final Time.Rel relativeMillis(final double factor)
36 {
37 return new Time.Rel(factor, MILLISECOND);
38 }
39 }