Record Class FireEscapeAnalyzer.Exit
java.lang.Object
java.lang.Record
org.episteme.social.architecture.FireEscapeAnalyzer.Exit
- All Implemented Interfaces:
Serializable
- Enclosing class:
FireEscapeAnalyzer
public static record FireEscapeAnalyzer.Exit(String id, double width, double capacity, boolean isProtected, String type)
extends Record
implements Serializable
Represents a point of egress (door, stairway, corridor exit).
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecapacity()Returns the value of thecapacityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanReturns the value of theisProtectedrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.doublewidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Exit
Creates an instance of aExitrecord class.- Parameters:
id- the value for theidrecord componentwidth- the value for thewidthrecord componentcapacity- the value for thecapacityrecord componentisProtected- the value for theisProtectedrecord componenttype- the value for thetyperecord 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
-
width
public double width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
capacity
public double capacity()Returns the value of thecapacityrecord component.- Returns:
- the value of the
capacityrecord component
-
isProtected
public boolean isProtected()Returns the value of theisProtectedrecord component.- Returns:
- the value of the
isProtectedrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-