AnyLogic
Expand
Font size
All Implemented Interfaces:
DensityMap.DensityMapPreparationSettings
Enclosing class:
DensityMap

@AnyLogicInternalLibraryAPI
public static record DensityMap.NetworkBasedDensityMapPreparationSettings(Level level, Set<DensityMapCompatibleNetwork> networks)
extends Record
implements DensityMap.DensityMapPreparationSettings

Constructor Summary

ConstructorDescription
NetworkBasedDensityMapPreparationSettings(Level level, Set<DensityMapCompatibleNetwork> networks)
Creates an instance of a NetworkBasedDensityMapPreparationSettings record class.

Method Summary

Modifier and TypeMethodDescription
final booleanequals(Object o)
Indicates whether some other object is "equal to" this one.
DensityMapBasisTypegetBasisType() 
final inthashCode()
Returns a hash code value for this object.
Levellevel()
Returns the value of the level record component.
Set<DensityMapCompatibleNetwork>networks()
Returns the value of the networks record component.
final StringtoString()
Returns a string representation of this record class.

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Constructor Details

NetworkBasedDensityMapPreparationSettings

public NetworkBasedDensityMapPreparationSettings(Level level,
 Set<DensityMapCompatibleNetwork> networks)
Creates an instance of a NetworkBasedDensityMapPreparationSettings record class.
Parameters:
level - the value for the level record component
networks - the value for the networks record component

Method Details

getBasisType

public DensityMapBasisType getBasisType()
Specified by:
getBasisType in interface DensityMap.DensityMapPreparationSettings

toString

public final String 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.
Specified by:
toString in class Record
Returns:
a string representation of this object

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.
Specified by:
hashCode in class Record
Returns:
a hash code value for this object

equals

public final boolean equals(Object o)
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 with Objects::equals(Object,Object).
Specified by:
equals in class Record
Parameters:
o - the object with which to compare
Returns:
true if this object is the same as the o argument; false otherwise.

level

public Level level()
Returns the value of the level record component.
Specified by:
level in interface DensityMap.DensityMapPreparationSettings
Returns:
the value of the level record component

networks

public Set<DensityMapCompatibleNetwork> networks()
Returns the value of the networks record component.
Returns:
the value of the networks record component