public class BusStreetDemo.CharacteristicsGenerator extends Object implements org.opentrafficsim.road.gtu.lane.LaneBasedGTUCharacteristicsGenerator
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
CharacteristicsGenerator(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
double[] probabilities,
Set<org.opentrafficsim.road.network.lane.DirectedLanePosition> initialLongitudinalPositions,
org.opentrafficsim.core.network.OTSNetwork network) |
Modifier and Type | Method and Description |
---|---|
org.opentrafficsim.road.gtu.lane.LaneBasedGTUCharacteristics |
draw() |
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
getSimulator() |
public CharacteristicsGenerator(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, double[] probabilities, Set<org.opentrafficsim.road.network.lane.DirectedLanePosition> initialLongitudinalPositions, org.opentrafficsim.core.network.OTSNetwork network)
simulator
- simulatorprobabilities
- probabilitiesinitialLongitudinalPositions
- positionsnetwork
- networkpublic org.opentrafficsim.road.gtu.lane.LaneBasedGTUCharacteristics draw() throws org.opentrafficsim.core.distributions.ProbabilityException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException, org.opentrafficsim.core.gtu.GTUException
draw
in interface org.opentrafficsim.road.gtu.lane.LaneBasedGTUCharacteristicsGenerator
org.opentrafficsim.core.distributions.ProbabilityException
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.GTUException
public org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface getSimulator() throws org.opentrafficsim.core.distributions.ProbabilityException
getSimulator
in interface org.opentrafficsim.road.gtu.lane.LaneBasedGTUCharacteristicsGenerator
org.opentrafficsim.core.distributions.ProbabilityException
Copyright © 2014–2017 Delft University of Technology. All rights reserved.