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

@AnyLogicInternalLibraryAPI
public static record DensityMap.GridBasedDensityMapPreparationSettings(Level level, double xUpperLeftPx, double yUpperLeftPx, int xCellCount, int yCellCount, double cellSizePx)
extends Record
implements DensityMap.DensityMapPreparationSettings

Constructor Summary

ConstructorDescription
GridBasedDensityMapPreparationSettings(Level level, double xUpperLeftPx, double yUpperLeftPx, int xCellCount, int yCellCount, double cellSizePx)
Creates an instance of a GridBasedDensityMapPreparationSettings record class.

Method Summary

Modifier and TypeMethodDescription
doublecellSizePx()
Returns the value of the cellSizePx record component.
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.
final StringtoString()
Returns a string representation of this record class.
intxCellCount()
Returns the value of the xCellCount record component.
doublexUpperLeftPx()
Returns the value of the xUpperLeftPx record component.
intyCellCount()
Returns the value of the yCellCount record component.
doubleyUpperLeftPx()
Returns the value of the yUpperLeftPx record component.

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Constructor Details

GridBasedDensityMapPreparationSettings

public GridBasedDensityMapPreparationSettings(Level level,
 double xUpperLeftPx,
 double yUpperLeftPx,
 int xCellCount,
 int yCellCount,
 double cellSizePx)
Creates an instance of a GridBasedDensityMapPreparationSettings record class.
Parameters:
level - the value for the level record component
xUpperLeftPx - the value for the xUpperLeftPx record component
yUpperLeftPx - the value for the yUpperLeftPx record component
xCellCount - the value for the xCellCount record component
yCellCount - the value for the yCellCount record component
cellSizePx - the value for the cellSizePx 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
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

xUpperLeftPx

public double xUpperLeftPx()
Returns the value of the xUpperLeftPx record component.
Returns:
the value of the xUpperLeftPx record component

yUpperLeftPx

public double yUpperLeftPx()
Returns the value of the yUpperLeftPx record component.
Returns:
the value of the yUpperLeftPx record component

xCellCount

public int xCellCount()
Returns the value of the xCellCount record component.
Returns:
the value of the xCellCount record component

yCellCount

public int yCellCount()
Returns the value of the yCellCount record component.
Returns:
the value of the yCellCount record component

cellSizePx

public double cellSizePx()
Returns the value of the cellSizePx record component.
Returns:
the value of the cellSizePx record component