Package org.opentrafficsim.road.od
Record Class OdApplier.GeneratorObjects
java.lang.Object
java.lang.Record
org.opentrafficsim.road.od.OdApplier.GeneratorObjects
- Record Components:
- generator- main generator for GTU's
- headwayGenerator- generator of headways
- characteristicsGenerator- 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 SummaryConstructorsConstructorDescriptionGeneratorObjects(LaneBasedGtuGenerator generator, Generator<org.djunits.value.vdouble.scalar.Duration> headwayGenerator, LaneBasedGtuCharacteristicsGenerator characteristicsGenerator) Creates an instance of aGeneratorObjectsrecord class.
- 
Method SummaryModifier 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- 
GeneratorObjectspublic GeneratorObjects(LaneBasedGtuGenerator generator, Generator<org.djunits.value.vdouble.scalar.Duration> headwayGenerator, LaneBasedGtuCharacteristicsGenerator characteristicsGenerator) Creates an instance of aGeneratorObjectsrecord class.- Parameters:
- generator- the value for the- generatorrecord component
- headwayGenerator- the value for the- headwayGeneratorrecord component
- characteristicsGenerator- the value for the- characteristicsGeneratorrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
generatorReturns the value of thegeneratorrecord component.- Returns:
- the value of the generatorrecord component
 
- 
headwayGeneratorReturns the value of theheadwayGeneratorrecord component.- Returns:
- the value of the headwayGeneratorrecord component
 
- 
characteristicsGeneratorReturns the value of thecharacteristicsGeneratorrecord component.- Returns:
- the value of the characteristicsGeneratorrecord component
 
 
-