Package org.opentrafficsim.road.od
Record Class OdApplier.GeneratorObjects
java.lang.Object
java.lang.Record
org.opentrafficsim.road.od.OdApplier.GeneratorObjects
- Record Components:
generator
- LaneBasedGtuGenerator; main generator for GTU'sheadwayGenerator
- Generator<Duration>; generator of headwayscharacteristicsGenerator
- LaneBasedGtuCharacteristicsGenerator; generator of GTU characteristics
- Enclosing class:
- OdApplier
public static record OdApplier.GeneratorObjects(LaneBasedGtuGenerator generator, Generator<org.djunits.value.vdouble.scalar.Duration> headwayGenerator, LaneBasedGtuCharacteristicsGenerator characteristicsGenerator)
extends Record
Class to contain created generator objects.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
ConstructorDescriptionGeneratorObjects
(LaneBasedGtuGenerator generator, Generator<org.djunits.value.vdouble.scalar.Duration> headwayGenerator, LaneBasedGtuCharacteristicsGenerator characteristicsGenerator) Creates an instance of aGeneratorObjects
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecharacteristicsGenerator
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegenerator
record component.final int
hashCode()
Returns a hash code value for this object.Generator<org.djunits.value.vdouble.scalar.Duration>
Returns the value of theheadwayGenerator
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GeneratorObjects
public GeneratorObjects(LaneBasedGtuGenerator generator, Generator<org.djunits.value.vdouble.scalar.Duration> headwayGenerator, LaneBasedGtuCharacteristicsGenerator characteristicsGenerator) Creates an instance of aGeneratorObjects
record class.- Parameters:
generator
- the value for thegenerator
record componentheadwayGenerator
- the value for theheadwayGenerator
record componentcharacteristicsGenerator
- the value for thecharacteristicsGenerator
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
generator
Returns the value of thegenerator
record component.- Returns:
- the value of the
generator
record component
-
headwayGenerator
Returns the value of theheadwayGenerator
record component.- Returns:
- the value of the
headwayGenerator
record component
-
characteristicsGenerator
Returns the value of thecharacteristicsGenerator
record component.- Returns:
- the value of the
characteristicsGenerator
record component
-