Class MyMockGTU


  • class MyMockGTU
    extends Object
    ...
    • Constructor Detail

      • MyMockGTU

        MyMockGTU​(String name,
                  org.opentrafficsim.core.gtu.GTUType gtuType,
                  org.opentrafficsim.core.geometry.DirectedPoint location,
                  Speed speed,
                  Acceleration acceleration,
                  org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator)
           throws RemoteException
        Parameters:
        name - String; the name of the mocked GTU
        gtuType - GTUType; the GTU type
        location - DirectedPoint; the location of the mocked GTU
        speed - Speed; the speed of the mocked GTU
        acceleration - Acceleration; the acceleration of the mocked GTU
        simulator - OTSSimulatorInterface; (mocked) simulator
        Throws:
        RemoteException - cannot happen ...
    • Method Detail

      • getMock

        public org.opentrafficsim.road.gtu.lane.LaneBasedGTU getMock()
        Returns:
        mocked GTU