Index

A C D E G H I L M N O P R S T V 
All Classes and Interfaces|All Packages|Serialized Form

A

abstractLaneBasedGtuTest() - Method in class org.opentrafficsim.road.gtu.AbstractLaneBasedGtuTest
Test that the constructor puts the supplied values in the correct fields, then check the motion of the GTU.
AbstractLaneBasedGtuTest - Class in org.opentrafficsim.road.gtu
Test the various methods of an AbstractLaneBasedGtu.
As abstract classes cannot be directly
AbstractLaneBasedGtuTest() - Constructor for class org.opentrafficsim.road.gtu.AbstractLaneBasedGtuTest
 
autoPauseSimulator() - Method in class org.opentrafficsim.road.gtu.LaneBasedGtuTest
Executed as scheduled event.

C

carTest() - Method in class org.opentrafficsim.road.car.CarTest
Test some basics of the Car class.
CarTest - Class in org.opentrafficsim.road.car
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
CarTest() - Constructor for class org.opentrafficsim.road.car.CarTest
 
CarTest.Model - Class in org.opentrafficsim.road.car
The helper model.
changeRight() - Method in class org.opentrafficsim.road.gtu.lane.changing.LaneChangeModelTest
Test that a vehicle in the left lane changes to the right lane if that is empty, or there is enough room.
classList(String, boolean) - Static method in class org.opentrafficsim.road.ClassList
Return a List of all the classes under a package.
ClassList - Class in org.opentrafficsim.road
Build a list of the classes in the project (or under a specific directory/package in the project).
Adapted from https://stackoverflow.com/questions/3923129/get-a-list-of-resources-from-classpath-directory which apparently copied the code from http://forums.devx.com/showthread.php?
compatibleLaneTypeTest() - Method in class org.opentrafficsim.road.gtu.LaneBasedTemplateGtuTypeTest
Test the isCompatible method.
computeAcceleration() - Method in class org.opentrafficsim.road.gtu.following.IdmPlusTest
Test IDMPlus.
ConflictTest - Class in org.opentrafficsim.road.network.lane
Test the Conflict class.
ConflictTest() - Constructor for class org.opentrafficsim.road.network.lane.ConflictTest
 
constructModel() - Method in class org.opentrafficsim.road.car.CarTest.Model
constructModel() - Method in class org.opentrafficsim.road.gtu.DummyModel
constructModel() - Method in class org.opentrafficsim.road.gtu.following.GtuFollowingModelTest.Model
constructModel() - Method in class org.opentrafficsim.road.gtu.following.IDMPlusTestModel
constructModel() - Method in class org.opentrafficsim.road.gtu.lane.changing.LaneChangeModelTest
constructModel() - Method in class org.opentrafficsim.road.gtu.LaneBasedGtuTest.Model
constructModel() - Method in class org.opentrafficsim.road.gtu.LaneBasedTemplateGtuTypeTest.DummyModelForTemplateGTUTest
constructModel() - Method in class org.opentrafficsim.road.network.lane.DummyModelForSensorTest
constructModel() - Method in class org.opentrafficsim.road.network.lane.LaneTest.Model
constructModel() - Method in class org.opentrafficsim.road.network.lane.object.sensor.TrafficLightDetectorTest.Model
constructorTest() - Method in class org.opentrafficsim.road.gtu.LaneBasedTemplateGtuTypeTest
Test construction of a TemplateGTUType and prove that each one uses private fields.
constructorTest() - Method in class org.opentrafficsim.road.gtu.perception.HeadwayGtuTest
Test the constructor and the getters.
contourTest() - Method in class org.opentrafficsim.road.network.lane.LaneTest
Test that the contour of a constructed lane covers the expected area.
create() - Static method in class org.opentrafficsim.road.DefaultTestParameters
Returns a default set of parameters.
createMock() - Static method in class org.opentrafficsim.road.mock.MockDevsSimulator
 
createMock() - Static method in class org.opentrafficsim.road.mock.MockSimulator
 
curveTest() - Method in class org.opentrafficsim.road.network.lane.CurveTest
Let GTUs drive through a curve and check (de-)registration times at each node.
CurveTest - Class in org.opentrafficsim.road.network.lane
Verify that GTUs register and unregister at the correct times and locations when following a curve.
CurveTest() - Constructor for class org.opentrafficsim.road.network.lane.CurveTest
 

D

DefaultTestParameters - Class in org.opentrafficsim.road
Creator of set of parameters with default values.
DetectorTest - Class in org.opentrafficsim.road.network.lane
Test detectors and scheduling of trigger.
DetectorTest() - Constructor for class org.opentrafficsim.road.network.lane.DetectorTest
 
DummyModel - Class in org.opentrafficsim.road.gtu
Dummy OtsModelInterface.
DummyModel(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.road.gtu.DummyModel
 
DummyModelForSensorTest - Class in org.opentrafficsim.road.network.lane
Dummy OtsModelInterface.
DummyModelForSensorTest(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.road.network.lane.DummyModelForSensorTest
 
DummyModelForTemplateGTUTest(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.road.gtu.LaneBasedTemplateGtuTypeTest.DummyModelForTemplateGTUTest
 

E

equalsAndHashCodeTest() - Method in class org.opentrafficsim.road.VerifyRequiredMethods
Check that all classes that implement equals also implement hashCode.

G

GenerateParametersXml - Class in org.opentrafficsim.road
Loops all OTS classes and prints XML lines for all parameters (@code ParameterType) found.
GenerateParametersXml() - Constructor for class org.opentrafficsim.road.GenerateParametersXml
 
getEvents() - Method in class org.opentrafficsim.road.network.lane.LaneTest.Listener
Retrieve the collected events.
getLongitudinalPosition() - Method in class org.opentrafficsim.road.network.lane.LaneTest.MockLaneBasedObject
Retrieve the position of the mocked sensor.
getLongitudinalPosition() - Method in class org.opentrafficsim.road.network.lane.LaneTest.MockSensor
Retrieve the position of the mocked sensor.
getMock() - Method in class org.opentrafficsim.road.mock.MockGtu
 
getMock() - Method in class org.opentrafficsim.road.network.lane.LaneTest.MockLaneBasedObject
Retrieve the mocked LaneBasedObject.
getMock() - Method in class org.opentrafficsim.road.network.lane.LaneTest.MockSensor
Retrieve the mocked sensor.
getNetwork() - Method in class org.opentrafficsim.road.car.CarTest.Model
getNetwork() - Method in class org.opentrafficsim.road.gtu.DummyModel
getNetwork() - Method in class org.opentrafficsim.road.gtu.following.GtuFollowingModelTest.Model
getNetwork() - Method in class org.opentrafficsim.road.gtu.following.IDMPlusTestModel
getNetwork() - Method in class org.opentrafficsim.road.gtu.lane.changing.LaneChangeModelTest
getNetwork() - Method in class org.opentrafficsim.road.gtu.LaneBasedGtuTest.Model
getNetwork() - Method in class org.opentrafficsim.road.gtu.LaneBasedTemplateGtuTypeTest.DummyModelForTemplateGTUTest
getNetwork() - Method in class org.opentrafficsim.road.network.lane.DummyModelForSensorTest
getNetwork() - Method in class org.opentrafficsim.road.network.lane.LaneTest.Model
getNetwork() - Method in class org.opentrafficsim.road.network.lane.object.sensor.TrafficLightDetectorTest.Model
getReplication() - Method in class org.opentrafficsim.road.gtu.strategical.od.OdApplierTest
Returns the replication.
getResources(Pattern) - Static method in class org.opentrafficsim.road.ClassList
For all elements of java.class.path get a Collection of resources Pattern pattern = Pattern.compile(".*"); gets all resources.
getSimulator() - Method in class org.opentrafficsim.road.gtu.strategical.od.OdApplierTest
Returns the simulator.
getStream() - Method in class org.opentrafficsim.road.gtu.strategical.od.OdApplierTest
Returns the set random number stream.
getTime() - Method in class org.opentrafficsim.road.gtu.strategical.od.OdApplierTest
Returns the set simulation time.
GtuFollowingModelTest - Class in org.opentrafficsim.road.gtu.following
Test the methods that the classes that implement GtuFollowingModel have in common.
GtuFollowingModelTest() - Constructor for class org.opentrafficsim.road.gtu.following.GtuFollowingModelTest
 
GtuFollowingModelTest.Model - Class in org.opentrafficsim.road.gtu.following
The helper model.
gtuFractionTest() - Method in class org.opentrafficsim.road.gtu.strategical.od.OdApplierTest
 

H

hasNonStaticFields(Class<?>) - Static method in class org.opentrafficsim.road.ClassList
Report if a class has non-static fields.
headwayGeneratorTest() - Method in class org.opentrafficsim.road.gtu.strategical.od.OdApplierTest
Test whether correct headways and frequencies are calculated.
HeadwayGtuTest - Class in org.opentrafficsim.road.gtu.perception
Test the HeadwayGtu class and the EnumType in the Headway interface.
HeadwayGtuTest() - Constructor for class org.opentrafficsim.road.gtu.perception.HeadwayGtuTest
 

I

IdmPlusTest - Class in org.opentrafficsim.road.gtu.following
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
IdmPlusTest() - Constructor for class org.opentrafficsim.road.gtu.following.IdmPlusTest
 
IDMPlusTestModel - Class in org.opentrafficsim.road.gtu.following
Simulation model for IDMPlusTest.
IDMPlusTestModel(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.road.gtu.following.IDMPlusTestModel
 
InjectionsTest - Class in org.opentrafficsim.road.gtu.generator
InjectionsTest.
InjectionsTest() - Constructor for class org.opentrafficsim.road.gtu.generator.InjectionsTest
 
intersections(Polygon2d, Polygon2d) - Method in class org.opentrafficsim.road.network.lane.ConflictTest
Find all 2D (ignoring Z) intersections between two OtsLine2d objects.
isAnonymousInnerClass(Class<?>) - Static method in class org.opentrafficsim.road.ClassList
Determine if a class is an anonymous inner class.

L

LaneBasedGtuTest - Class in org.opentrafficsim.road.gtu
Test the LaneBasedGtu class.
LaneBasedGtuTest() - Constructor for class org.opentrafficsim.road.gtu.LaneBasedGtuTest
 
LaneBasedGtuTest.Model - Class in org.opentrafficsim.road.gtu
The helper model.
LaneBasedTemplateGtuTypeTest - Class in org.opentrafficsim.road.gtu
Test the TemplateGTUType class.
LaneBasedTemplateGtuTypeTest() - Constructor for class org.opentrafficsim.road.gtu.LaneBasedTemplateGtuTypeTest
 
LaneBasedTemplateGtuTypeTest.DummyModelForTemplateGTUTest - Class in org.opentrafficsim.road.gtu
Dummy OtsModelInterface.
laneChangeInfoTest() - Method in class org.opentrafficsim.road.network.LaneChangeInfoTest
Test to see whether lane change info is correctly delivered by the network.
LaneChangeInfoTest - Class in org.opentrafficsim.road.network
Test for lane change info.
LaneChangeInfoTest() - Constructor for class org.opentrafficsim.road.network.LaneChangeInfoTest
 
LaneChangeModelTest - Class in org.opentrafficsim.road.gtu.lane.changing
Test some very basic properties of lane change models.
LaneChangeModelTest() - Constructor for class org.opentrafficsim.road.gtu.lane.changing.LaneChangeModelTest
 
laneConstructorTest() - Method in class org.opentrafficsim.road.network.lane.LaneTest
Test the constructor.
LaneTest - Class in org.opentrafficsim.road.network.lane
Test the Lane class.
LaneTest() - Constructor for class org.opentrafficsim.road.network.lane.LaneTest
 
LaneTest.Listener - Class in org.opentrafficsim.road.network.lane
Simple event listener that collects events in a list.
LaneTest.MockLaneBasedObject - Class in org.opentrafficsim.road.network.lane
Mock a LaneBasedObject.
LaneTest.MockSensor - Class in org.opentrafficsim.road.network.lane
Mock a Detector.
LaneTest.Model - Class in org.opentrafficsim.road.network.lane
The helper model.
lateralOffsetTest() - Method in class org.opentrafficsim.road.network.lane.LaneTest
Test that gradually varying lateral offsets have gradually increasing angles (with respect to the design line) in the first half and gradually decreasing angles in the second half.
leaderFollowerAndParallelTest() - Method in class org.opentrafficsim.road.gtu.LaneBasedGtuTest
Test the leader, follower and parallel methods.
Listener() - Constructor for class org.opentrafficsim.road.network.lane.LaneTest.Listener
 

M

main(String[]) - Static method in class org.opentrafficsim.road.ClassList
List the resources that match args[0], or a fixed pattern to demonstrate the use of this class.
main(String[]) - Static method in class org.opentrafficsim.road.GenerateParametersXml
Prints XML lines for all parameters (@code ParameterType) found.
main(String[]) - Static method in class org.opentrafficsim.road.gtu.perception.VerifyPerceptionCategoryMethods
 
makeLane(RoadNetwork, LaneType, OtsSimulatorInterface) - Static method in class org.opentrafficsim.road.car.CarTest
 
makeMultiLane(RoadNetwork, String, Node, Node, LaneType, int, OtsSimulatorInterface) - Static method in class org.opentrafficsim.road.gtu.lane.changing.LaneChangeModelTest
Create a simple straight road with the specified number of Lanes.
makeReferenceCar(String, GtuType, Lane, Length, Speed, GtuFollowingModelOld, LaneChangeModel, RoadNetwork) - Static method in class org.opentrafficsim.road.car.CarTest
Create a new Car.
makeSimulator() - Static method in class org.opentrafficsim.road.car.CarTest
Create the simplest possible simulator.
MarkovCorrelationTest - Class in org.opentrafficsim.road.gtu.strategical.od
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
MarkovCorrelationTest() - Constructor for class org.opentrafficsim.road.gtu.strategical.od.MarkovCorrelationTest
 
MockDevsSimulator - Class in org.opentrafficsim.road.mock
MockSimulator.java.
MockGtu - Class in org.opentrafficsim.road.mock
MockGTU.java.
MockGtu(String) - Constructor for class org.opentrafficsim.road.mock.MockGtu
 
MockLaneBasedObject(String, Length) - Constructor for class org.opentrafficsim.road.network.lane.LaneTest.MockLaneBasedObject
Construct a new Mocked Detector.
MockSensor(String, Length) - Constructor for class org.opentrafficsim.road.network.lane.LaneTest.MockSensor
Construct a new Mocked Detector.
MockSimulator - Class in org.opentrafficsim.road.mock
MockSimulator.java.
Model(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.road.car.CarTest.Model
 
Model(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.road.gtu.LaneBasedGtuTest.Model
 
Model(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.road.network.lane.LaneTest.Model
 
Model(OtsSimulatorInterface) - Constructor for class org.opentrafficsim.road.network.lane.object.sensor.TrafficLightDetectorTest.Model
 
Model(OtsSimulatorInterface, RoadNetwork) - Constructor for class org.opentrafficsim.road.gtu.following.GtuFollowingModelTest.Model
 

N

notify(Event) - Method in class org.opentrafficsim.road.network.lane.ConflictTest
 
notify(Event) - Method in class org.opentrafficsim.road.network.lane.LaneTest.Listener
 
notify(Event) - Method in class org.opentrafficsim.road.network.lane.object.sensor.TrafficLightDetectorTest

O

OdApplierTest - Class in org.opentrafficsim.road.gtu.strategical.od
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
OdApplierTest() - Constructor for class org.opentrafficsim.road.gtu.strategical.od.OdApplierTest
Constructor.
org.opentrafficsim.road - package org.opentrafficsim.road
 
org.opentrafficsim.road.car - package org.opentrafficsim.road.car
 
org.opentrafficsim.road.gtu - package org.opentrafficsim.road.gtu
 
org.opentrafficsim.road.gtu.following - package org.opentrafficsim.road.gtu.following
 
org.opentrafficsim.road.gtu.generator - package org.opentrafficsim.road.gtu.generator
 
org.opentrafficsim.road.gtu.lane.changing - package org.opentrafficsim.road.gtu.lane.changing
 
org.opentrafficsim.road.gtu.perception - package org.opentrafficsim.road.gtu.perception
Test Perception-related classes.
org.opentrafficsim.road.gtu.strategical.od - package org.opentrafficsim.road.gtu.strategical.od
 
org.opentrafficsim.road.mock - package org.opentrafficsim.road.mock
 
org.opentrafficsim.road.network - package org.opentrafficsim.road.network
 
org.opentrafficsim.road.network.lane - package org.opentrafficsim.road.network.lane
 
org.opentrafficsim.road.network.lane.object.sensor - package org.opentrafficsim.road.network.lane.object.sensor
 

P

perceptionCategoryTest() - Method in class org.opentrafficsim.road.gtu.perception.VerifyPerceptionCategoryMethods
Check that all sub-classes of AbstractPerceptionCategory have for data named TestField: testField* property of any type.
printEventList(OtsSimulatorInterface) - Method in class org.opentrafficsim.road.network.lane.CurveTest
Print all scheduled events of an OtsSimulatorInterface.
probabilityTest() - Method in class org.opentrafficsim.road.gtu.strategical.od.MarkovCorrelationTest
Tests whether the right probabilities result.

R

RelativeLaneTest - Class in org.opentrafficsim.road.gtu.perception
Test the RelativeLane class.
RelativeLaneTest() - Constructor for class org.opentrafficsim.road.gtu.perception.RelativeLaneTest
 

S

sensorTest() - Method in class org.opentrafficsim.road.network.lane.DetectorTest
Test the constructors of SensorLaneEnd and SensorLaneStart.
sensorTest(Lane) - Method in class org.opentrafficsim.road.network.lane.LaneTest
Add/Remove some sensor to/from a lane and see if the expected events occur.
serializableTest() - Method in class org.opentrafficsim.road.VerifyRequiredMethods
Check that all classes implement the Serializable interface.

T

testConstructor() - Method in class org.opentrafficsim.road.network.lane.ConflictTest
Test the Conflict class.
testIDM() - Method in class org.opentrafficsim.road.gtu.following.GtuFollowingModelTest
Test IDM.
testIDMPlus() - Method in class org.opentrafficsim.road.gtu.following.GtuFollowingModelTest
Test IDMPlus.
testIdorder() - Method in class org.opentrafficsim.road.gtu.generator.InjectionsTest
Tests whether Injection ids are used even when a GTU is delayed due to a lack of space.
testInjections() - Method in class org.opentrafficsim.road.gtu.generator.InjectionsTest
Test Injections.
testInput() - Method in class org.opentrafficsim.road.gtu.strategical.od.MarkovCorrelationTest
Tests the input tests.
testRelativeLane() - Method in class org.opentrafficsim.road.gtu.perception.RelativeLaneTest
] Test the RelativeLane class.
timeAtDistanceTest() - Method in class org.opentrafficsim.road.gtu.LaneBasedGtuTest
Test the deltaTimeForDistance and timeAtDistance methods.
toString() - Method in class org.opentrafficsim.road.network.lane.LaneTest.MockLaneBasedObject
 
toString() - Method in class org.opentrafficsim.road.network.lane.LaneTest.MockSensor
 
toStringTest() - Method in class org.opentrafficsim.road.VerifyRequiredMethods
Check that all classes have a toString method.
TrafficLightDetectorTest - Class in org.opentrafficsim.road.network.lane.object.sensor
Test the TrafficLightDetector class.
TrafficLightDetectorTest() - Constructor for class org.opentrafficsim.road.network.lane.object.sensor.TrafficLightDetectorTest
 
TrafficLightDetectorTest.Model - Class in org.opentrafficsim.road.network.lane.object.sensor
The helper model.
trafficLightSensorTest() - Method in class org.opentrafficsim.road.network.lane.object.sensor.TrafficLightDetectorTest
Test the TrafficLightSensor.
TriggerDetector - Class in org.opentrafficsim.road.network.lane
 
TriggerDetector(Lane, Length, RelativePosition.Type, String, OtsSimulatorInterface) - Constructor for class org.opentrafficsim.road.network.lane.TriggerDetector
 
triggerResponse(LaneBasedGtu) - Method in class org.opentrafficsim.road.network.lane.TriggerDetector

V

VerifyPerceptionCategoryMethods - Class in org.opentrafficsim.road.gtu.perception
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
VerifyPerceptionCategoryMethods() - Constructor for class org.opentrafficsim.road.gtu.perception.VerifyPerceptionCategoryMethods
 
VerifyRequiredMethods - Class in org.opentrafficsim.road
Verify that all classes have a toString method (unless the class in non-instantiable, or an enum, or abstract.
VerifyRequiredMethods() - Constructor for class org.opentrafficsim.road.VerifyRequiredMethods
 
A C D E G H I L M N O P R S T V 
All Classes and Interfaces|All Packages|Serialized Form