Record Class MuseumRouteOptimizer.Artwork
java.lang.Object
java.lang.Record
org.episteme.social.arts.MuseumRouteOptimizer.Artwork
- All Implemented Interfaces:
Serializable
- Enclosing class:
MuseumRouteOptimizer
public static record MuseumRouteOptimizer.Artwork(String id, String name, String gallery, double x, double y, int visitDurationMinutes, double importance)
extends Record
implements Serializable
Simplified representation of an artwork for spatial optimization.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gallery()Returns the value of thegalleryrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.doubleReturns the value of theimportancerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevisitDurationMinutesrecord component.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.
-
Constructor Details
-
Artwork
public Artwork(String id, String name, String gallery, double x, double y, int visitDurationMinutes, double importance) Creates an instance of aArtworkrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentgallery- the value for thegalleryrecord componentx- the value for thexrecord componenty- the value for theyrecord componentvisitDurationMinutes- the value for thevisitDurationMinutesrecord componentimportance- the value for theimportancerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
gallery
Returns the value of thegalleryrecord component.- Returns:
- the value of the
galleryrecord component
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
visitDurationMinutes
public int visitDurationMinutes()Returns the value of thevisitDurationMinutesrecord component.- Returns:
- the value of the
visitDurationMinutesrecord component
-
importance
public double importance()Returns the value of theimportancerecord component.- Returns:
- the value of the
importancerecord component
-