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
ConstructorsConstructorDescriptionGeneratorObjects(LaneBasedGtuGenerator generator, Generator<org.djunits.value.vdouble.scalar.Duration> headwayGenerator, LaneBasedGtuCharacteristicsGenerator characteristicsGenerator) Creates an instance of aGeneratorObjectsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecharacteristicsGeneratorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.Generator<org.djunits.value.vdouble.scalar.Duration>Returns the value of theheadwayGeneratorrecord component.final StringtoString()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 aGeneratorObjectsrecord class.- Parameters:
generator- the value for thegeneratorrecord componentheadwayGenerator- the value for theheadwayGeneratorrecord componentcharacteristicsGenerator- the value for thecharacteristicsGeneratorrecord 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 thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-
headwayGenerator
Returns the value of theheadwayGeneratorrecord component.- Returns:
- the value of the
headwayGeneratorrecord component
-
characteristicsGenerator
Returns the value of thecharacteristicsGeneratorrecord component.- Returns:
- the value of the
characteristicsGeneratorrecord component
-