Class BusStreetDemo.CharacteristicsGenerator

    • Constructor Detail

      • CharacteristicsGenerator

        public CharacteristicsGenerator​(org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator,
                                        double[] probabilities,
                                        OTSRoadNetwork network)
        Parameters:
        simulator - OTSSimulatorInterface; simulator
        probabilities - double[]; probabilities
        network - OTSRoadNetwork; network
    • Method Detail

      • draw

        public LaneBasedGTUCharacteristics draw()
                                         throws org.opentrafficsim.core.distributions.ProbabilityException,
                                                org.opentrafficsim.base.parameters.ParameterException,
                                                org.opentrafficsim.core.gtu.GTUException
        Specified by:
        draw in interface LaneBasedGTUCharacteristicsGenerator
        Throws:
        org.opentrafficsim.core.distributions.ProbabilityException
        org.opentrafficsim.base.parameters.ParameterException
        org.opentrafficsim.core.gtu.GTUException