Record Class MuseumRouteOptimizer.MuseumLayout
java.lang.Object
java.lang.Record
org.episteme.social.arts.MuseumRouteOptimizer.MuseumLayout
- All Implemented Interfaces:
Serializable
- Enclosing class:
MuseumRouteOptimizer
public static record MuseumRouteOptimizer.MuseumLayout(String name, List<MuseumRouteOptimizer.Artwork> artworks, Map<String, List<String>> galleryConnections, double[] entrance, double[] exit)
extends Record
implements Serializable
Represents the logical and spatial layout of a museum.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMuseumLayout(String name, List<MuseumRouteOptimizer.Artwork> artworks, Map<String, List<String>> galleryConnections, double[] entrance, double[] exit) Creates an instance of aMuseumLayoutrecord class. -
Method Summary
Modifier and TypeMethodDescriptionartworks()Returns the value of theartworksrecord component.double[]entrance()Returns the value of theentrancerecord component.final booleanIndicates whether some other object is "equal to" this one.double[]exit()Returns the value of theexitrecord component.Returns the value of thegalleryConnectionsrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MuseumLayout
public MuseumLayout(String name, List<MuseumRouteOptimizer.Artwork> artworks, Map<String, List<String>> galleryConnections, double[] entrance, double[] exit) Creates an instance of aMuseumLayoutrecord class.- Parameters:
name- the value for thenamerecord componentartworks- the value for theartworksrecord componentgalleryConnections- the value for thegalleryConnectionsrecord componententrance- the value for theentrancerecord componentexit- the value for theexitrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
artworks
Returns the value of theartworksrecord component.- Returns:
- the value of the
artworksrecord component
-
galleryConnections
-
entrance
public double[] entrance()Returns the value of theentrancerecord component.- Returns:
- the value of the
entrancerecord component
-
exit
public double[] exit()Returns the value of theexitrecord component.- Returns:
- the value of the
exitrecord component
-